Parašė Žmogus· 2008 Bal. 27 11:04:57
#11
Va visas subheader
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2006 Nick Jones
| <a href="http://www.php-fusion.co.uk/" target="_blank" title="autolink">http://www.php-fusion.co.uk/</a> +----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit <a href="http://gnu.org" target="_blank" title="autolink">http://gnu.org</a> +----------------------------------------------------*/
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']."'");
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
$cnt_inbox_qry = dbquery("SELECT COUNT(message_id) cnt_inbox FROM ".$db_prefix."messages WHERE message_to='".$userdata['user_id']."' AND message_folder='0' GROUP BY message_to");
if (dbrows($cnt_inbox_qry) != 0) { $cnt_inbox = dbresult($cnt_inbox_qry,0); }
$limit_inbox=dbresult(dbquery("SELECT pm_inbox FROM ".$db_prefix."messages_options WHERE user_id='0'"),0);
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">
<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'>
<link rel='shortcut icon' href='".BASEDIR."favicon.ico'>
<script type='text/javascript' src='".INCLUDES."jscript.js'></script>";
echo "</head><body bgcolor='$body_bg' text='$body_text'><script defer='defer' id='snap_preview_anywhere' type='text/javascript' src='http://spa.snap.com/snap_preview_anywhere.js?ap=0&key=cbde409959d92cab61a4ae4901dce63a&sb=0&th=asphalt&cl=1&si=0&oi=0?=en-us&domain=kietekas.com'></script>\n";
if (iMEMBER) {render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");}
if (!iMEMBER) {render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>");
echo "<div align='center'>
<form name='loginform' method='post' action='".FUSION_SELF."'><center>
".$locale['061']."
<input type='text' name='user_name' class='textbox' style='width:100px'>
".$locale['062']."
<input type='password' name='user_pass' class='textbox' style='width:100px'>
<input type='checkbox' name='remember_me' value='y'>
<input type='submit' name='login' value='Prisijungti' class='button'> <a href='".BASEDIR."register.php'><b>Registruotis </b></a> | <a href='".BASEDIR."lostpassword.php'><b> Pamiršai slaptažodį?<b></a></center>
</form>
</div>\n";}
?>