X-Git-Url: http://git.pjr.cc/?p=gwvp-mini.git;a=blobdiff_plain;f=gwvpmini%2Fgwvpmini_admin.php;h=e19a2684b5d4c558d44adc477d40ade6c015273d;hp=7078542c7a4d8a2199537189e91713dc07b80171;hb=979dc6190296b0c7ffdfe17031f2d32318da7e2b;hpb=e39e4b8b84f6f8662af51b3b57c333dff0e3945b diff --git a/gwvpmini/gwvpmini_admin.php b/gwvpmini/gwvpmini_admin.php index 7078542..e19a268 100644 --- a/gwvpmini/gwvpmini_admin.php +++ b/gwvpmini/gwvpmini_admin.php @@ -1,17 +1,20 @@ Disable)"; @@ -75,10 +103,24 @@ function gwvpmini_AdminMainPageBody() } else { $regconfirm = "Registration Doesnt Require Confirmation (Enable)"; } + + if($use_gravatar) { + $usegrav = "Gravatars are enabled (Disable)"; + } else { + $usegrav = "Gravatars are disabled (Enable)"; + } + + if($force_ssl) { + $forcessl = "Force SSL is enabled (Disable)"; + } else { + $forcessl = "Force SSL is disabled (Enable)"; + } + + $totalusers = gwvpmini_GetNUsers(); echo "
";
echo "Users - $totalusers"; - echo "$register$regconfirm "; + echo "$register $regconfirm $usegrav $forcessl "; echo ""; @@ -94,6 +136,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 +145,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 +159,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 |