From aa8219c03996d7ba325d71857bb34270a993d3f6 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 14 Sep 2008 16:35:31 +0000 Subject: Series: Added user management Refs #53 --- series/trunk/admin/manuser.php | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 series/trunk/admin/manuser.php (limited to 'series/trunk/admin/manuser.php') diff --git a/series/trunk/admin/manuser.php b/series/trunk/admin/manuser.php new file mode 100644 index 0000000..4228a36 --- /dev/null +++ b/series/trunk/admin/manuser.php @@ -0,0 +1,46 @@ +add('SITENAME', instaDisc_getConfig('siteName')); + +if (instaDisc_isAdmin($_SESSION['username'])) +{ + $users = instaDisc_getAllUsers(); +} else { + header('Location: index.php'); + exit; +} +$i=0; $j=0; +for ($i=0;isset($users[$i]);$i++) +{ + $j++; +} +$j--; +for ($i=0;$i<$j;$i++) +{ + $template->adds_block('USERS', array( 'USERNAME' => $users[$i]['username'], + 'ID' => $users[$i]['id'])); +} + +$template->display(); + +?> -- cgit 1.4.1