implemented authentication levels of anon,user,admin and setup the
[gwvp.git] / gwvplib / gwvpconfig.php
index 2c04eab..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()
@@ -31,6 +35,7 @@ function gwvp_ConfigPageBody()
 <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>