Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Gal galit panaikinti

Parašė Žilvis· 2008 Kov. 9 18:03:31
#1






subheader.php:
<?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šymą","Asmeniniai pranešimai","Vartotojai","Atsijungti","Registracija","Pamiršai slaptažodį?");
$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>Jūs gavote naują žinutę</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 {
 echo " <center><form name='loginform' method='post' action='".FUSION_SELF."'>Vartotojas: <input type='text' name='user_name' class='textbox' style='width:90px'>
Slaptažodis: <input type='password' name='user_pass' class='textbox' style='width:90px'>
<input type='submit' name='login' value='Jungtis' class='button'></form></center>
<center><a href='".BASEDIR.$links[4]."'>{$titles[4]}</a> | <a href='".BASEDIR.$links[5]."'>{$titles[5]}</a></center>";
 render_header("");

}


?>