Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Reikia išimti navigaciją

Parašė edis2· 2008 Gru. 19 08:12:00
#2

<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";

// theme settings
$body_text = "#ffffff";
$body_bg = "#202020";
$theme_width = "750";
$theme_width_l = "175";
$theme_width_r = "175";

function render_header($header_content) {

global $theme_width,$locale,$data,$aidlink,$db_prefix,$settings,$msg_count;

echo "<center><table id='Table_01' width='750' height='552' border='0' cellpadding='0' cellspacing='0'>
   <tr>
<td colspan='5' rowspan='2' style=\"background-image: url('".THEME."images/virsus_01.gif'); font-weight: bolder; height: 32px; width: 226px\" style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom: 10;\">";
echo "<center>".showsubdate()."</center>";
echo "</td>
      <td colspan='14'>
         <img src='".THEME."images/virsus_02.gif' width='732' height='9' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='9' alt=''></td>
   </tr>
   <tr>
      <td colspan='8' rowspan='2'>
         <img src='".THEME."images/virsus_03.gif' width='572' height='30' alt=''></td>
      <td colspan='2' rowspan='3'>
         <a href='".BASEDIR."index.php'><img src='".THEME."images/virsus_04.gif' width='40' height='32' alt='' border='0'></a></td>
      <td rowspan='3'>
         <a href='".BASEDIR."kontaktai.php'><img src='".THEME."images/virsus_05.gif' width='36' height='32' alt='' border='0'></a></td>
      <td rowspan='3'>
         <a href='".BASEDIR."paieska.php'><img src='".THEME."images/virsus_06.gif' width='41' height='32' alt='' border='0'></a></td>
      <td colspan='2' rowspan='4'>
         <img src='".THEME."images/virsus_07.gif' width='43' height='74' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='23' alt=''></td>
   </tr>
   <tr>
      <td colspan='5'>
         <img src='".THEME."images/virsus_08.gif' width='226' height='7' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='7' alt=''></td>
   </tr>
   <tr>
      <td colspan='2' rowspan='5'>
         <img src='".THEME."images/virsus_09.gif' width='10' height='164' alt=''></td>
      <td colspan='6' rowspan='4'>
         <img src='".THEME."images/virsus_10.gif' width='461' height='141' alt=''></td>
      <td colspan='5' rowspan='2'>
         <img src='".THEME."images/virsus_11.gif' width='327' height='44' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='2' alt=''></td>
   </tr>
   <tr>
      <td colspan='4'>
         <img src='".THEME."images/virsus_12.gif' width='117' height='42' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='42' alt=''></td>
   </tr>
   <tr>
      <td rowspan='3'>
         <img src='".THEME."images/virsus_13.gif' width='14' height='120' alt=''></td>
<td colspan='9' style=\"background-image: url('".THEME."images/virsus_14.gif'); font-weight: bolder; height: 60px; width: 468px\" style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom: 10;\">";
echo "<a href='http://cs-source.xz.lt'><img src='".BASEDIR."images/reklama2.png' border='0'></a>";
echo "</td>
      <td rowspan='3'>
         <img src='".THEME."images/virsus_15.gif' width='5' height='120' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='60' alt=''></td>
   </tr>
   <tr>
      <td colspan='9' rowspan='2'>
         <img src='".THEME."images/virsus_16.gif' width='468' height='60' alt='' border='0'></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='37' alt=''></td>
   </tr>
   <tr>
      <td colspan='6'>
         <img src='".THEME."images/virsus_17.gif' width='461' height='23' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='23' alt=''></td>
   </tr>
   <tr>
      <td rowspan='4'>
         <img src='".THEME."images/virsus_18.gif' width='1' height='348' alt=''></td>

   
   <tr>
      <td colspan='10'>
         <img src='".THEME."images/virsus_27.gif' width='629' height='38' alt=''></td>
      <td colspan='8'>
         <img src='".THEME."images/virsus_28.gif' width='328' height='38' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='38' alt=''></td>
   </tr>
   <tr>
      <td colspan='18'>
         <img src='".THEME."images/virsus_29.gif' width='957' height='37' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='37' alt=''></td>
   </tr>
   <tr>
<td colspan='6' style=\"background-image: url('".THEME."images/virsus_30.gif'); font-weight: bolder; height: 227px; width: 391px\" style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom: 10;\">";
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
if (isset($_GET[id]) && !isNum($_GET[id])) fallback(FUSION_SELF);
if (isset($_GET[shout]) && !preg_match("#(add|edit|delete)#iu", $_GET[shout])) fallback(FUSION_SELF);
define("SBX_EDIT_USER", $settings[sbx_edit_user]);
$shout = $_GET[shout]; $id = $_GET[id];
if (iMEMBER || $settings['guestposts'] == "1") {
$result = dbquery("SELECT * FROM ".$db_prefix."shoutbox WHERE shout_id='".$id."'");
if (dbrows($result)) $sdata = dbarray($result);
if (isset($_POST['post_shout']) && isset($shout)) {
$flood = false;
if (iMEMBER) {
$shout_name = $userdata['user_id'];
} elseif ($settings['guestposts'] == "1") {
$shout_name = trim(stripinput($_POST['shout_name']));
$shout_name = preg_replace("(^[0-9]*)", "", $shout_name);
if (isNum($shout_name)) $shout_name="";
}
$shout_message = str_replace("\n", " ", $_POST['shout_message']);
$shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message);
$shout_message = str_replace("[", " [", $shout_message);
$shout_message = preg_replace("/([^\s]{21})/", "$1\n", $shout_message);
$shout_message = trim(stripinput(censorwords($shout_message)));
$shout_message = str_replace("\n", "<br>", $shout_message);
if ($shout_name != "" && $shout_message != "") {
$result = dbquery("SELECT MAX(shout_datestamp) AS last_shout FROM ".$db_prefix."shoutbox WHERE shout_ip='".USER_IP."'");
if (!iSUPERADMIN && dbrows($result) > 0) {
$data = dbarray($result);
if ((time() - $data['last_shout']) < $settings['flood_interval']) {
$flood = true;
$result = dbquery("INSERT INTO ".$db_prefix."flood_control (flood_ip, flood_timestamp) VALUES ('".USER_IP."', '".time()."')");
if (dbcount("(flood_ip)", "flood_control", "flood_ip='".USER_IP."'") > 4) {
if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_status='1' WHERE user_id='".$userdata['user_id']."'");
}
}
}
if (!$flood) {
$lin = FUSION_QUERY;
if ($shout =='add') {
$result = dbquery("INSERT INTO ".$db_prefix."shoutbox (shout_name, shout_message, shout_datestamp, shout_ip) VALUES ('$shout_name', '$shout_message', '".time()."', '".USER_IP."')");
if (EPS && iMEMBER) {
$przydzial = dbarray(dbquery("SELECT point_ammount from ".DB_PREFIX."eps_points WHERE point_id='2'"));
$result = dbquery("UPDATE ".DB_PREFIX."users SET points_normal=points_normal+".($przydzial['point_ammount'])." WHERE user_id='".$userdata['user_id']."'");
}
}
if ($shout =='edit' AND checkrights("S")
OR SBX_EDIT_USER AND iMEMBER AND $sdata['shout_name'] == $userdata['user_id']) {
$result = dbquery("UPDATE ".$db_prefix."shoutbox SET shout_message='$shout_message' WHERE shout_id='".$id."'");
}
$lin = str_replace("&shout=$shout&id=$id", '', $lin);
$lin = str_replace("shout=$shout&id=$id", '', $lin);

if($lin != '') redirect(FUSION_SELF."?".$lin);
else redirect(FUSION_SELF.$lin);
}
}
}
if (
isset($shout) AND isset($id) AND isNum($id) AND checkrights("S")
OR isset($shout) AND isset($id) AND isNum($id) AND !checkrights("S") AND iMEMBER AND $sdata['shout_name'] == $userdata['user_id'] AND SBX_EDIT_USER
) {
if ($shout == 'edit') {
$shout_message = str_replace("<br>", "", $sdata[shout_message]);
$shout_message = str_replace(" [", "[", $shout_message);
} else if ($shout == 'delete') {
$result = dbquery("DELETE from ".$db_prefix."shoutbox WHERE shout_id='".$id."'");
$lin = FUSION_QUERY;
$lin = str_replace("&shout=$shout&id=$id", '', $lin);
$lin = str_replace("shout=$shout&id=$id", '', $lin);

if($lin != '') redirect(FUSION_SELF."?".$lin);
else redirect(FUSION_SELF.$lin);
}
} else {
$id = 0;
$shout = 'add';
$shout_message = '';
$shout_name = '';
}
if(iMEMBER){
}
if ($c_count > $caution_conf['shoutbox']) {
echo $caution_conf['shoutbox_info']."<br><br>";
} else {
if ($shout == 'add') {
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY."&shout=$shout&id=$id") : "?shout=add&id=$id")."'>";
} else {
echo "<form name='chatform' method='post' action='".FUSION_SELF.(FUSION_QUERY ? "?".str_replace("&","&",FUSION_QUERY) : "?shout=$shout&id=$id")."'>";
}
echo"
<table align='center' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='2'>\n";
if (iGUEST) {
echo $locale['121']."<br>
<input type='text' name='shout_name' value='$shout_name' class='sb' maxlength='30' style='width:140px;'><br>
".$locale['122']."<br>\n";
}
echo" ";

echo" </td>

<td >
<a href='".BASEDIR."rasyti.php'><img src='".THEME."images/rasyti.png' alt='' border='0'></a></td>
";
echo" </td>

<td>";if (iMEMBER) {



} else {
echo "<div align='left'></div>\n";
}
echo "</td>

</tr>
</table></form></div>\n";
echo"<script>show_hide(ShowHide7)</script>";
}
echo"\n";
} else {
echo"<center>".$locale['125']."</center>\n";
}
$result = dbquery("
SELECT * FROM ".DB_PREFIX."shoutbox
LEFT JOIN ".DB_PREFIX."users ON ".DB_PREFIX."shoutbox.shout_name=".DB_PREFIX."users.user_id
ORDER BY shout_datestamp DESC LIMIT 0,".$settings['numofshouts']
);
echo" <script type='text/javascript' src='".INFUSIONS."shoutbox_panel/js/lighttable.js' language='Javascript'></script>";
echo" <script type=\"text/javascript\">
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=5
if (iens6){
document.write('<div id=\"container\" style=\"position:relative;width:95%;height:120px;border:0px solid #444444;overflow:hidden\">')
document.write('<div id=\"content\" style=\"position:absolute;width:100%;left:0;top:0\">')
}
</script>";
echo "<ilayer name=\"nscontainer\" width=100% height=250 clip=\"0,0,277,400\">";
echo "<layer name=\"nscontent\" width=100% height=250 visibility=hidden>";

if (dbrows($result) > 0) {
while ($data = dbarray($result)) {
echo"<span class='shoutboxname'>";


$user = "<span style='color:#".$data['user_color']."'>".$data['user_prefix'].$data['user_name']."</span>";

if ($data['user_name'] ) {

echo"<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>$user</a> <span class='shoutboxdate'><font style='font-style:italic;font-family:arial;font-size:7;color:#777777;'>".$locale['135']." ".showdate("shortdate", $data['shout_datestamp'])."</font></span><br>\n";
} else {
echo"<span style='color:#".$gouest_opt['user_color']."'>".$gouest_opt['user_prefix'].$data['shout_name']."</span>\n";
}
echo"</span>";



echo"<img src='".THEME."images/sbkropki.png' alt=''><br>";
$mes = str_replace(" [", "[", $data[shout_message]);
$mes = nl2br(parseubb(parsesmileys($mes)));
echo "<span class='shoutbox'>".$mes ."</span>";
echo "<br><br><img src='".THEME."images/sbkreski.png' alt=''><br><br>\n";
}
} else {
echo "<div align='left'>".$locale['127']."</div>\n";
}
echo "</layer></ilayer><script language=\"JavaScript1.2\">
if (iens6)
document.write('</div></div>')
</script>";

echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">
<td><p align=\"right\">";
if (iMEMBER) {
;}echo"<a href=\"#\" onMouseover=\"moveup()\" onMouseout=\"clearTimeout(moveupvar)\"><img src=\"".THEME."images/up.png\" border=\"0\"></a> ";
echo "<a href=\"#\" onMouseover=\"movedown()\" onMouseout=\"clearTimeout(movedownvar)\"><img src=\"".THEME."images/down.png\" border=\"0\"></a>";
echo "</td></table>";


echo "<script language=\"JavaScript1.2\">
if (iens6) {
var crossobj=document.getElementById? document.getElementById(\"content\") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4) {
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}

function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+\"px\"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout(\"movedown()\",20)
}

function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+\"px\"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout(\"moveup()\",20)

}

function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility=\"show\"
}
window.onload=getcontent_height
</script>";
echo "</td>
      <td colspan='4' style=\"background-image: url('".THEME."images/virsus_31.gif'); font-weight: bolder; height: 227px; width: 238px\">";
$result = dbquery("
   SELECT tf.forum_id, tt.thread_id, tt.thread_subject, COUNT(tp.post_id) as count_posts
   FROM ".$db_prefix."forums tf
   INNER JOIN ".$db_prefix."threads tt USING(forum_id)
   INNER JOIN ".$db_prefix."posts tp USING(thread_id)
   WHERE ".groupaccess('forum_access')." GROUP BY thread_id ORDER BY count_posts DESC, thread_lastpost DESC LIMIT 10
");
if (dbrows($result) != 0) {

echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".FORUM."viewthread.php?forum_id=".$data['forum_id']."&amp;thread_id=".$data['thread_id']."' title='".$data['thread_subject']."' class='side'>".$data['thread_subject']."</a>
</td>
<td align='right'>[".($data['count_posts']-1)."]</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
echo "</td>

<td colspan='8' style=\"background-image: url('".THEME."images/virsus_32.gif'); font-weight: bolder; height: 227px; width: 328px\">";
if (iMEMBER) {
opensidel();
if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".IMAGES."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";

echo "<img src='".BASEDIR."images/avatars/".$userdata['user_avatar']."' width='50' hight='50' alt='".$data['user_name']."'></td>";
echo "<td align='right'><img src='".IMAGES."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".IMAGES."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";


} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
echo "<td><img src='".THEME."avatar_mod/gora_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".THEME."avatar_mod/gora_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".THEME."avatar_mod/gora_prawa.png' height='12' width='12'></td></tr><tr>\n";
echo "<td align='left'><img src='".THEME."avatar_mod/srodek_lewa.png' width='12' height='100%'></td>\n";
echo "<td align='center' height='1%'>";

echo "<img src='".THEME."/images/brak.gif' width='50' hight='50'></td>";
echo "<td align='right'><img src='".THEME."avatar_mod/srodek_prawa.png' height='100%' width='12'></td></tr><tr>\n";
echo "<td><img src='".THEME."avatar_mod/dol_lewa.png' height='12' width='12'></td>\n";
echo "<td><img src='".THEME."avatar_mod/dol_srodek.png' height='12' width='100%'></td>\n";
echo "<td><img src='".THEME."avatar_mod/dol_prawa.png' height='12' width='12'></td></tr>\n";
echo "</table></center>";


echo"<table><tr><td></td></tr></table>";


}

$msg_count = dbcount("(message_id)", "messages", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");

echo " <br><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>Redaguoti apra&#240;ym&#224;</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>Asmenin&#235;s &#254;inut&#235;s</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nariø s&#224;ra&#240;as</a><br>\n";

echo "<center><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>

</table></center>";

if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {

echo "<br><center><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."index.php$aidlink' >Administracijos panel&#235;</a></center><br>\n";

}{echo "\n



";

echo"<div style=\"text-align: center\"><a href='".BASEDIR."setuser.php?logout=yes' class='side'>[ Atsijungti ]</a></div>\n";

   if ($msg_count) echo "<br><br><center><b><a href='".BASEDIR."messages.php' class='side'>".sprintf($locale['085'], $msg_count).($msg_count == 1 ? $locale['086'] : $locale['087'])."</a></b></center>\n";
}
tablebreak();

} else {

opensidel();

echo "<div align='center'>".(isset($loginerror) ? $loginerror : "")."

<form name='loginform' method='post' action='".FUSION_SELF."'>

<input type='text' name='user_name' class='panellogowania_texbox' value='Vartotojo vardas....' onBlur=\"if(this.value=='') this.value='Vartotojo vardas....';\" onFocus=\"if(this.value=='Vartotojo vardas....') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br><br>

<input type='password' name='user_pass' class='panellogowania_texbox' value='has?o' onBlur=\"if(this.value=='') this.value='has?o';\" onFocus=\"if(this.value=='has?o') this.value='';\" style=\"padding-top: 4px; padding-left: 5px; padding-right: 29px\" ><br>

<input type='checkbox' name='remember_me' value='y' title='Zapamie;taj mnie' style='vertical-align:middle;'>

<input type='submit' name='login' value='Prisijungti' class='panelogowania_button'>

</form>

<br>\n";

if ($settings['enable_registration']) {

echo "<a href='".BASEDIR."register.php' class='side'>Registracija</a><br>\n";

}

echo "<a href='".BASEDIR."lostpassword.php' class='side'>Pamir&#240;ai slapta&#254;od&#225;?
</a>

</div>\n";

}
closesidel();
echo "</td>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='227' alt=''></td>
   </tr>
   <tr>
      <td>
         <img src='".THEME."images/spacer.gif' width='1' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='9' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='108' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='105' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='3' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='93' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='73' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='79' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='14' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='79' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='66' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='64' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='104' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='6' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='34' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='36' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='41' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='38' height='1' alt=''></td>
      <td>
         <img src='".THEME."images/spacer.gif' width='5' height='1' alt=''></td>
      <td></td>
   </tr>
</table>
\n";


echo "<table cellpadding='0' cellspacing='0' width='975'>\n<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='95%'>
<tr>
<td ><center>Dizainas: <a href='http://emikser.pl'><b>eMikser.pl</b></a> | Sukodavo <a href='http://edeni.info'><b>edeni</b></a>   
<br>Copyright 2008 Cs-Source.Xz.Lt | <u>Kopijuoti draud&#382;iama!<u></center>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";

}

function render_news($subject, $news, $info) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background=\"".THEME."images/virsuss.png\" width=\"660\" height=\"45\" style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom: 10;\"><center><b>$subject</b></center></td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td background=\"".THEME."images/news-footer.png\" width=\"217\" height=\"3\" style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom: 10;\">\n";
echo openform("N",$info['news_id']).newsposter($info," &middot;").newsopts($info,"&middot;").closeform("N",$info['news_id']);
echo "</td>
</tr>
</table>\n";

}

function render_article($subject, $article, $info) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td background=\"".THEME."images/virsuss.png\" width=\"660\" height=\"45\" style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom: 10;\"><center><b>$subject</b></center></td>
</tr>
<tr>
<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td background=\"".THEME."images/news-footer.png\" width=\"217\" height=\"3\" style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom: 10;\">\n";
echo openform("A",$info['article_id']).articleposter($info," &middot;").articleopts($info,"&middot;").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";

}

function opentable($title) {

echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style=\"background-image: url('".THEME."images/virsuss.png'); font-weight: bolder; height: 45px; width: 288px\" style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom: 10;\">";
echo "<center>$title</center>\n";
echo "</td>
</tr>
<tr>
<td >\n";

}

function closetable() {

echo "</td>
</tr>
<tr>
<td></td>
</tr>
</table>\n";

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td style=\"background-image: url('".THEME."images/pane_01.gif'); font-weight: bolder; height: 45px; width: 288px\" style=\"border: 0; padding-top: 20; padding-left: 25; padding-right: 25; padding-bottom: 10;\">";
echo "<center>$title</center>\n";
echo "</td>
</tr>
<tr>
<td background=\"".THEME."images/pane_04.gif\" width=\"217\" height=\"3\" style=\"border: 0; padding-top: 10; padding-left: 10; padding-right: 10; padding-bottom: 10;\">\n";

}

function closeside() {

echo "</td>
</tr>
<tr>
<td><img src=\"".THEME."images/pane_06.gif\" border=\"0\" height=\"10\" width=\"288\" /></td>
</tr>
</table>\n";
tablebreak();

}

function opensidex($title,$state="on") {

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";

}

function closesidex() {

echo "</div>
</td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";

}

function opensidel() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>\n";
}

function closesidel() {
echo "</td>
</tr>
</table>\n";
}
?>




Tinka?? :)