originally i had planned for the username to be the email address and
[gwvp.git] / gwvplib / gwvpconfig.php
1 <?php
2
3 // setup the call me function for useradmin - matches on url of admin/users
4 $CALL_ME_FUNCTIONS["config"] = "gwvp_ConfigCallMe";
5
6 $MENU_ITEMS["40config"]["text"] = "Configuration";
7 $MENU_ITEMS["40config"]["link"] = "$BASE_URL/admin/config";
8
9
10 function gwvp_ConfigCallMe()
11 {
12         if(isset($_REQUEST["q"])) {
13                 $query = $_REQUEST["q"];
14                 if($query == "admin/config") return "gwvp_ConfigPage";
15                 else return false;
16         }
17         
18         return false;
19 }
20
21 function gwvp_ConfigPage()
22 {
23         gwvp_goMainPage("gwvp_ConfigPageBody");
24 }
25
26
27 function gwvp_ConfigPageBody()
28 {
29 ?>
30 <h1>Global Configuration</h1>
31 <form method="post">
32 <table>
33 <tr><td>Allow User Registration</td><td><input type="checkbox" name="allowreg"></td></tr>
34
35 </table>
36 </form>
37 <?php
38 }
39
40 ?>