mhmcr /page.php

Language PHP Lines 20
MD5 Hash 5aac41cd5803f32799e0935a6753e702 Estimated Cost $398 (why?)
Repository https://bitbucket.org/mhell/mhmcr.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
<?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');
?>
Back to Top