Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: ļ»æ

Parašė kLx· 2008 Sau. 10 16:01:05
#1

Sveiki


Jau užkniso ,puse dienos prasiknisiau ir neradau kur ištrint tą kvailą hieroglifą Gal jūs padėsit?
Theme.php :
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
$body_text = "#000";
$body_bg = "#000";
$theme_width = "780";
$theme_width_l = "161";
$theme_width_r = "161";


function render_header($header_content) {

global $theme_width,$settings, $locale, $userdata, $aidlink, $db_prefix ,$loginerror;





echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"780\">

<tr>

<td>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"780\">

<tr>


<td> <img src=\"".THEME."images/grafav3_02.png\" width=\"552\" height=\"239\" border=\"0\" ></td>
<td background=\"".THEME."images/grafav3_03.png\" width=\"228\" height=\"239\" border=\"0\">
<div style=\"padding-left: 10px; padding-right: 2px; padding-bottom: 20px\"><br>
";

if (iMEMBER) {
opensidel();
echo " <center><table cellspacing='2'> <tr>\n";
echo ("<td class='login' > Sveikas <a href='".BASEDIR."profile.php?lookup=".$userdata['user_id']."'" ."<span style='color:#".$userdata['user_color']."'>".$userdata['user_prefix'].$userdata['user_name']);
echo "</span></a></td>\n";   
echo "</tr></table></center>";

if ($userdata['user_avatar'] != "") {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\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 "</table></center>";


} else {
echo "<center><table cellspacing='0' cellpadding='0' border='0' align=\"left\"><tr>\n";
         echo "<td align='center' height='1%'>";

         echo "<img src='/images/noavatar.png' width='50' hight='50'></td>";
         echo "</table></center>";


}

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

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

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>A&#381;</a><br>

<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>Nari&#371; s&#261;ra&#353;as</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><br><br><br>\n";
echo " <table align='center'><tr>";
echo "<td class='login'><font size='-2'><b>Prid&#279;ti:</b></font>
<a href='".ADMIN."news.php".$aidlink."' class='side'><font size='-2'>Naujiena</font></a>
<a href='".ADMIN."articles.php".$aidlink."' class='side'><font size='-2'>Straipsn&#303;</font></a>
<a href='".ADMIN."weblinks.php".$aidlink."' class='side'><font size='-2'>Nuorod&#261;</font></a>
<a href='".ADMIN."downloads.php".$aidlink."' class='side'><font size='-2'>Siuntin&#303;</font></a>
</td>\n";
echo "</tr></table>";

}{echo "<br>

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

if ($msg_count) echo "<br><center><b><a href='".BASEDIR."messages.php' class='side2'>".sprintf('PM : %u ' , $msg_count)."</a></b></center>\n";
}
tablebreak();

} else {

opensidel();

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

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

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

Slapta&#382;odis <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>

<br>

<input type='submit' name='login' value='' class='loguj'>

</form>

<br>\n";

if ($settings['enable_registration']) {

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

}

echo "<a href='".BASEDIR."lostpassword.php' class='side'>Slapta&#382;odis</a>

</div>\n";

}
closesidel();
   
   
   
   
echo "</div>
</td>

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"780\">

<tr>

<td> <img src=\"".THEME."images/grafav3_05.png\" width=\"297\" height=\"253\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
<td background=\"".THEME."images/grafav3_06.png\" width=\"234\" height=\"253\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\">
<div style=\"padding-bottom: 22px; padding-left: 20px; padding-right: 29px\">";





if ($settings['maintenance'] != "1") {
   $cond = ($userdata['user_level'] != 0 ? "'".$userdata['user_id']."'" : "'0' AND online_ip='".USER_IP."'");
   $result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user=".$cond."");
   if (dbrows($result) != 0) {
      $result = dbquery("UPDATE ".$db_prefix."online SET online_lastactive='".time()."' WHERE online_user=".$cond."");
   } else {
      $name = ($userdata['user_level'] != 0 ? $userdata['user_id'] : "0");
      $result = dbquery("INSERT INTO ".$db_prefix."online (online_user, online_ip, online_lastactive) VALUES ('$name', '".USER_IP."', '".time()."')");
   }
   $result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
   $result = dbquery(
      "SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
      LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
   );
   $guests = 0; $members = array();
   while ($data = dbarray($result)) {
      if ($data['online_user'] == "0") {
         $guests++;
      } else {
         array_push($members, array($data['user_id'], $data['user_name']));
      }
   }
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['011'].$guests."<br>\n";
   if (count($members) > 0) {
      $i = 1;
      echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['012'];
      while (list($key, $member) = each($members)) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$member[0]."' class='side'>".$member[1]."</a>";
         if ($i != count($members)) echo ", ";
         $i++;
      }
      echo "<br>\n";
   } else {
      echo $locale['013']."<br>\n";
   }
   echo "<br><img src='".THEME."images/bullet.gif' alt=''> ".$locale['014'].number_format(dbcount("(user_id)", "users", "user_status<='1'"))."<br>\n";
   if ($settings['admin_activation'] == "1") echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['015'].dbcount("(user_id)", "users", "user_status='2'")."<br>\n";
   $data = dbarray(dbquery("SELECT user_id,user_name FROM ".$db_prefix."users WHERE user_status='0' ORDER BY user_joined DESC LIMIT 0,1"));
   echo "<img src='".THEME."images/bullet.gif' alt=''> ".$locale['016']."<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a>\n";
}

echo "</div>
</td>
<td background=\"".THEME."images/grafav3_07.png\" width=\"249\" height=\"253\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\">
<div style=\"padding-bottom: 11px; padding-left: 18px; padding-right: 23px; padding-top: 27px\">";
   
$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_datestamp DESC LIMIT 0,10"
);
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>$itemsubject</a><br>\n";
}
} else {
echo "<center>".$locale['004']."</center>\n";
}
   
   
   
   
   
   
   
   
   echo "</div>
</td>


</tr></table>
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"780\">

</table>





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

echo "    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" width=\"780\">
<tr>\n";

}

function render_footer($license=false) {

global $theme_width,$settings;

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

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

</tr></table>
<table border=\"0\" align='center' cellpadding='0' cellspacing='0' ><tr>
<td background=\"".THEME."images/grafav3_21.png\" width=\"780\" height=\"207\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\">
<center>Tavo reklamos vieta !</center>

</td>
</tr></table>



<table background=\"".THEME."images/grafav3_22.png\" width=\"780\" height=\"53\"   border=\"0\" align='center' cellpadding='0' cellspacing='0' >




<tr>";
echo "<td align='center' class='footer' style=\" padding-top:10px; padding-left: 10px; padding-right: 5px border=\"0\" alt=\"\">";
      if ($license == false) {
      echo "<a href='http://php-fusion.co.uk'>Powered by</a> | <a href='http://grafa.biz'>Theme And Design</a>";
   }
   echo "</td>";

   echo "<td class='footer' align='center' style=\" padding-top:10px; padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\">".stripslashes($settings['footer'])."</td>";
   
   echo "<td class='footer'  align='center' style=\" padding-top:10px; padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\">";
   echo "</td>";
   
   echo "<td class='footer' align='right' style=\" padding-top:10px; padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\">";
   echo "<span >".$settings['counter']." </span>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
   echo "</td><td width='4%'  align='right'>";
   
   
   
   echo "</tr></table>
   
   
   
   </td></tr></table>";
   
}

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

global $settings;

echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"527\">
<tr>
   <td background=\"".THEME."images/grafav3_14.png\" width=\"527\" height=\"52\" style=\"  border=\"0\" alt=\"\" class='capmain'><b>$subject</b></td></tr><tr>
   <td background=\"".THEME."images/grafav3_16.png\" width=\"527\" style=\" padding-bottom:5px; padding-left: 15px; padding-right: 5px\">
   

   $news<br>


   </td></tr><tr>
   <td background=\"".THEME."images/grafav3_18.png\" width=\"527\" height=\"43\"  style=\" padding-top:-0px; padding-left: 33px; padding-right: 33px\"><table width=\"100%\"><tr><td >
   ".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['news_date'])."<td >".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a>" : "")."
<a href='news.php?readmore=".$info['news_id']."'>Komentarai: ".$info['news_comments'].$locale['043']."</a> | Per&#382;i&#363;r&#371;:
".$info['news_reads'].$locale['044']." razy.
<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a></td></tr>
   </table>
   </td></tr>
</table>

";
}


function render_article($subject, $article, $info) {

echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"605\">
<tr>
   <td background=\"".THEME."images/radio_orange_24.gif\" width=\"605\" height=\"53\" style=\" padding-left: 15px; padding-right: 5px border=\"0\" alt=\"\"><b>Artyku&#322;: $subject</b></td></tr><tr>
   <td background=\"".THEME."images/radio_orange_26.gif\" width=\"605\" style=\" padding-left: 15px; padding-right: 5px\">
   <b></b>

   <div style=\"padding-left: 7px; padding-right: 7px\">".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>


   
   
   
   </td></tr><tr>
   <td background=\"".THEME."images/radio_orange_26.gif\" width=\"605\" style=\" padding-left: 15px; padding-right: 5px\"><table width='98%' cellpadding='0' cellspacing='0'>
<tr>
<td><img src='".THEME."images/bullet.gif'>
".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a>
".$locale['041'].showdate("longdate", $info['article_date'])."
</td>
<td align='right'>
<a href='readarticle.php?article_id=".$info['article_id']."'>".$info['article_comments'].$locale['043']."</a> &#183;
".$info['article_reads'].$locale['044']."
<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>
</td>
</tr>
</table>
   </td></tr><tr>
   <td><img src=\"".THEME."images/radio_orange_29.gif\" width=\"605\" height=\"11\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>


\n";

}

function opentable($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"527\">
<tr>
    <td background=\"".THEME."images/grafav3_14.png\" width=\"527\" height=\"52\" border=\"0\" alt=\"\" class='capmain'><b>$title<b></td></tr><tr>
    <td background=\"".THEME."images/grafav3_16.png\" width=\"527\"  style=\" padding-bottom:10px; padding-left: 15px; padding-right: 15px\">";


}

function closetable() {

echo "
   
   
    </td></tr><tr>
    <td><img src=\"".THEME."images/grafav3_18.png\" width=\"527\" height=\"43\" border=\"0\" alt=\"[Rozmiar: 846 bajtów]\"></td>
</tr>
</table>\n";

}

function openside($title) {
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"253\">
<tr>
    <td background=\"".THEME."images/grafav3_15.png\" width=\"253\" height=\"52\"  border=\"0\" alt=\"\" class='scapmain'><b>$title</b></td></tr>
<tr>
    <td background=\"".THEME."images/grafav3_17.png\" width=\"253\"  style=\" padding-top: 1px; padding-left: 10px; padding-right: 10px\">

   
   
\n";

}

function closeside() {

echo "
   
    </td>
</tr>
<tr>
    <td><img src=\"".THEME."images/grafav3_17.png\" width=\"253\" height=\"9\" border=\"0\" alt=\"[Rozmiar: 551 bajtów]\"></td>
</tr>
</table>\n";
tablebreak();

}



function opensidel() {



echo "<table cellpadding='0' cellspacing='0' width='100%'>

<tr>

<td>\n";

}



function closesidel() {



echo "</td>

</tr>

</table>\n";

tablebreak();



}

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

$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='sidi-top-left'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
<td class='sidi-top-main'>$title</td>
<td align='right' class='sidi-top-main'><img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'></td>
<td class='sidi-top-right'><img src='".THEME."images/blank.gif' width='5' height='21' alt='' style='display:block'></td>
</tr>
</table>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='border-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
<td class='side-body'>
<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";

}

function closesidex() {

echo "</div>
<td class='border-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>
</tr>
<tr>
<td class='border-bleft'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>
<td class='border-bright'><img src='".THEME."images/blank.gif' width='5' height='16' alt='' style='display:block'></td>
</tr>
</table>\n";
tablebreak();

}

function tablebreak() {

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

}
?>