made my star image a bit nicer
[gwvp.git] / gwvplib / gwvpconfig.php
index cc0bafd..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()
 {
@@ -26,7 +31,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