/page.php

https://bitbucket.org/mhell/mhmcr · PHP · 20 lines · 20 code · 0 blank · 0 comment · 3 complexity · 5aac41cd5803f32799e0935a6753e702 MD5 · raw file

  1. <?php
  2. header('Content-Type: text/html;charset=UTF-8');
  3. require_once('system.php');
  4. require_once('inc/static.inc.php');
  5. $static = array();
  6. $ql = mysql_query("SELECT `name`,`url` FROM ".$db['tables']['static']." ORDER BY `id` DESC;");
  7. while ($entry = mysql_fetch_assoc($ql))
  8. {
  9. if ($entry['url']!='main')
  10. $static[] = $entry;
  11. }
  12. $opts = array();
  13. $ql = mysql_query("SELECT * FROM ".$db['tables']['data'].";");
  14. while ($entry = mysql_fetch_assoc($ql))
  15. {
  16. $opts[$entry['property']] = $entry['value'];
  17. }
  18. $spage = new StaticEntry(false,mysql_real_escape_string($_GET['url']));
  19. include($config['style_dir'].'page.html');
  20. ?>