Quote:
Originally Posted by Mijae
Thats what I tried, and it didnt work 
|
Ok, images will only show up if I add the template call after the code, which doesnt work right because the images are shown before the header.
Code:
<?
error_reporting(E_ALL & ~E_NOTICE);
require_once('./global.php');
define('THIS_SCRIPT', 'gallery');
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('gallery_main') . '");');
if(isset($page)){
if(is_file('/home/xxx/php/'.$page.'.php')) {
include('/home/xxx/php/'.$page.'.php');
$file=$page.'.php';
}
elseif(is_file('/home/xxx/php/'.$page)) {
include('/home/xxx/php/'.$page);
$file=$page;
}
else {
echo "<font face=verdana size=1><b>Page \"$page\" is invalid.";
}
}
else {
include('/home/xxx/php/1.php');
$file='home';
}
?>
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
<!-- end no cache headers -->
<title><phrase 1="$vboptions[bbtitle]">$vbphrase[x_powered_by_vbulletin]</phrase></title>
$headinclude
</head>
<body>
$header
$navbar