index.php
Код:
<?php
include ('header.php');
if($accid) {
redirect("panel.php",true);
} else {
if ($accid) {
$loginot = "style";
} else {
$loginot = "login";
}
$ParseArray = array(
"SITENAME" => $sitename,
"METAINFO" => confdata("meta_info"),
"METAKEYWORDS" => confdata("meta_keywords"),
"URL" => $siteaddress,
"LOG_IN_OT" => $loginot,
"NAME" => '<font class="navfont">Logged in as '.stripslashes($account['username']).' ( '.stripslashes($email).' )</font>');
$Template = "header.tpl";
$Parser = new Parser();
$headout = $Parser->ParseTags($Template, $ParseArray);
print $headout;
include ("modules/home.php");
}
echo "
</body>
</html>";
?>