diff options
Diffstat (limited to 'admin.php')
| -rw-r--r-- | admin.php | 77 |
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 | ||
| 10 | 4::::444444::::444 | ||
| 11 | 4::::::::::::::::4 admin.php | ||
| 12 | 4444444444:::::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 | |||
| 21 | require('headerproc.php'); | ||
| 22 | |||
| 23 | header('Content-type: application/xhtml+xml'); | ||
| 24 | |||
| 25 | include('../security/config.php'); | ||
| 26 | include('includes/db.php'); | ||
| 27 | include('includes/template.php'); | ||
| 28 | include('includes/session.php'); | ||
| 29 | include('includes/parsers.php'); | ||
| 30 | include('includes/xmlrpc/xmlrpc.inc'); | ||
| 31 | include('includes/specialdates.php'); | ||
| 32 | include('includes/functions.php'); | ||
| 33 | |||
| 34 | if (!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 | |||
| 48 | ob_start(); | ||
| 49 | |||
| 50 | $pageName = isset($_GET['area']) ? $_GET['area'] : 'welcome'; | ||
| 51 | |||
| 52 | if (file_exists('admin/' . $pageName . '.php')) | ||
| 53 | { | ||
| 54 | include('admin/' . $pageName . '.php'); | ||
| 55 | } else { | ||
| 56 | generateError('404'); | ||
| 57 | } | ||
| 58 | |||
| 59 | $doc = ob_get_contents(); | ||
| 60 | ob_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)); | ||
| 67 | if (isset($pageaid)) $template->add(strtoupper($pageaid) . 'ACTIVE', ' class="active"'); | ||
| 68 | if (!isset($flashmsg)) $template->add('HIDEFLASH', ' style="display: none"'); | ||
| 69 | if (isset($flashmsg)) $template->add('FLASH', $flashmsg); | ||
| 70 | $template->display(); | ||
| 71 | |||
| 72 | echo($doc); | ||
| 73 | |||
| 74 | $template = new FITemplate('admin/footer'); | ||
| 75 | $template->display(); | ||
| 76 | |||
| 77 | ?> | ||
