root/dev/mods/signature_generator/sig_list.php @ 192

Revision 190, 0.6 KB (checked in by exi, 14 years ago)

This is a big update...
Moved all admin scripts to common/admin.
Moved all includes and classes to common/includes.
Edited all include-paths to reflect the movement.
Fixed a bug with the session system allowing every registered user to access admin pages.
Replaced calls to date() to use a wrapper so gmdate can be used.
Replaced some calls to $config with calls to the static object.
Fixed a big which caused the portrait_grab to not download a new picute.
Added a classified-state to kills.
Removed the sync_server server script in this tree.
Added code to help modules find the includes to index.php.

Line 
1<?php
2require_once('common/includes/class.page.php');
3
4$page = new Page('Signature Listing');
5
6$signatures = array();
7$dir = opendir('mods/signature_generator/signatures');
8while ($line = readdir($dir))
9{
10    if (file_exists('mods/signature_generator/signatures/'.$line.'/'.$line.'.php'))
11    {
12        $signatures[] = $line;
13    }
14}
15$smarty->assign('signatures', $signatures);
16$smarty->assign('pilot', intval($_REQUEST['i']));
17$smarty->assign('kb_host', KB_HOST);
18
19$page->setContent($smarty->fetch('file:'.getcwd().'/mods/signature_generator/sig_list.tpl'));
20$page->generate();
21?>
Note: See TracBrowser for help on using the browser.