about summary refs log tree commit diff stats
path: root/series/trunk/admin/manuser.php
diff options
context:
space:
mode:
Diffstat (limited to 'series/trunk/admin/manuser.php')
-rw-r--r--series/trunk/admin/manuser.php46
1 files changed, 46 insertions, 0 deletions
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 @@
1<?php
2
3/* InstaDisc Series - A Four Island Project */
4
5/**
6 * require_once() is used to ensure
7 * the ACP files are being called by
8 * admin.php instead of their actual
9 * locations admin/.
10 * The _once() part ensures no problem
11 * arises as includes/instadisc.php has
12 * already been included from admin.php
13 */
14require_once('includes/instadisc.php');
15
16if (!isset($_SESSION['username']))
17{
18 header('Location: index.php');
19 exit;
20}
21
22$template = new FITemplate('manuser');
23$template->add('SITENAME', instaDisc_getConfig('siteName'));
24
25if (instaDisc_isAdmin($_SESSION['username']))
26{
27 $users = instaDisc_getAllUsers();
28} else {
29 header('Location: index.php');
30 exit;
31}
32$i=0; $j=0;
33for ($i=0;isset($users[$i]);$i++)
34{
35 $j++;
36}
37$j--;
38for ($i=0;$i<$j;$i++)
39{
40 $template->adds_block('USERS', array( 'USERNAME' => $users[$i]['username'],
41 'ID' => $users[$i]['id']));
42}
43
44$template->display();
45
46?>