summary refs log tree commit diff stats
path: root/admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php77
1 files changed, 77 insertions, 0 deletions
diff --git a/admin.php b/admin.php new file mode 100644 index 0000000..5e002a6 --- /dev/null +++ b/admin.php
@@ -0,0 +1,77 @@
1<?php
2/*
3 444444444
4 4::::::::4
5 4:::::::::4
6 4::::44::::4
7 4::::4 4::::4 Four Island
8 4::::4 4::::4
9 4::::4 4::::4 Written and maintained by Starla Insigna
104::::444444::::444
114::::::::::::::::4 admin.php
124444444444:::::444
13 4::::4 Please do not use, reproduce or steal the
14 4::::4 contents of this file without explicit
15 4::::4 permission from Hatkirby.
16 44::::::44
17 4::::::::4
18 4444444444
19*/
20
21require('headerproc.php');
22
23header('Content-type: application/xhtml+xml');
24
25include('../security/config.php');
26include('includes/db.php');
27include('includes/template.php');
28include('includes/session.php');
29include('includes/parsers.php');
30include('includes/xmlrpc/xmlrpc.inc');
31include('includes/specialdates.php');
32include('includes/functions.php');
33
34if (!isAdmin())
35{
36 ob_start();
37 generateError('404');
38 $doc = ob_get_contents();
39 ob_end_clean();
40
41 include('includes/header.php');
42 echo($doc);
43 include('includes/footer.php');
44
45 exit;
46}
47
48ob_start();
49
50$pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome';
51
52if (file_exists('admin/' . $pageName . '.php'))
53{
54 include('admin/' . $pageName . '.php');
55} else {
56 generateError('404');
57}
58
59$doc = ob_get_contents();
60ob_end_clean();
61
62$doc = stripslashes($doc);
63
64$template = new FITemplate('admin/header');
65$template->add(strtoupper($category) . 'ACTIVECAT', ' class="active"');
66$template->adds_block(strtoupper($category) . 'ISACTIVECAT', array('exi'=>1));
67if (isset($pageaid)) $template->add(strtoupper($pageaid) . 'ACTIVE', ' class="active"');
68if (!isset($flashmsg)) $template->add('HIDEFLASH', ' style="display: none"');
69if (isset($flashmsg)) $template->add('FLASH', $flashmsg);
70$template->display();
71
72echo($doc);
73
74$template = new FITemplate('admin/footer');
75$template->display();
76
77?>