- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
function page_from_template_no_headers($t,$vl) {
global $s,$m;
if (!is_array($vl)) $vl = array();
$vl = array_merge($vl,get_common_variables());
$style = find_style(); $t = template_select($t,0,$style);
$vl[styles] = '<LINK href="'.$s[site_url].'/styles/'.$style.'/bootstrap.css" rel="StyleSheet">';
$fh = fopen($t,'r'); while(!feof($fh)) $line .= fgets($fh, 4096); fclose($fh);
foreach ($vl as $k=>$v) $line = str_replace("#%$k%#",$v,$line);
$line = preg_replace("/#%[a-z0-9_]*%#/i",'',$line);
echo stripslashes($line);
exit;
}
Fike 18.07.2014 10:40 # +2
Oliver_air 23.07.2014 11:28 # 0
bormand 23.07.2014 14:40 # 0