Parašė kiskiss· 2008 Kov. 9 19:03:08
#9
<?php
if (!defined("IN_FUSION")) { header("Location: index.php"); exit; }
require_once THEME."theme.php";
if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php");
if (iMEMBER) $result = dbquery("UPDATE {$db_prefix}users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='{$userdata['user_id']}'");
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//LT\">
<html>
<head>
<title>{$settings['sitename']}</title>
<meta http-equiv='Content-Type' content='text/html; charset={$locale['charset']}'>
<meta name='description' content='{$settings['description']}'>
<meta name='keywords' content='{$settings['keywords']}'>
<link rel='stylesheet' href='".THEME."styles.css' type='text/css'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>
</head>
<head>
<script language='JavaScript'>
if (top.location != self.location) {top.location = self.location} </script>
<noscript> </head> <body></noscript><body>
<body bgcolor='$body_bg' text='$body_text'>\n";
$links = array("edit_profile.php","messages.php","members.php","setuser.php?logout=yes","register.php","lostpassword.php");
$titles = array("Redaguoti aprašyma","Asmeniniai pranešimai","Vartotojai","Atsijungti","Registracija","Pamiršai slaptažodi?");
$image = "<img src='".THEME."images/bullet.gif' alt=''>";
if (iMEMBER) {
echo "\n<center>";
for ($i = 0; $i < 4; $i++) echo $image." <a href='".BASEDIR.$links[$i]."' class='side'> {$titles[$i]} </a>".($i != 3 ? $i == 3 : " ");
echo "</center>\n";
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
if ($msg_count) echo "<b><a href='".BASEDIR."messages.php?folder=inbox' class='side'><center><b>Jus gavote nauja žinute</b></center></a></b></center><br>\n";
if (iADMIN) echo $image." <a href='".ADMIN."index.php".$aidlink."' class='side'> Administracija</a>\n";
render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
} else {
render_header("");
}
?>
Nu jau pats asmeniškai ištestavau, jei tau neveiks nu tai nebežinau...
Redagavo kiskiss· 2008 Kov. 9 19:03:56