Stai kodas
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
/************************/
/* Settings/Nustatymai */
/************************/
$body_text = "#FFFFFF";
$body_bg = "#d8d8d8";
$theme_width = "1000";
$theme_width_l = "185";
$theme_width_r = "185";
function render_header($header_content) {
global $theme_width,$settings,$aidlink,$locale,$userdata,$db_prefix;
echo "<table align=center class='mainsite-border' align='left' width='900' cellspacing='0' cellpadding='0' style='border-right: solid #FFFFFF 0px; border-left: solid #FFFFFF 0px;
border-top: solid #FFFFFF 0px;'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<table width='1000' cellspacing='0' cellpadding='0'>\n<tr><td>";
echo "<table width='$theme_width' border='0' align='center' cellpadding='0' cellspacing='0' background='".THEME."head/header.png' height='174' style='background-repeat: no-
repeat;'>
<tr>
<td valign='top' style='padding-left:21px; padding-top:120px;' width='1200'>
</td>
<td width='174' style='padding-right:53px; padding-top:20px;' valign='top'>";
if (iMEMBER) {
$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
echo "<table width='235' border='0' cellspacing='2' cellpadding='2'>
<tr>
<td>\n";
if ($userdata['user_avatar'] != "") {
echo "<center><img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='100' height='100' style='border:1px'></center>\n";
} else {
echo "<center><img src='".THEME."images/noavatar.gif' width='100' height='100' border='0'></center>\n";
}
echo "</td>
<td valign='top'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti profilá</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."' class='side'>Mano profilis</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Þinutës [naujø: <b><span style='color:#990000'>".sprintf
($msg_count)."</span></b>]</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariai</a><br>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php".$aidlink."' class='side'>Administracija</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a><br><br>
</span> <span class='whitel'><b><span style='color:FFFFFF'>IP:</span></b></span> <span style='color:lime'>".$_SERVER['REMOTE_ADDR']."</span></a> ";
$ip = $_SERVER['REMOTE_ADDR'];
error_reporting(0);
$IP = array( "$ip:80" ); while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<br><span style='color:FFFFFF'>Jis yra: </span></b><span style='color:lime'>Iðorinis</span>");
fclose($fp);
}
else {
echo ("<br><b><span style='color:FFFFFF'>Jis yra: </span></b><span style='color:red'>Vidinis</span>");
}
}
echo "<span class='ip'>".$userip."</span><br /></td></tr></table>\n";
} else {
echo "<table width='170' border='0' cellspacing='0' cellpadding='0' align='center'><form name='loginform' method='post' action='".FUSION_SELF."'>
<tr>
<td align='right' class='ip'><span style='color:white'>Vardas: </span></td>
<td> <input type='text' name='user_name' class='textbox' style='width:130px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right' class='ip'><span style='color:white'>".$locale['062'].": </span></td>
<td><br> <input type='password' name='user_pass' class='textbox' style='width:130px;filter:alpha(opacity=70)'></td>
</tr>
<tr>
<td align='right'><input type='checkbox' name='remember_me' value='y'></td>
<td> <input type='submit' name='login' value='Prisijungti' class='button'></td>
</tr>
</form>\n";
if ($settings['enable_registration']) {
echo "<a href=".BASEDIR."register.php>Registracija</a> / <a href=".BASEDIR."lostpassword.php>Slaptaþodis</a>\n";
}
echo"</table>\n";
}
echo "<table width='100%' cellpadding='4' bgcolor='#F8F8F8' cellspacing='0' border='0'><tr>";
echo "</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo "</tr>\n</table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0' background='".THEME."images/footer.gif' style='border-right: solid #b5b5b5 1px; border-left: solid
#b5b5b5 1px;'>";
echo "<td width='20%' height='30' class='white' align='left'>";
if ($license == false) {
echo "<b>Varikliukas: <a href='http://php-fusion.co.uk' target='_blank'><span style='color:red'>PHP-Fusion</span></a></b>";
}
echo "</td>";
echo "<td width='60%' class='white' align='center'>";
echo "<b><cnter>".stripslashes($settings['footer'])."</cnter></b></td>";
echo "<td width='26%' class='white' align='right'>";
echo "</td>";
echo "<div align='center'></tr></table></td></tr></table></div>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='19' height='39' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$subject</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='19' height='39' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div><br>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar'>".newsposter($info)."</td>";
echo "<td align='right' class='infobar2'>";
echo openform("N",$info['news_id']).newsopts($info,"·").closeform("N",$info['news_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table class='news-border' border='0' cellspacing='2' width='100%' cellpadding='1'><tr>";
echo "<td height='23' class='table-cellpic'>$subject</td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='news-footer'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
echo "<td height='24' align='right' class='news-footer'>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." · ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."'style='vertical-
align:middle;border:0px;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
// Open table begins
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='19' height='39' alt=''
style='display:block'></td><td width='100%' class='panel-main'>$title</td><td class='panel-right'><img src='".THEME."images/blank.gif' width='19' height='39' alt=''
style='display:block'></td></tr></taašable width='100%' cellpadding='0' cellspacing='0'><tr><td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1'
alt='' style='display:block'></td><td class='side-body'>\n";
}
function closetable() {
echo "</td><td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr><tr><td class='border-bleft'><img
src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td><td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt=''
style='display:block'></td><td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td></tr></table>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td class='panel-left'><img src='".THEME."images/blank.gif' width='19' height='39' alt=''
style='display:block'></td><td width='100%' class='panel-main'>$title</td><td class='panel-right'><img src='".THEME."images/blank.gif' width='19' height='39' alt=''
style='display:block'></td></tr></taašable width='100%' cellpadding='0' cellspacing='0'><tr><td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1'
alt='' style='display:block'></td><td class='side-body'>\n";
}
function closeside() {
echo "</td><td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr><tr><td class='border-bleft'><img
src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td><td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt=''
style='display:block'></td><td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td></tr></table>\n";
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='14' height='39' alt='' style='display:block'></td>";
echo "<td class='panel-main'>$title</td>";
echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick=\"javascript:flipBox
('$boxname')\"></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='14' height='39' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td></td></tr></table>\n";
}
?>
Redagavo Karolis 2009 Lap. 8 02:11:18 |