made my star image a bit nicer
[gwvp.git] / gwvplib / gwvpconfig.php
index 2c04eab..74ee6ec 100644 (file)
@@ -1,11 +1,16 @@
 <?php
 
 // setup the call me function for useradmin - matches on url of admin/users
-$CALL_ME_FUNCTIONS["config"] = "gwvp_ConfigCallMe";
 
+// 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";
+//}
 
+global $repo_base, $data_directory; 
 
 function gwvp_ConfigCallMe()
 {
@@ -31,6 +36,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>