/page.php
PHP | 20 lines | 20 code | 0 blank | 0 comment | 3 complexity | 5aac41cd5803f32799e0935a6753e702 MD5 | raw file
- <?php
- header('Content-Type: text/html;charset=UTF-8');
- require_once('system.php');
- require_once('inc/static.inc.php');
- $static = array();
- $ql = mysql_query("SELECT `name`,`url` FROM ".$db['tables']['static']." ORDER BY `id` DESC;");
- while ($entry = mysql_fetch_assoc($ql))
- {
- if ($entry['url']!='main')
- $static[] = $entry;
- }
- $opts = array();
- $ql = mysql_query("SELECT * FROM ".$db['tables']['data'].";");
- while ($entry = mysql_fetch_assoc($ql))
- {
- $opts[$entry['property']] = $entry['value'];
- }
- $spage = new StaticEntry(false,mysql_real_escape_string($_GET['url']));
- include($config['style_dir'].'page.html');
- ?>