<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$lookup,$msg_count,$aidlink;
// BG
echo "<div id='bg'><img src='".THEME."images/bg.png' width='100%' height='100%'/></div>";
// Headeris
echo "<table cellspacing='0' cellpadding='0' align='center' border='0' class='rodymas'><tr>";
echo "<td height='34px'></td></tr><tr>";
echo "<td rowspan='3'><a href='/'><img src='".THEME."images/logo.png'/></a></td>";
echo "<td rowspan='3' width='125px'></td>";
echo "<td height='6px'></td>";
echo "</tr><tr>";
echo "<td class='ainc'<a href='http://www.cancel.lt' target='_blank'><img src='http://monitors.cancel.lt/server_info/82.135.230.13:7003:samp/560x95.png' border='0' alt='CANCEL.LT' width='560' height='95' /></a>'></iframe>'</a></td>";
echo "</tr><tr>";
echo "<td height='80px'></td>";
echo "</tr><tr><td height='50px'></td>";
echo "</tr></table>";
// Login
echo "<table cellspacing='0' cellpadding='0' align='center' border='0' class='rodymas'><tr>";
echo "<td background='".THEME."images/login-left.png' width='194' height='44'></td>";
echo "<td background='".THEME."images/login-center.png' width='669' height='44'>";
if(iMEMBER) {
$avatar = !empty($userdata['user_avatar']) ? IMAGES."avatars/".$userdata['user_avatar'] : THEME."images/noimage.gif";
echo "<table border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><img src='$avatar' width='30' height='30' align='left' style='padding:0 5px 0 7px;'/>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a></td>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."edit_profile.php'>Redaguoti profilį</a></td>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."members.php'>Narių sąrašas</a></td>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
if(iADMIN) echo "<td style='padding:0 0 0 30px;'><a href='".ADMIN."index.php".$aidlink."' >Administracija</a></td>";
echo "</tr></table>";
} else {
echo "<table cellspacing='0' cellpadding='0' border='0'><tr>
<form name='loginform' method='post' action='news.php'>
<td><input type='text' name='user_name' class='laukelis' placeholder='Vartotojo vardas...' style='padding-left: 5px;'/></td>
<td width='6px'></td>
<td><input type='password' name='user_pass' class='laukelis' placeholder='Slaptažodis...' style='padding-left: 5px;'/></td>
<td><input type='submit' name='login' value='' class='login-button' /></td></form>
<td width='10px'></td>
<td class='login-info'><a href='/register.php'>REGISTRACIJA</a> / <a href='/lostpassword.php'> SLAPTAZODIS</a></td>
</tr></table></td>";
}
echo "</td>";
echo "<td background='".THEME."images/login-right.png' width='164' height='44'></td>";
echo "</tr></table>";
// Content
echo "<table cellpadding='0' cellspacing='0' width='1027' align='center' class='content'><tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
// Footer
echo "<table cellpadding='0' cellspacing='0' align='center' width='1027' class='rodymas'><tr>
<td align='center' class='footer'>dizaino sprendimas: <a href='skype:tomas00025?chat'>tomas gliebus</a> / dizaino kodavimas: <a href='skype:dariukas405?chat'>dariukas</a> / varikliukas: <font color='#fff'>PHP-Fusion</font></td>
</tr></table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='600px' class='capmain'>$subject
<span class='autorius'>Autorius: ".$info['user_name']."</span>
<div style='float:right;padding-right: 10px;'><span class='placiau'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>Skaityti placiau...</a></span></div>
</td></tr></table>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news";
echo "</td></tr></table><br>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='600px' class='panel-main2'>$subject</td></tr></table>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='article-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr><br>";
echo "<td class='infobar2'>".articleposter($info," ·")."</td>";
echo "<td align='right' class='infobar2'>";
echo articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td></tr></table></td>";
echo "</tr></table><br>\n";
}
function opentable($title) {
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='600px' class='capmain'>$title</td></tr></table>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='table-body'><br>\n";
}
function closetable() {
echo "</td></tr></table><br>\n";
}
function openside($title) {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "<table width='253' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='253' class='scapmain-left'>$title</td></tr></table>";
echo "<table width='253' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='side-body'><br>\n";
} else {
echo "<table width='170px' cellpadding='0' cellspacing='0'>";
echo "<td width='170px' class='scapmain-right'>$title</td></tr></table>";
echo "<table width='170px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='side-body'><br>\n";
}
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td></tr></table><br>\n";
} else {
echo "</td></tr></table><br>\n";
}
}
?>
echo "<td class='ainc'<a href='http://www.cancel.lt' target='_blank'><img src='http://monitors.cancel.lt/server_info/82.135.230.13:7003:samp/560x95.png' border='0' alt='CANCEL.LT' width='560' height='95' /></a>'></iframe>'</a></td>":
<iframe src='http://royalgaming.lt/imgt/index.php' scrolling='no' frameborder='0' width='500' height='180'></iframe>
echo "<td class='ainc'<a href='http://www.cancel.lt' target='_blank'><img src='http://monitors.cancel.lt/server_info/82.135.230.13:7003amp/560x95.png' border='0' alt='CANCEL.LT' width='560' height='95' /></a>'></iframe>'</a></td>":
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license=false) {
global $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$lookup,$msg_count,$aidlink;
// BG
echo "<div id='bg'><img src='".THEME."images/bg.png' width='100%' height='100%'/></div>";
// Headeris
echo "<table cellspacing='0' cellpadding='0' align='center' border='0' class='rodymas'><tr>";
echo "<td height='34px'></td></tr><tr>";
echo "<td rowspan='3'><a href='/'><img src='".THEME."images/logo.png'/></a></td>";
echo "<td rowspan='3' width='125px'></td>";
echo "<td height='6px'></td>";
echo "</tr><tr>";
echo "<td class='ainc'<a href='http://www.cancel.lt' target='_blank'><img src='http://monitors.cancel.lt/server_info/82.135.230.13:7003amp/560x95.png' border='0' alt='CANCEL.LT' width='560' height='95' /></a>'></iframe>'</a></td>";
echo "</tr><tr>";
echo "<td height='80px'></td>";
echo "</tr><tr><td height='50px'></td>";
echo "</tr></table>";
// Login
echo "<table cellspacing='0' cellpadding='0' align='center' border='0' class='rodymas'><tr>";
echo "<td background='".THEME."images/login-left.png' width='194' height='44'></td>";
echo "<td background='".THEME."images/login-center.png' width='669' height='44'>";
if(iMEMBER) {
$avatar = !empty($userdata['user_avatar']) ? IMAGES."avatars/".$userdata['user_avatar'] : THEME."images/noimage.gif";
echo "<table border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td><img src='$avatar' width='30' height='30' align='left' style='padding:0 5px 0 7px;'/>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'>Mano profilis</a></td>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."edit_profile.php'>Redaguoti profilį</a></td>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."members.php'>Narių sąrašas</a></td>
<td style='padding:0 7px 0 7px;'><a href='".BASEDIR."setuser.php?logout=yes'>Atsijungti</a></td>";
if(iADMIN) echo "<td style='padding:0 0 0 30px;'><a href='".ADMIN."index.php".$aidlink."' >Administracija</a></td>";
echo "</tr></table>";
} else {
echo "<table cellspacing='0' cellpadding='0' border='0'><tr>
<form name='loginform' method='post' action='news.php'>
<td><input type='text' name='user_name' class='laukelis' placeholder='Vartotojo vardas...' style='padding-left: 5px;'/></td>
<td width='6px'></td>
<td><input type='password' name='user_pass' class='laukelis' placeholder='Slaptažodis...' style='padding-left: 5px;'/></td>
<td><input type='submit' name='login' value='' class='login-button' /></td></form>
<td width='10px'></td>
<td class='login-info'><a href='/register.php'>REGISTRACIJA</a> / <a href='/lostpassword.php'> SLAPTAZODIS</a></td>
</tr></table></td>";
}
echo "</td>";
echo "<td background='".THEME."images/login-right.png' width='164' height='44'></td>";
echo "</tr></table>";
// Content
echo "<table cellpadding='0' cellspacing='0' width='1027' align='center' class='content'><tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
// Footer
echo "<table cellpadding='0' cellspacing='0' align='center' width='1027' class='rodymas'><tr>
<td align='center' class='footer'>dizaino sprendimas: <a href='skype:tomas00025?chat'>tomas gliebus</a> / dizaino kodavimas: <a href='skypeariukas405?chat'>dariukas</a> / varikliukas: <font color='#fff'>PHP-Fusion</font></td>
<td class='ainc'<a href='http://www.cancel.lt' target='_blank'><img src='http://monitors.cancel.lt/server_info/82.135.230.13:7003amp/560x95.png' border='0' alt='CANCEL.LT' width='560' height='95' /></a>'></iframe>'</a></td>
<iframe src='http://royalgaming.lt/imgt/index.php' scrolling='no' frameborder='0' width='500' height='180'></iframe>
</tr></table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='600px' class='capmain'>$subject
<span class='autorius'>Autorius: ".$info['user_name']."</span>
<div style='float:right;padding-right: 10px;'><span class='placiau'><a href='".BASEDIR."news.php?readmore=".$info['news_id']."'>Skaityti placiau...</a></span></div>
</td></tr></table>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='main-body'>$news";
echo "</td></tr></table><br>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='600px' class='panel-main2'>$subject</td></tr></table>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='article-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr><br>";
echo "<td class='infobar2'>".articleposter($info," ·")."</td>";
echo "<td align='right' class='infobar2'>";
echo articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td></tr></table></td>";
echo "</tr></table><br>\n";
}
function opentable($title) {
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='600px' class='capmain'>$title</td></tr></table>";
echo "<table width='600px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='table-body'><br>\n";
}
function closetable() {
echo "</td></tr></table><br>\n";
}
function openside($title) {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "<table width='253' cellpadding='0' cellspacing='0'><tr>";
echo "<td width='253' class='scapmain-left'>$title</td></tr></table>";
echo "<table width='253' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='side-body'><br>\n";
} else {
echo "<table width='170px' cellpadding='0' cellspacing='0'>";
echo "<td width='170px' class='scapmain-right'>$title</td></tr></table>";
echo "<table width='170px' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='side-body'><br>\n";
}
}
function closeside() {
global $p_data;
if ($p_data['panel_side'] == 1) {
echo "</td></tr></table><br>\n";
} else {
echo "</td></tr></table><br>\n";
}
}
?>