implemented authentication levels of anon,user,admin and setup the
[gwvp.git] / gwvplib / gwvpconfig.php
index cc0bafd..4ebfb42 100644 (file)
@@ -1,10 +1,14 @@
 <?php
 
 // setup the call me function for useradmin - matches on url of admin/users
-$CALL_ME_FUNCTIONS["config"] = "gwvp_ConfigCallMe";
 
-$MENU_ITEMS["40config"]["text"] = "Configuration";
-$MENU_ITEMS["40config"]["link"] = "$BASE_URL/admin/config";
+// crap, this wont work
+//if(isset($_SESSION["usertype"])) if($_SESSION["usertype"] == "admin") {
+       $CALL_ME_FUNCTIONS["config"] = "gwvp_ConfigCallMe";
+       $MENU_ITEMS["40config"]["text"] = "Configuration";
+       $MENU_ITEMS["40config"]["link"] = "$BASE_URL/admin/config";
+       $MENU_ITEMS["40config"]["userlevel"] = "admin";
+//}
 
 
 function gwvp_ConfigCallMe()
@@ -26,7 +30,16 @@ function gwvp_ConfigPage()
 
 function gwvp_ConfigPageBody()
 {
-       
+?>
+<h1>Global Configuration</h1>
+<form method="post">
+<table>
+<tr><td>Allow User Registration</td><td><input type="checkbox" name="allowreg"></td></tr>
+<tr><td>Allow User Created Groups</td><td><input type="checkbox" name="allowusercreatedgroup"></td></tr>
+
+</table>
+</form>
+<?php
 }
 
 ?>
\ No newline at end of file