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

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

Created a signature generator list.
Removed the fonts and adjusted the signature generator default theme to bring his own fonts.

Line 
1<?php
2require_once("common/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.