Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Rondom reklamos kodo iterpimas.

Parašė MaFetas· 2011 Bal. 22 19:04:49
#8

Bandyk turi veikti:
<?php

if (!defined("IN_FUSION")) { die("Access Denied"); }

 

define("THEME_WIDTH", "956");

define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

 

require_once INCLUDES."theme_functions_include.php";

 

function render_page($license=false) {

 

   global $settings, $main_style;

 

   //Header

   echo "<table align='center' cellspacing='0' cellpadding='0' width='1004' class='full-header'>

   <tr>

   <td align='right' class='reklama'>";
$arr = array("cs.dievas.xz.lt","nba-live.com","fssb.lt","modai.tk");
 $bnr = array
 ("<img src='http://cs.dievas.xz.lt/2/Baneris468x60.gif' style='margin:5px;' align='left'>",
 "<img src='http://img83.imageshack.us/img83/5784/nlscbannercw9.png' style='margin:5px;",
 "<img src='http://img12.imageshack.us/img12/7931/ne1j.gif' style='margin:5px;",
 "<img src='http://www.nba-live.lt/images/reklama/468x60.gif' style='margin:5px;");
 $cc = count($arr);
 $cl = $cc-1;
 $rand = rand(0,$cl);
 echo"<center><a href=\"http://$arr[$rand]\">$bnr[$rand]</a></center>";
   echo "</td>

   </tr>

   <tr>

   <td align='center' style='padding-top:10px;'>"; include THEME."login.php"; echo "</td>

   </tr></table>";

 

   echo "<table style='padding-right:4px;' align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."'><tr>

   <td><a href='".BASEDIR."index.php'><img src='".THEME."images/head_02.png' alt='' style='border:0px;' /></a></td>

   <td><a href='".BASEDIR."news.php'><img src='".THEME."images/head_03.png' alt='' style='border:0px;' /></a></td>

   <td><a href='".BASEDIR."forum/index.php'><img src='".THEME."images/head_04.png' alt='' style='border:0px;' /></a></td>

   <td><a href='".BASEDIR."viewpage.php?page_id=2'><img src='".THEME."images/head_05.png' alt='' style='border:0px;' /></a></td>

   <td><a href='".BASEDIR."downloads.php'><img src='".THEME."images/head_06.png' alt='' style='border:0px;' /></a></td>

   <td><a href='".BASEDIR."viewpage.php?page_id=3'><img src='".THEME."images/head_07.png' alt='' style='border:0px;' /></a></td>

   <td><a href='".BASEDIR."index.php'><img src='".THEME."images/head_08.png' alt='' style='border:0px;' /></a></td>

   </tr></table>";

 

   //Content

   echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='$main_style'><tr>";

   if (LEFT) { echo "<td class='side-border-left' valign='top'>"; include THEME."nauji.php"; echo "".LEFT."</td>"; }

   echo "<td class='main-bg' valign='top'><div class='slide-bg'>"; include THEME."slide/imagerotator.html"; echo "</div><br />".U_CENTER.CONTENT.L_CENTER."</td>";

   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }

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

 

   //Footer

   echo "<table align='center' cellspacing='0' cellpadding='0' width='".THEME_WIDTH."' class='footer'><tr>

   <td align='left'>

   <a href='".BASEDIR."index.php'><img src='".THEME."images/cszona.png' alt='' style='border:0px;' /></a></td>

   <td align='left'>Copyright 2011 CSzona.net

<br />Visos teises saugomos</td>

   <td align='right'>

   <a href='http://gy.ideart.info' target='_blank'><img src='".THEME."images/gy.png' alt='' style='border:0px;' /></a></td>

   </tr></table>";

 

}

 

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

 

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

   <td align='left' class='capmain'>".$subject."</td><td align='left' class='info'>Autorius: <a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> [".showdate("shortdate", $info['news_date'])."]</td><td align=right' class='placiau'><a href='news.php?readmore=".$info['news_id']."'>Placiau</a></td>

   </tr>

   </table>

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

   <tr>

   <td class='main-body'>".$news."</td>

   </tr>

   </table>";

 

}

 

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

 

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

   <td class='capmain'>".$subject."</td>

   </tr>

   <tr>

   <td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>

   </tr>

   <tr>

   <td align='center' class='news-footer'>";

   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']); echo "</td>

   </tr>

   </table>";

 

}

 

function nauji($title) {

 

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

   <td class='nauji'>".$title."</td>

   </tr>

   <tr>

   <td class='nauji-body'>";

 

}

 

function nauji_close() {

 

   echo "</td>

   </tr>

   </table>";

 

}

 

function opentable($title) {

 

   echo "<table cellspacing='0' cellpadding='0' width='496'><tr>

   <td class='capmain'>".$title."</td>

   </tr>

   <tr>

   <td class='main-body'>";

 

}

 

function closetable() {

 

   echo "</td>

   </tr>

   </table>";

 

}

 

function openside($title) {

 

global $p_data;

 

if ($p_data['panel_side'] == 1) {

 

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

<tr>

<td class='scapmain'>$title</td>

</tr>

<tr>

<td class='side-body'>\n";

 

} else {

 

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

<tr>

<td class='scapmain-right'>$title</td>

</tr>

<tr>

<td class='side-body-right'>\n";

}

}

 

function closeside() {

 

global $p_data;

 

if ($p_data['panel_side'] == 1) {

echo "</td>

</tr>

</table>\n";

tablebreak();

 

} else {

 

echo "</td>

</tr>

</table>\n";

tablebreak();

 

 

}

tablebreak();

 

}

?>