<?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()
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