Witam to już mój drugi problem dzisiaj . Nie wiem jak wstawić kod statystyk stat24
oto ten kod <!-- (C) stat24 / Strona glowna witryny -->
<script type="text/javascript">
<!--
document.writeln('<'+'scr'+'ipt type="text/javascript" src="http://s4.hit.stat24.com/_'+(new Date()).getTime()+'/script.js?id=bVAwqwciL3CpC2tzRHnqBGYT373N1se5cSELRY3sMLT.77/l=11"></'+'scr'+'ipt>');
//-->
</script>
gdzie należy go wstawić?
mój them
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/*--------------------------------------------+
| Blue Ice Theme for PHP-Fusion v6 |
|---------------------------------------------|
| author: Skaidon |
| modded by: PHP Fusion Themes - ©2006 |
| web: http://phpfusion.org |
| email: |
|---------------------------------------------|
| Released under the terms and conditions of |
| the GNU General Public License (Version 2) |
+--------------------------------------------*/
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#ECF0F6";
$theme_width = "100%";
$theme_width_l = "165";
$theme_width_r = "165";
function render_header($header_content) {
global $theme_width,$settings;
echo "<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td class='bodyline'>
<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td class='bodyline2'>
<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td align='left' width='70%' class='header'>
$header_content
</td>
<td align='right' width='30%' class='header'>";
include(INFUSIONS."brotator/brotator.php");
echo "</tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td align='center' width='100%' class='nav_background'>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " r6;\n"; } else { echo "\n"; }
$link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
echo "<a href='".$data['link_url']."'".$link_target." class=''>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class=''>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td></tr></table>
<table width='100%' cellspacing='0' cellpadding='7' border='0' align='center'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "<table style='margin-bottom:10px;' border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' width='100%'>".stripslashes($settings['footer'])."</td>
</tr></table>
<table width='100%' cellspacing='0' cellpadding='0' border='0' align='center'>
<tr>
<td width='25%' align='left' class='nav_backgroundfc'><a href='http://php-fusion.co.uk' target='_blank'>PHP Fusion</a> v".$settings['version']." © 2003-2006</td>
<td width='50%' align='center' class='nav_backgroundfc'><b>BlueIce</b> Theme by <a target='_blank' href='http://www.skaidon.co.uk'>Skaidon</a> - Ported and Re-coded by: <a target='_blank' href='http://phpfusion-themes.com/'>PHP Fusion Themes</a></td>
<td width='25%' align='right' class='nav_backgroundfc'><span class='hits'>".$settings['counter']."</span> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo "</td></tr></table>\n";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='6'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' nowrap='nowrap'>$subject</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>$news</td>
</tr>
<tr>
<td class='catBottom2' align='center' valign='middle' height='28'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."<br>";
echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> ·\n" : "")."";
if ($info['news_allow_comments'])
echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> | ";
echo "(".$info['news_reads'].$locale['044'].") ";
echo "<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>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_article($subject, $article, $info) {
global $locale;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='6'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' nowrap='nowrap'>$subject</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>
</tr>
<tr>
<td class='catBottom2' align='center' valign='middle' height='28'>";
echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."<br>";
if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." | ";
echo "".$info['article_reads'].$locale['044']." ";
echo "<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>";
echo "</td></tr></table></td></tr></table>\n";
}
function render_movie($subject, $movie, $info) {
global $locale;
include LOCALE.LOCALESET."movies.php";
opentable($subject);
echo "<div align='center'><table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color:#;' width='100%' class='border'>";
$r = substr($movie, -3, 3);
if ($r=="wmv") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="mpg") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="avi") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' flashvars='gcode=482CD697' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/' width='400' height='350' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0'></embed><br><br>";
}elseif ($r=="swf") {
echo "<div align='center'>";
echo"<br><br><OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'codebase='http://download.macromedia.com/pub/shckwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='550' HEIGHT='400' id='grmovie' name='grmovie'>
<PARAM NAME=movie VALUE='$movie'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$movie' flashvars='gcode=482CD697' menu=false quality=high WIDTH='550' HEIGHT='400' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grmovie' name='grmovie'></embed></object><br><br>";
}elseif ($r=="mp3") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="wma") {
echo "<div align='center'>";
echo "<br><br><embed src='$movie' type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/ ' autostart='1' showcontrols='1' showstatusbar='1' showdisplay='0' autorewind='0' enablecontextmenu='0' height='70' width='300'></embed><br><br>";
}elseif ($r=="mov") {
echo "<div align='center'>";
echo "<br><br><embed type='video/quicktime' src='$movie' controller='true' target='myself' pluginspage='http://www.apple.com/quicktime/download/' loop='FALSE' autoplay='true' border='1' height='380' width='460'></embed><br><br>";
}elseif ($r=="txt") {
echo "<div align='left'><br><br>";
$buff = nl2br(file_get_contents($movie));
echo $buff."</div><br><br>";
}else{
echo "<div align='center'>";
echo "<br><br><embed src='$movie' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' height='372' width='416'><br><br>";
}
echo "</div></table></div>";
closetable();
}
function render_game($subject, $game, $info) {
global $locale;
include LOCALE.LOCALESET."games.php";
echo "<div align='center'><table cellpadding='0' cellspacing='0' style='border-collapse: collapse; background-color:#;' width='100%' class='border'>
<tr>
<td class='side-caption'>$subject</td>
</tr>
<td width='637'><span style='color: #fff; font-weight: bolder; font-size: 12px;'></span> <span style='color: #6d9501; font-size: 12px; font-weight: bolder;'></span><br><br>
<div align='center'>
<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' WIDTH='550' HEIGHT='400' id='grgame' name='grgame'>
<PARAM NAME=movie VALUE='$game'>
<param name='menu' value='false'>
<param name='quality' value='high'>
<param name='FlashVars' value='gcode=482CD697'>
<embed src='$game' flashvars='gcode=482CD697' menu=false quality=high WIDTH='550' HEIGHT='400' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' id='grgame' name='grgame'></embed>
</object>
</div><br><br>
<div align='center' style='font-size: 14px;'><a href='javascript:history.go(-1)' title='Wstecz'><img src='".IMAGES."up/powrot.gif' border='0' height='35' alt='Powrót'></a></div></td>
</tr>
<td align='right' class='infobar'>\n";
if ($info['game_allow_comments']) echo $info['game_comments'].$locale['043']." ·\n";
echo "".$locale['407']." ".$info['game_reads']." ".$locale['406']."
</td>
</table></div>";
}
function opentable($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' class='thCornerL' nowrap='nowrap'>$title</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>";
}
function closetable() {
echo "</td></tr></table></td></tr></table>";
}
function openside($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' class='thCornerL' nowrap='nowrap'>$title</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>";
}
function closeside() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td>
<table border='0' cellpadding='4' cellspacing='1' width='100%' class='forumline'>
<tr>
<th align='left' height='25' class='thCornerL' nowrap='nowrap'><img align='left'onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'>$title</th>
</tr>
<tr>
<td class='bg' width='100%' align='left'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td></tr></table></td></tr></table>";
tablebreak();
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>
Edytowane przez arturg dnia 30.12.2006 14:33:00
|