Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Koki ir kur iterpti koda ?

Parašė swz· 2010 Bir. 19 18:06:53
#1

Nu cia per ps pasiredagavau fragnet headeri ir isidejau i headeri naujausius ir pop siuntinius tik db nzn koki koda deti i theme.php ir i kuria vieta deti man ta koda.





Va theme.php, gal galite iterpti ta koda ?


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

// theme settings
$body_text = "#555555";
$body_bg = "#242424";
$theme_width = "950";
$theme_width_l = "180";
$theme_width_r = "180";

function render_header($header_content) {

global $theme_width,$userdata,$aidlink,$db_prefix;

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="verify-v1" content="fZuN4KZ7pyrQMBCNZzo2zga2KTW8kBCebGQUAQlHl6k=" />
<title>Elektroninio Sporto Naujienos, Straipsniai, Forumas, Turnyrai. aidimai: Counter-Strike, Warcraft, Quake. Servers, clans.</title>
<meta name="description" Counter-Strike , Quake 4 , Warcraft 3 ir kit aidim informacijos altinis Lietuvoje. ia taip pat rasite turnyr galerijas, aidj cfg failus, forum. Servers, server, hosting, clans, clan, play, online games, betting, commercials, competitions, demos, gaming, wh, aim, allias, espn, spawn" />
<meta name="keywords" content="Counter-Strike,Counter-Strike,aidimai,online,fifa,warsow,Quake 3,warcraft 3,gaming,cfg,video,demos,naujienos,apvalgos,straipsniai,interviu,gather,forumas,turnyrai,serveriai,komandos,esports,skelbimai,zaidimai,aidjai,pagalba,Servers, server, hosting, clans, clan, play, online games, betting, commercials, competitions, demos, gaming, wh, aim, allias" />
<meta name="Robots" content="index,follow" />
<meta name="copyright" content="." />
<meta name="owner" content="">
<meta name="revisit-after" content="1 day" />
<meta name="classification" content="Counter-Strike pamokos, skriptai, naujienos, forumas, siuntiniai, WH Allias cfg" />
<meta name="abstract" content="Counter-Strike pamokos, skriptai, naujienos, forumas, siuntiniai, WH Allias cfg" />
<link rel="shortcut icon" href="http://www.fragnet.info/images/favicon.ico" />
<link rel="stylesheet" type="text/css" href="http://fragnet.info/themes/styles.css" />
<script language="Javascript" type="text/javascript" src="http://www.fragnet.info/cs/public/js/main.js"></script>
</head>

<body>

<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' >
<tr>
<td>

<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="bg-left">&nbsp;</td>
<td class="bg-left2" width="4">&nbsp;</td>
<td width="950">

<table width="950" align="center" cellpadding="0" cellspacing="0">
<tr>
<td id="header-1" height="27">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="36"></td>
<td width="67%">&nbsp;

</td>
<td width="40" align="right">Paieka:</td>
<td width="220">
<form name='searchform' method='post' action='search.php'>
<table cellpadding="0" cellspacing="0">
<tr>
<td width="80" align="right">
<select name="search_item">
<option value="downloads">Siuntiniai</option>
<option value="news">Naujienos</option>
<option value="articles">Pamokos</option>
<option value="forum">Forumas</option>
</select>
</td>
<td width="140" align="right">
<input class="inputt" type="text" id="search" name="search" value="Iekoti" onClick="document.getElementById('search').value=''" />
</td>
</tr>
</table>
</form>
</td>
<td width="20" align="center"><img src="http://www.e-fps.lan.lt/themes/sufcs_phpfusion_v6/images/search.gif" title="Iekoti" onClick="document.getElementById('search_form').submit();" style="cursor: pointer" /></td>
<td width="20"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="header" height="0"></td>
</tr
><?

echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' >
<tr>
<td>";



echo"
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='275'>
<tr>
<td style='padding-bottom:0px; padding-top:20px; padding-left:40px;' >";
echo"</td>
</tr>
</table>
</td>
</tr>
</table>\n";


/*echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='sub-header' align='center'>".showsublinks("","white")."</td>
</tr>
</table>\n";*/

echo "<table cellpadding='0' cellspacing='0' width='100%' class='sub-header'>
<tr>
<td  align='left'><img src='".THEME."images/lt_big.gif' > <img src='".THEME."images/uk_big.gif' > <span style='color:gray'>Vartotoj&#371;:</span>
 <span style='color:gray'>".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."</span>

   &nbsp;     <span style='color:gray'>Portale nar&#353;o: </span> <span style='color:gray'>".dbcount("(*)","online","")."(".dbcount("(*)","online","online_user = '0'").")</span>

</td>
<td align='right' ><span style='color:gray'>".showsubdate()."</span>
</td>
</tr>
</table>\n";

echo "<table cellpadding='0' cellspacing='0' width='100%' class='virs-header'>
<tr>

<td valign='center'>";

if (iMEMBER) {

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

echo ($userdata['user_avatar'] ? "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' width='30' height'30' >" : "<img src='".THEME."images/noavatar.jpg' width='30' height'30' >")."";
echo"&nbsp; &nbsp; Vartotojas: <a href='".BASEDIR."edit_profile.php'><b>".$userdata['user_name']."</b></a>";
echo"&nbsp; &nbsp; Pa&#353;tas: <a href='".BASEDIR."messages.php'><b>[$msg_count/$msg_all]</b></a>";
echo"&nbsp; &nbsp; <a href='http://e-fps.lan.lt/submit.php?stype=a'><b>Prideti pamoka</b></a>";
echo"&nbsp; &nbsp; <a href='http://e-fps.lan.lt/submit.php?stype=n'><b>Prideti naujiena</b></a>";
echo"&nbsp; &nbsp; <a href='http://e-fps.lan.lt/infusions/Downloads_Submissions/submit_download.php'><b>Prideti siuntini</b></a>";


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

      echo "&nbsp; &nbsp;&nbsp; &nbsp;<a href='".ADMIN."index.php".$aidlink."'><b>Administracija</b></a>";
   }
echo"&nbsp; &nbsp; <a href='/viewpage.php?page_id=1'><b>Paremti</b></a>";


   
} else {

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

<input type='text' name='user_name' class='textbox' style='height:16px; width:100px;' value='Slapyvardis' onFocus=\"if(this.value=='Slapyvardis'){this.value='';}\" onBlur=\"if(this.value==''){this.value='Slapyvardis';}\">

<input type='password' name='user_pass' class='textbox' style='height:16px; width:100px;' value='Slaptaodis' onFocus=\"if(this.value=='Slaptaodis'){this.value='';}\" onBlur=\"if(this.value==''){this.value='Slaptaodis';}\">
&nbsp; &nbsp; <input type='submit' name='login' value='Prisijungti' class='button'>
&nbsp; &nbsp; <input type='checkbox' name='remember_me' value='y' title='Prisiminti' style='vertical-align:middle;'><span style='color:gray'>Prisiminti</span> 
[<a href='".BASEDIR."register.php' >  <b>Registracija</b>  </a>   ]  [    <a href='".BASEDIR."lostpassword.php' class='on'>Priminti slaptaod </a>]
</form> \n";


}


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

if (iMEMBER) {
//miktukai
echo "<table cellpadding='0' cellspacing='0' width='100%' class='virs-header' >
<tr>
<td width='5'>
<td width=''><a href='/index.php'><img src='".THEME."images/index.gif' border='0' onMouseOver=this.src='".THEME."images/index1.gif' onMouseOut=this.src='".THEME."images/index.gif'

width='95' height='20' alt='' border='0'></a> </td>

<td width=''><a href='/forum/'><img src='".THEME."images/forum.gif' border='0' onMouseOver=this.src='".THEME."images/forum1.gif' onMouseOut=this.src='".THEME."images/forum.gif'

width='95' height='20' alt='' border='0'></a> </td>

<td width=''><a href='/articles.php'><img src='".THEME."images/pamokos.gif' border='0' onMouseOver=this.src='".THEME."images/pamokos1.gif' onMouseOut=this.src='".THEME."images/pamokos.gif'


width='95' height='20' alt='' border='0'></a> </td>

<td width=''><a href='/downloads.php'><img src='".THEME."images/siuntiniai.gif' border='0' onMouseOver=this.src='".THEME."images/siuntiniai1.gif' onMouseOut=this.src='".THEME."images/siuntiniai.gif'

width='95' height='20' alt='' border='0'></a> </td>

<td width=''><a href='http://www.cs-servers.lan.lt' class='side'><img src='".THEME."images/serveriai.gif' border='0' onMouseOver=this.src='".THEME."images/serveriai1.gif' onMouseOut=this.src='".THEME."images/serveriai.gif'

width='95' height='20' alt='' border='0'></a> </td>

<td width=''><a href='/viewpage.php?page_id=1'><img src='".THEME."images/parama.gif' border='0' onMouseOver=this.src='".THEME."images/parama1.gif' onMouseOut=this.src='".THEME."images/parama.gif'

width='95' height='20' alt='' border='0'></a> </td>




<td align='right' ><a href='".BASEDIR."setuser.php?logout=yes'><img src='".THEME."images/logoff.gif'></a></td>
</td></tr>
</table>\n";

}


echo"

<iframe src='http://monitors.cancel.lt/info3.php?ip=zm.fragnet.info&port=27015&g=cs' scrolling='no' frameborder='0' width='317' height='130'></iframe><iframe src='http://monitors.cancel.lt/info3.php?ip=pb.fragnet.info&port=27016&g=cs' scrolling='no' frameborder='0' width='316' height='130'></iframe><iframe src='http://monitors.cancel.lt/info3.php?ip=kz.fragnet.info&port=27017&g=cs' scrolling='no' frameborder='0' width='317' height='130'></iframe>

\n";


echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>
<td class='footer' align='center'>$array[$random] </a></td>
</tr>
</table>\n";







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

}

function render_footer($license=false) {

global $theme_width,$settings;

echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='right' class='footer'> <a href='/forum'><img src='http://www.games.lt/i/vip.png' style='margin:5px' align='center'></a> &nbsp;    &nbsp;    &nbsp;<a href='/downloads.php'><img src='http://www.games.lt/i/vip.png' style='margin:5px' align='left'></a><br>\n";

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

}

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

echo "<table cellpadding='0' cellspacing='0' width='100%' class='border-news'>
<tr>
<td class='capmain-news'><img src='http://static.krepsinis.net/images/rss.gif'> $subject
</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='right' class='news-footer'>\n";


   
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>Pla&#269;iau</a>\n" : "")."";
   if ($info['news_allow_comments'])
   echo "Komantar&#371; <a href='news.php?readmore=".$info['news_id']."'>[".$info['news_comments']."]</a> ";
   echo "Skaityta <a href='news.php?readmore=".$info['news_id']."'>[".$info['news_reads']."]</a> ";



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

}

function render_article($subject, $article, $info) {
   
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<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'>\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 class='capmain'>$title</td>

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

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

}

function closetable() {

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

}

function openside($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='scapmain'>$title<td align='right' img src='http://fragnet.info/themes/fragnetas/images/klaustukas.gif' title='FragNET - Lithuanian online gaming community'></td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}

function openside1($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='apklausa'></td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside1() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}

function openside6($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='galerija'></td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside6() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}

function openside2($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='reklama'></td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside2() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}



function openside3($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='saukykla'></td>
</tr>
<tr>
<td class='side-body'>\n";

}

function openside4($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='tinkle'></td>
</tr>
<tr>
<td class='side-body'>\n";

}








function opensidepakvietimai($title) {
 
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='pakvietimai'></td>
</tr>
<tr>
<td class='side-body-pakvietimai'>\n";

}

function opensidefavoritai($title) {
 
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='favoritai'></td>
</tr>
<tr>
<td class='side-body-favoritai'>\n";

}










function openside5($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='forumo'></td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closeside5() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}

function closeside4() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}

function closeside3() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}


function opensidenavigacija($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='fragnet'></td>
</tr>
<tr>
<td class='side-body-navigacija'>\n";

}

function closesidenavigacija() {
   echo "</td></tr><tr><td>";
   echo "</td></tr></table>";
   tablebreak();
}

function opensidedes($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='fragnet2'></td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closesidedes() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}

function opensiden($title) {
   
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<tr>
<td class='cs'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";

}

function closesiden() {
   echo "</td></tr><tr><td >";
   echo "</td></tr></table>";
   tablebreak();
}



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

$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' >
<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";
}
?>



Parašė switz· 2010 Bir. 19 18:06:57
#2

is kitos temos issitrauk ir bandyk iterpt,nenorek kad kiti uz tave padarytu

Parašė swz· 2010 Bir. 19 18:06:15
#3

as bandziau istraukti is pion33r.net temos bet kai istraukiau ir kur idedu visada gaunasi virs headerio arba puo juom . Ir belekaip istampo tema kas kur vienas kitam gale kita kitam . Gal bent galetumete pasakyti kurioje vietoje iterpti ir pazimeti ta eilute ?