replacing the cli cmds with variables and configuration in config.php
[gwvp-mini.git] / gwvpmini / gwvpmini_admin.php
index 26cb82e..2ba9963 100644 (file)
@@ -14,7 +14,7 @@ if($IS_WEB_REQUEST) {
 function gwvpmini_AdminCallMe()\r
 {\r
 \r
-       //error_log("in admin callme");\r
+       //// // error_log("in admin callme");\r
        if(isset($_REQUEST["q"])) {\r
                $query = $_REQUEST["q"];\r
                $qspl = explode("/", $query);\r
@@ -61,7 +61,7 @@ function gwvpmini_AdminCallMe()
                                                return "gwvpmini_SwitchAdmin";
                                        }
                                } else {\r
-                                       error_log("i got here, where next?");\r
+                                       // // error_log("i got here, where next?");\r
                                        return "gwvpmini_AdminMainPage";\r
                                }\r
                        } else return false;\r
@@ -122,11 +122,11 @@ function gwvpmini_AdminMainPageBody()
        
        $totalusers = gwvpmini_GetNUsers();
        echo "<table><tr valign=\"top\"><td>";
-       echo "$register<br>$regconfirm<br>$usegrav<br>$forcessl<br>";
-       echo "<h2>Users - $totalusers</h2>";
+       echo "<H2>Settings</h2>$register<br>$regconfirm<br>$usegrav<br>$forcessl<br>";
        echo "<form method=\"post\" action=\"$BASE_URL/admin/changefromemail\">";
        echo "Address emails are sent from <input type=\"text\" name=\"fromemail\" value=\"$confirm_from_address\"><input type=\"submit\" name=\"Update\" value=\"Update\"><br>";
        echo "</form>"; 
+       echo "<h2>Users - $totalusers</h2>";
 
        echo "<table border=\"1\">";
        echo "<tr><th>Username</th><th>Email Address</th><th>Full Name</th><th>Description</th><th>Status</th><th>Control</th></tr>";
@@ -155,7 +155,7 @@ function gwvpmini_AdminMainPageBody()
                        $cstat = "Disable";
                } else  if($st_t[0] == "2") {
                        $vl = explode(":", $st_t);
-                       error_log("VL: ".print_r($vl, true));
+                       // // error_log("VL: ".print_r($vl, true));
                        $status = " Awaiting Confirmation (<a href=\"$BASE_URL/register/confirmreg/".$vl[1]."\">Confirm</a>)";
                }
                
@@ -327,7 +327,7 @@ function gwvpmini_RemoveUserPageBody()
                $email = $details[$uid]["email"];
                $desc = $details[$uid]["desc"];
                
-               error_log("user dets:".print_r($details, true));
+               //// // error_log("user dets:".print_r($details, true));
                
                echo "<h2>Remove User?</h2>";
                echo "Are you sure you wish to remove the user, $username ($uid) - $fullname - $email - $desc?<br>";
@@ -371,7 +371,7 @@ function gwvpmini_RemoveRepoPageBody()
                $fullname = $usedet["fullname"];
                \r
 \r
-               error_log("user dets:".print_r($details, true));\r
+               // // error_log("user dets:".print_r($details, true));\r
 \r
                echo "<h2>Remove User?</h2>";\r
                echo "Are you sure you wish to remove the repo, <b>$rname</b> ($rid) - \"$rdesc\" $ownedby?<br>";\r
@@ -389,7 +389,7 @@ function gwvpmini_ConfRemoveRepo()
        global $BASE_URL;\r
 
        
-       error_log("CONF REMOVE REPO");
+       // // error_log("CONF REMOVE REPO");
        \r
        $rid = -1;\r
        if(isset($_REQUEST["q"])) {\r