X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=gwvpmini%2Fgwvpmini_admin.php;h=af007c1fd071f37104ed589f0c0fddaeec92390a;hb=a0e234c191ea3c1427355eaa596d1e71b730e34a;hp=7078542c7a4d8a2199537189e91713dc07b80171;hpb=e39e4b8b84f6f8662af51b3b57c333dff0e3945b;p=gwvp-mini.git diff --git a/gwvpmini/gwvpmini_admin.php b/gwvpmini/gwvpmini_admin.php index 7078542..af007c1 100644 --- a/gwvpmini/gwvpmini_admin.php +++ b/gwvpmini/gwvpmini_admin.php @@ -1,17 +1,20 @@ Disable)"; @@ -75,10 +100,17 @@ function gwvpmini_AdminMainPageBody() } else { $regconfirm = "Registration Doesnt Require Confirmation (Enable)"; } + + if($use_gravatar) { + $usegrav = "Gravatars are enabled (Disable)"; + } else { + $usegrav = "Gravatars are disabled (Enable)"; + } + $totalusers = gwvpmini_GetNUsers(); echo "
";
echo "Users - $totalusers"; - echo "$register$regconfirm "; + echo "$register $regconfirm $usegrav "; echo ""; @@ -94,6 +126,8 @@ function gwvpmini_AdminMainPageBody() $st_t = $val["status"]; $st_l = $val["level"]; + $astat = "0"; + $cstat = "WTF"; $level = "WTF"; if($st_l == 0) $level = "User"; if($st_l == 1) $level = "Admin"; @@ -101,8 +135,12 @@ function gwvpmini_AdminMainPageBody() $status = ""; if($st_t[0] == "1") { $status = ", disabled"; - } - if($st_t[0] == "2") { + $astat = 0; + $cstat = "Enable"; + } else if ($st_t[0] == "0") { + $astat = 1; + $cstat = "Disable"; + } else if($st_t[0] == "2") { $vl = explode(":", $st_t); error_log("VL: ".print_r($vl, true)); $status = " Awaiting Confirmation (Confirm)"; @@ -111,7 +149,9 @@ function gwvpmini_AdminMainPageBody() $st = "$level$status"; $unlval = "$un"; - echo " | |||||
$unlval | $em | $fn | $ds | $st | Remove Disable |
$unlval | $em | $fn | $ds | $st | Remove "; + if ($st_t[0] == "0"||$st_t[0] == "1") echo "$cstat |
$rn | $ds | $ow | Remove Disable | ||
$rn | $ds | $owl | Remove $cstat |