3 // SourceForge: Breaking Down the Barriers to Open Source Development
4 // Copyright 1999-2000 (c) The SourceForge Crew
5 // http://sourceforge.net
9 session_require(array('group'=>'1','admin_flags'=>'A'));
11 $HTML->header(array('title'=>$GLOBALS['system_name']." Admin"));
15 <p>Administrative Functions
17 <p><B>User/Group/Category Maintenance</B>
19 <b> Search Criteria: </b> <?php print " \"%$search%\" <p>";
23 exit_error("Refusing to display whole DB","That would display whole DB. Please use a CLI query if you wish to do this.");
30 $sql = "select distinctrow * from users where user_id like '%$search%' or user_name like '%$search%' or email like '%$search%' or realname like '%$search%'";
31 $result = db_query($sql);
32 if (db_numrows($result) < 1) {
33 print "No matches.<p><a href=\"/admin/\">Back</a>";
38 print "<table border=\"1\">";
39 print "<tr><th>UserName</th><th>User's Name</th></tr>\n\n";
41 while ($row = db_fetch_array($result)) {
42 print "<tr><td><a href=\"usergroup.php?user_id=$row[user_id]\">$row[user_name]</a></td><td>$row[realname]</td></tr>\n";
47 } // end if ($usersearch)
52 $sql = "select distinctrow * from groups where group_id like '%$search%' or unix_group_name like '%$search%' or group_name like '%$search%'";
53 $result = db_query($sql);
55 if (db_numrows($result) < 1) {
57 print "No matches.<p><a href=\"/admin/\">Back</a>";
62 print "<table border=\"1\">";
63 print "<tr><th>GroupUnixName</th><th>Group's Name</th></tr>\n\n";
64 while ($row = db_fetch_array($result)) {
65 print "<tr><td><a href=\"groupedit.php?group_id=$row[group_id]\">$row[unix_group_name]</a></td><td>$row[group_name]</td></tr>\n";
74 } //end if($groupsearch)
77 $HTML->footer(array());