aboutsummaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-20 18:29:11 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-20 18:29:11 -0500
commitbe071aeb7565e46c670a6d9486a1f1b8a06971ab (patch)
tree67a80c2fbea8c20c9ea74c5276378ca50a94e4f5 /admin
parent3af9846d4ecc1e0274833740fd21012afe9ef51f (diff)
downloadbayonetcms-be071aeb7565e46c670a6d9486a1f1b8a06971ab.tar.gz
Bug fix to modules.php.
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@381 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'admin')
-rw-r--r--admin/admins/functions.php30
-rw-r--r--admin/index.php2
2 files changed, 31 insertions, 1 deletions
diff --git a/admin/admins/functions.php b/admin/admins/functions.php
index 031bd05..495dfdd 100644
--- a/admin/admins/functions.php
+++ b/admin/admins/functions.php
@@ -40,6 +40,36 @@
function NewAdmin()
{
$maxLevel = $_SESSION['level'];
+?>
+<div style="text-align:right"><img src="images/cancel.png" />Cancel</div>
+<center>
+ <form method="POST" action="<?php $_SERVER['PHP_SELF']?>">
+ <table>
+ <tr><th>Username:</th><td><input type="text" value="" name="username" /></td></tr>
+ <tr><th>First Name:</th><td><input type="text" value="" name="first" /></td></tr>
+ <tr><th>Last Name:</th><td><input type="text" value="" name="last" /></td></tr>
+ <tr><th>Email Address:</th><td><input type="text" value="" name="email" /></td></tr>
+ <tr>
+ <th>Level:</th>
+ <td>
+ <select name="level">
+ <?php
+ for($x=$maxLevel; $x>0;$x--){
+ echo "<option value=\"{$x}\">{$x}</option>";
+ }
+ ?>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align:center;">
+ <input type="submit" name="processed" value="Submit" />
+ </td>
+ </tr>
+ </table>
+ </form>
+</center>
+<?php
}
function EditAdmin($user_id)
diff --git a/admin/index.php b/admin/index.php
index 665f125..06f68d9 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
- session_start();
+session_start();
include '../includes/debug.php';
include '../includes/config.php';