Przedszkolak
Postów: 52 Ostrzeżeń: 1
Data rejestracji: 17.03.2006 12:48
|
mam pewien problem i liczyłbym na pomoc chciałbym zrobić statystyki strony ktore by wyglądały tak:
WITAMY
kiziu4
jako nowego
użytkownika Portalu.
----------------------
Uzytkowników: 2
S. Administratorzy: 1
Administratorzy: 1
Użytkownicy: 0
--------------------------
Online :
KiSi online
kiziu4 00:06:41
--------------------------
Gości Online: 0
najwiecej użytkowników
było: 145 dnia 02,08,2006
Twoje IP to:
81.219.106.251
--------------------------
Najczęściej pobierane:
hardware wewe (1)
------------------------------
Ostatnio dodane:
wewe
were
--------------------------
ostatnio dodane filmiki:
(tutaj panel movies online niestety mi cos nie dziala)
--------------------------
ostatnie gry online:
(panel gry online)
--------------------------
ostatnie mp3:
panel jak w movies online tylko ze dla innego działu mp3 jeszcze niewiem jak to zrobić :( )
--------------------------
mysle nad tym ale cos mi nie idze bo them sie mniesza jak dodam z movies poanel i gry online cos chyab jest w kodzie nie tak;/
oto kod panelu statystyk ktory przerabiam
online_users_extend_panel.php
<?php
/*--------------------------------------------+
| PHP-Fusion 5.01 - 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) |
+--------------------------------------------*/
/* Created for PHP-FUSION 6.0
Mod 2005 Petter Paulsson
http://www.php-fusion.se/
Gets it´s name from panel administration. */
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (file_exists(INFUSIONS."online_users_extend_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."online_users_extend_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."online_users_extend_panel/locale/English.php";
}
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 VALUES('".$name."', '".USER_IP."', '".time()."')");
}
if (isset($_POST['login'])) {
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_user='0' AND online_ip='".USER_IP."'");
} else if (isset($logout)) {
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_ip='".USER_IP."'");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
// Get Panel Name from Database
$panel_name = dbresult(dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'online_users_extend_panel'"),0);
opensidex("$panel_name","on");
$sitename = dbresult(dbquery("SELECT sitename FROM ".$db_prefix."settings"),0);
echo "<div style='text-align:center;font-weight:bold'>".$sitename."<br />".$locale['OUE_001']."<br />\n";
$result = dbquery("SELECT user_id,user_name FROM ".$db_prefix."users ORDER BY user_joined DESC");
$total = dbrows($result);
$data = dbarray($result);
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a><br />".$locale['OUE_002']."</div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<hr>";
echo $locale['014'].$total."<br />";
echo "<br />";
//antal Superadmins
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE user_level='103'"));
echo $locale['OUE_003'].$total. "<br />\n";
//antal Admins
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE user_level='102'"));
echo $locale['OUE_004'].$total. "<br />";
//antal almindelige medlemmer
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE user_level='101'"));
echo $locale['OUE_005'].$total. "<br />";
echo "<hr>".$locale['012']."<br /><br />\n";
$result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,5");
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" class=\"\">";
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen = time() - $data['user_lastvisit'];
$iW = sprintf("%2d", floor($lastseen/604800));
$iD = sprintf("%2d", floor($lastseen/(60*60*24)));
$iH = sprintf("%02d", floor((($lastseen%604800)%86400)/3600));
$iM = sprintf("%02d", floor(((($lastseen%604800)%86400)%3600)/60));
$iS = sprintf("%02d", floor((((($lastseen%604800)%86400)%3600)%60)));
if ($lastseen < 60) {
$lastseen="<nobr><img src='".IMAGES."online.gif'></nobr>";
} elseif ($lastseen < 360) {
$lastseen="<nobr><img src='".IMAGES."offline.gif'></nobr>";
} elseif ($iW > 0) {
if ($iW == 1) $Text= $locale['OUE_020'];
else $Text= $locale['OUE_021'];
$lastseen="<nobr>$iW $Text</nobr>";
}elseif($iD > 0){
if ($iD == 1) $Text= $locale['OUE_022'];
else $Text= $locale['OUE_023'];
$lastseen="<nobr>$iD $Text</nobr>";
} else {
$lastseen="$iH:$iM:$iS";
}
echo "<tr><td class=\"small\" align=\"left\"><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>";
echo $data['user_name']."</a></td><td class=\"small2\" align=\"right\">".$lastseen."</td></tr>";
}
}
echo "</table>";
echo "<hr>";
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo $locale['011'].dbrows($result)."<br />\n";
echo "<hr>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo $locale['OUE_006'].$userip."<br />";$photocount = dbquery("SELECT count(photo_id) FROM ".$db_prefix."photos");
$albumcount = dbquery("SELECT count(album_id) FROM ".$db_prefix."photo_albums");
$usercount = dbquery("SELECT count(user_id) FROM ".$db_prefix."users");
$shoutcount = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$fkategoriecount = dbquery("SELECT count(forum_id) FROM ".$db_prefix."forums");
$fthemencount = dbquery("SELECT count(thread_id) FROM ".$db_prefix."threads");
$fbeiträgecount = dbquery("SELECT count(post_id) FROM ".$db_prefix."posts");
$linkkategoriecount = dbquery("SELECT count(weblink_cat_id) FROM ".$db_prefix."weblink_cats");
$linkcount = dbquery("SELECT count(weblink_id) FROM ".$db_prefix."weblinks");
$articlecount = dbquery("SELECT count(article_id) FROM ".$db_prefix."articles");
$newscount = dbquery("SELECT count(news_id) FROM ".$db_prefix."news");
$result = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments");
$online_user = dbquery("SELECT count(online_user) FROM ".$db_prefix."online");
$downloadcount = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<hr>";
$limit = 10;
echo '<b>Najczę¶ciej pobierane:</b><br>';
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT $limit");
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt="hardware"> <a href=\'';
echo($row['download_url']);
echo '\'>';
echo($row['download_title']);
echo ' (';
echo($row['download_count']);
echo ')</a>';
echo '<br>';
}
echo '<hr>';
echo " <b> Ostatnio dodane: </b> " ;
if (file_exists(INFUSIONS."latest_downloads_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."latest_downloads_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."latest_downloads_panel/locale/English.php";
}
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
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'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
closeside();
}
?>
oto kod theme.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: Lorkan Themes - Shedrock © 2005 |
| 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 = "#F4F6F9";
$theme_width = "100%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$settings,$userdata;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height='30'>";
echo "<tr><td width='26' height='1'><img src='".THEME."images/left_head.gif' width='24' height='97'></td>";
echo "<td align='left' background='".THEME."images/logo_bg.gif' height='1' width='564'>";
echo "<a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/logo.jpg' title='".$settings[sitename]."' height='85' width='450'></a></td>";
echo "<td align='right' background='".THEME."images/logo_bg.gif' height='1' width='100%'>";
echo "</td>";
echo "<td width='27' height='1'><img src='".THEME."images/right_head.gif' width='24' height='97'></td></tr></table>";
echo "<table width='100%' height='22' border='0' cellpadding='0' cellspacing='0'>";
echo "<tr><td width='24' height='27' background='".THEME."images/01.gif' bgcolor='#F4F6F9'></td>";
echo "<td class='base2' width='200' align='left' bgcolor='#F4F6F9'>";
echo "".ucwords(showdate($settings['subheaderdate'], time()))."</td>";
$result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
if (dbrows($result) != 0) {
echo "<td nowrap align='center' class='base' bgcolor='#F4F6F9'>";
$i = 0;
while($data = dbarray($result)) {
if (checkgroup($data['link_visibility'])) {
if ($data['link_url']!="---") {
if ($i != 0) { echo " <img border='0' src='".THEME."images/divider.gif' width='6' height='5'>\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='white'>".$data['link_name']."</a>";
} else {
echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
}
$i++;
}
}
}
echo ($i == 0 ? " " : "")."</td>\n";
echo "<td class='base2' width='200' bgcolor='#F4F6F9'><div align='right'>";
echo "<script>
var today = new Date()
var hour = today.getHours()
if (hour > 17) {document.write('Witamy w portalu')}
if (hour >= 6 && hour <= 11) {document.write('Witamy w portalu')}
if (hour >= 12 && hour <= 17) {document.write('Witamy w portalu')}
if (hour >= 0 && hour <6) {document.write('Witamy w portalu')}
</script>";
echo " [<font class='greeting'>".(iMEMBER ? $userdata['user_name'] : "Gościa")."</font>]</td>";
echo "<td width='24' height='27' background='".THEME."images/02.gif' bgcolor='#F4F6F9'></td>";
echo "</tr></table></div>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='15' background='".THEME."images/side_left.gif'><img src='images/spacer.gif' width='15' height='1'></td>";
echo "<td align='center' valign='top' bgcolor='#F4F6F9'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "</td></tr></table>";
echo "<td valign='top' width='100%' bgcolor='#F4F6F9'>";
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
}
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<hr><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='center' width='100%'><font class='footer'>".stripslashes($settings['footer'])."</font>";
echo "<font class='greeting'><b>".$settings['counter']." </b></font><font class='footer'>".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."</font>\n");
echo "</td></tr></table>";
echo "<td width='16' background='".THEME."images/side_right.gif'><img src='images/spacer.gif' width='16' height='1'>";
echo "</td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='35'><a href='#top'><IMG SRC='".THEME."images/left_foot.gif' WIDTH=35 HEIGHT=25 title='Scroll up'></a></td>";
echo "<td style='padding-bottom:4px;' background='".THEME."images/main_foot.gif'>";
echo "<div align='center'>";
if ($license == false) {
echo "<font class='footer'>Powered by <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a> v".$settings['version']." © 2003-2005";
}
echo " | Blue Ice by: <a target='_blank' href='http://phpfusion.org'><img title='PHP-Fusion Themes' src='".THEME."images/fthemes.gif' style='vertical-align:top;'></a>";
echo "</td></div></font>";
echo "<td width='35'><a href='#top'><IMG border='0' SRC='".THEME."images/right_foot.gif' WIDTH=35 HEIGHT=25 title='Scroll up'></a>";
echo "</td></tr></table></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table style='WIDTH: 100%; border='0' cellSpacing='0' cellPadding='1'>";
echo "<tr><td vAlign='top' width='100%' height='5'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' bgColor='#ffffff' border='0'>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'>";
echo "<img src='".THEME."images/t_tl.jpg' width='10' height='10'></td>";
echo "<td align='right' background='".THEME."images/t_tm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_tr.jpg' width='141' height='10'></td></tr>";
echo "<tr vAlign='top' align='left'><td background='".THEME."images/t_ml.jpg'>";
echo "<img src='".THEME."images/t_ml.jpg' width='10' height='1'></td>";
echo "<td vAlign='top' align='left' width='100%' background='".THEME."images/t_bg.jpg'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td><div align='left'><font class='storytitle'>$subject</font>";
echo "</td></tr></table></td></div>";
echo "<td background='".THEME."images/t_mr.jpg' height='1'>";
echo "<img src='".THEME."images/t_mr.jpg' width='10' height='1'></td></tr>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'><img src='".THEME."images/t_bl.jpg' width='10' height='10'></td>";
echo "<td vAlign='bottom' align='right' background='".THEME."images/t_bm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_br.jpg' width='10' height='10'>";
echo "</td></tr></table></td></tr></table>\n";
echo "<img border='0' src='".THEME."images/pixel.gif' height='5'>";
echo "<div align='center'>";
echo "<table style='WIDTH: 100%; border-collapse:collapse' cellSpacing='0' cellPadding='1'>";
echo "<tr><td vAlign='top' width='100%' height='5'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' bgColor='#ffffff' border='0'>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'>";
echo "<img src='".THEME."images/t_tl.jpg' width='10' height='10'></td>";
echo "<td align='right' background='".THEME."images/t_tm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_tr.jpg' width='141' height='10'></td></tr>";
echo "<tr vAlign='top' align='left'><td background='".THEME."images/t_ml.jpg'>";
echo "<img src='".THEME."images/t_ml.jpg' width='10' height='1'></td>";
echo "<td vAlign='top' align='left' width='100%' background='".THEME."images/t_bg.jpg'>";
echo "<table cellSpacing='0' cellPadding='4' border='0'><tr>";
echo "<td class='main-body' valign='top' width='910' colspan='2'>$news</td></tr>";
echo "<tr><td colspan='2' valign='top' width='910'>\n";
echo "<img border='0' src='".THEME."images/pixel.gif' height='1'>";
echo "</td></tr>";
echo "<tr><td class='infobar' colspan='2' valign='top' width='910'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['news_date'])."</td></tr>";
echo "<tr><td valign='top' width='76'><div style='margin-top: 0; margin-bottom: 0'>";
echo "<a href='#top'><img border='0' src='".THEME."images/scroll_up.gif' vspace='2' title='Scroll Up'></a></div>";
echo "<div style='margin-top: 0; margin-bottom: 0'><a href='javascript:self.scrollTo(0,50000);'>";
echo "<img border='0' src='".THEME."images/scroll_down.gif' title='Scroll Down'></a></td></div>";
echo "<td class='infobase' width='834'>";
echo "<div align='right'>".($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></div>";
echo "<td background='".THEME."images/t_mr.jpg' height='1'>";
echo "<img src='".THEME."images/t_mr.jpg' width='10' height='1'></td></tr>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'>";
echo "<img src='".THEME."images/t_bl.jpg' width='10' height='10'></td>";
echo "<td vAlign='bottom' align='right' background='".THEME."images/t_bm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_br.jpg' width='10' height='10'>";
echo "</td></tr></table></td></tr></table></center>";
tablebreak();
}
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_article($subject, $article, $info) {
global $locale;
echo "<table style='WIDTH: 100%; border='0' cellSpacing='0' cellPadding='1'>";
echo "<tr><td vAlign='top' width='100%' height='5'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' bgColor='#ffffff' border='0'>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'>";
echo "<img src='".THEME."images/t_tl.jpg' width='10' height='10'></td>";
echo "<td align='right' background='".THEME."images/t_tm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_tr.jpg' width='141' height='10'></td></tr>";
echo "<tr vAlign='top' align='left'><td background='".THEME."images/t_ml.jpg'>";
echo "<img src='".THEME."images/t_ml.jpg' width='10' height='1'></td>";
echo "<td vAlign='top' align='left' width='100%' background='".THEME."images/t_bg.jpg'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td><div align='left'><font class='storytitle'>$subject</font>";
echo "</td></tr></table></td></div>";
echo "<td background='".THEME."images/t_mr.jpg' height='1'>";
echo "<img src='".THEME."images/t_mr.jpg' width='10' height='1'></td></tr>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'><img src='".THEME."images/t_bl.jpg' width='10' height='10'></td>";
echo "<td vAlign='bottom' align='right' background='".THEME."images/t_bm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_br.jpg' width='10' height='10'>";
echo "</td></tr></table></td></tr></table>\n";
echo "<img border='0' src='".THEME."images/pixel.gif' height='5'>";
echo "<div align='center'>";
echo "<table style='WIDTH: 100%; border-collapse:collapse' cellSpacing='0' cellPadding='1'>";
echo "<tr><td vAlign='top' width='100%' height='5'>";
echo "<table cellSpacing='0' cellPadding='0' width='100%' bgColor='#ffffff' border='0'>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'>";
echo "<img src='".THEME."images/t_tl.jpg' width='10' height='10'></td>";
echo "<td align='right' background='".THEME."images/t_tm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_tr.jpg' width='141' height='10'></td></tr>";
echo "<tr vAlign='top' align='left'><td background='".THEME."images/t_ml.jpg'>";
echo "<img src='".THEME."images/t_ml.jpg' width='10' height='1'></td>";
echo "<td vAlign='top' align='left' width='100%' background='".THEME."images/t_bg.jpg'>";
echo "<table cellSpacing='0' cellPadding='4' border='0'><tr>";
echo "<td class='main-body' valign='top' width='910' colspan='2'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr>";
echo "<tr><td colspan='2' valign='top' width='910'>\n";
echo "<img border='0' src='".THEME."images/pixel.gif' height='1'>";
echo "</td></tr>";
echo "<tr><td class='infobar' colspan='2' valign='top' width='910'>".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td></tr>";
echo "<td class='infobase' width='834'>";
echo "<div align='right'>";
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></div>";
echo "<td background='".THEME."images/t_mr.jpg' height='1'>";
echo "<img src='".THEME."images/t_mr.jpg' width='10' height='1'></td></tr>";
echo "<tr vAlign='top' align='left'><td width='10' height='10'>";
echo "<img src='".THEME."images/t_bl.jpg' width='10' height='10'></td>";
echo "<td vAlign='bottom' align='right' background='".THEME."images/t_bm.jpg' colSpan='2'>";
echo "<img src='".THEME."images/t_br.jpg' width='10' height='10'>";
echo "</td></tr></table></td></tr></table></center>";
tablebreak();
}
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>";tablebreak();
}
function render_premier($subject, $article, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<tr>
<td class='side-caption'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td>
<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='infobar'><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['premier_date'])."
</td>
<td align='right' class='infobar'>\n";
if ($info['premier_allow_comments']) echo $info['premier_comments'].$locale['043']." ·\n";
echo $info['premier_reads'].$locale['044']."
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
tablebreak();
}
function opentable($title) {
echo "<table width='100%' border='0' cellspacing='0' cellpadding='1' height='1'>";
echo "<tr><td height='1'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' height='30'>";
echo "<tr><td width='12' height='24' background='".THEME."images/pan_left_top.gif'></td>";
echo "<td height='24' background='".THEME."images/pan_main_top.gif'>";
echo "<div align='left'><div style='margin-top: -3'><font class='block-title'>";
echo "<img border='0' src='".THEME."images/arrow.gif' width='9' height='9'>$title</div></td>";
echo "<td width='12' height='24' background='".THEME."images/pan_right_top.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
echo "<td width='12' background='".THEME."images/pan_left_side.gif'></td>";
echo "<td class='side-body'>";
}
function closetable() {
echo "</td>";
echo "<td width='12' background='".THEME."images/pan_right_side.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height='1'>";
echo "<tr><td width='12' height='1'>";
echo "<img border='0' src='".THEME."images/pan_left_bot.gif' width='12' height='18'></td>";
echo "<td height='1' background='".THEME."images/pan_main_bot.gif'> </td>";
echo "<td width='12' height='1'>";
echo "<img border='0' src='".THEME."images/pan_right_bot.gif' width='12' height='18'></td>";
echo "</tr></table></td></tr></table>";
}
function openside($title) {
echo "<img border='0' src='".THEME."images/pixel.gif' height='8'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='2' height='1'>";
echo "<tr><td height='1'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' height='30'>";
echo "<tr><td width='12' height='24' background='".THEME."images/pan_left_top.gif'></td>";
echo "<td height='24' background='".THEME."images/pan_main_top.gif'>";
echo "<div align='left'><div style='margin-top: -3'><font class='block-title'>";
echo "<img border='0' src='".THEME."images/arrow.gif' width='9' height='9'>$title</div></td>";
echo "<td width='12' height='24' background='".THEME."images/pan_right_top.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td width='12' background='".THEME."images/pan_left_side.gif'></td>";
echo "<td class='side-body'>";
}
function closeside() {
echo "</td>";
echo "<td width='12' background='".THEME."images/pan_right_side.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height='1'>";
echo "<tr><td width='12' height='1'>";
echo "<img border='0' src='".THEME."images/pan_left_bot.gif' width='12' height='18'></td>";
echo "<td height='1' background='".THEME."images/pan_main_bot.gif'> </td>";
echo "<td width='12' height='1'><img border='0' src='".THEME."images/pan_right_bot.gif' width='12' height='18'>";
echo "</td></tr></table></td></tr></table>";
}
function opensidex($title,$open="on") {
$box_img = ($open=="on" ? "off" : "on");
echo "<img border='0' src='".THEME."images/pixel.gif' height='8'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='2' height='1'>";
echo "<tr><td height='1'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' height='30'>";
echo "<tr><td width='12' height='24' background='".THEME."images/pan_left_top.gif'></td>";
echo "<td height='24' background='".THEME."images/pan_main_top.gif'>";
echo "<div align='left'><div style='margin-top: -3'><font class='block-title'>";
echo "<img onclick=\"javascript:flipBox('$title')\" name='b_$title' alt='$box_img' border='0' src='".THEME."images/panel_$box_img.gif'> $title</div></td>";
echo "<td width='12' height='24' background='".THEME."images/pan_right_top.gif'></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td width='12' background='".THEME."images/pan_left_side.gif'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$title'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</td>";
echo "<td width='12' background='".THEME."images/pan_right_side.gif'>";
echo "</td></tr></table></td></tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0' height='1'>";
echo "<tr><td width='12' height='1'>";
echo "<img border='0' src='".THEME."images/pan_left_bot.gif' width='12' height='18'></td>";
echo "<td height='1' background='".THEME."images/pan_main_bot.gif'> </td>";
echo "<td width='12' height='1'><img border='0' src='".THEME."images/pan_right_bot.gif' width='12' height='18'>";
echo "</td></tr></table></td></tr></table>";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'>";
echo "<tr><td height='8'></td></tr></table>\n";
}
?>
Edytowane przez Pieka dnia 22.08.2007 20:22:47
poczatkujący w php
|
Bywalec
Postów: 915 Pomógł: 41
Data rejestracji: 12.03.2006 07:28
|
w porozumieniu przez gg pomoglem tej osobie(nie trzeba nic zmieniac w theme.php tylko w samym panelu) a kod wyglada tak <?php
/*--------------------------------------------+
| PHP-Fusion 5.01 - 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) |
+--------------------------------------------*/
/* Created for PHP-FUSION 6.0
Mod 2005 Petter Paulsson
http://www.php-fusion.se/
Gets it´s name from panel administration. */
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
if (file_exists(INFUSIONS."online_users_extend_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."online_users_extend_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."online_users_extend_panel/locale/English.php";
}
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 VALUES('".$name."', '".USER_IP."', '".time()."')");
}
if (isset($_POST['login'])) {
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_user='0' AND online_ip='".USER_IP."'");
} else if (isset($logout)) {
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_ip='".USER_IP."'");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
// Get Panel Name from Database
$panel_name = dbresult(dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'online_users_extend_panel'"),0);
opensidex("$panel_name","on");
$sitename = dbresult(dbquery("SELECT sitename FROM ".$db_prefix."settings"),0);
echo "<div style='text-align:center;font-weight:bold'>".$sitename."<br />".$locale['OUE_001']."<br />\n";
$result = dbquery("SELECT user_id,user_name FROM ".$db_prefix."users ORDER BY user_joined DESC");
$total = dbrows($result);
$data = dbarray($result);
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a><br />".$locale['OUE_002']."</div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo "<hr>";
echo $locale['014'].$total."<br />";
echo "<br />";
//antal Superadmins
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE user_level='103'"));
echo $locale['OUE_003'].$total. "<br />\n";
//antal Admins
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE user_level='102'"));
echo $locale['OUE_004'].$total. "<br />";
//antal almindelige medlemmer
$total = dbrows(dbquery("SELECT user_id, user_level FROM ".$db_prefix."users WHERE user_level='101'"));
echo $locale['OUE_005'].$total. "<br />";
echo "<hr>".$locale['012']."<br /><br />\n";
$result=dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_lastvisit DESC LIMIT 0,5");
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" class=\"\">";
if(dbrows($result)!=0){
while($data=dbarray($result)){
$lastseen = time() - $data['user_lastvisit'];
$iW = sprintf("%2d", floor($lastseen/604800));
$iD = sprintf("%2d", floor($lastseen/(60*60*24)));
$iH = sprintf("%02d", floor((($lastseen%604800)%86400)/3600));
$iM = sprintf("%02d", floor(((($lastseen%604800)%86400)%3600)/60));
$iS = sprintf("%02d", floor((((($lastseen%604800)%86400)%3600)%60)));
if ($lastseen < 60) {
$lastseen="<nobr><img src='".IMAGES."online.gif'></nobr>";
} elseif ($lastseen < 360) {
$lastseen="<nobr><img src='".IMAGES."offline.gif'></nobr>";
} elseif ($iW > 0) {
if ($iW == 1) $Text= $locale['OUE_020'];
else $Text= $locale['OUE_021'];
$lastseen="<nobr>$iW $Text</nobr>";
}elseif($iD > 0){
if ($iD == 1) $Text= $locale['OUE_022'];
else $Text= $locale['OUE_023'];
$lastseen="<nobr>$iD $Text</nobr>";
} else {
$lastseen="$iH:$iM:$iS";
}
echo "<tr><td class=\"small\" align=\"left\"><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."'>";
echo $data['user_name']."</a></td><td class=\"small2\" align=\"right\">".$lastseen."</td></tr>";
}
}
echo "</table>";
echo "<hr>";
$result = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0'");
echo $locale['011'].dbrows($result)."<br />\n";
echo "<hr>";
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo $locale['OUE_006'].$userip."<br />";$photocount = dbquery("SELECT count(photo_id) FROM ".$db_prefix."photos");
$albumcount = dbquery("SELECT count(album_id) FROM ".$db_prefix."photo_albums");
$usercount = dbquery("SELECT count(user_id) FROM ".$db_prefix."users");
$shoutcount = dbquery("SELECT count(shout_id) FROM ".$db_prefix."shoutbox");
$fkategoriecount = dbquery("SELECT count(forum_id) FROM ".$db_prefix."forums");
$fthemencount = dbquery("SELECT count(thread_id) FROM ".$db_prefix."threads");
$fbeiträgecount = dbquery("SELECT count(post_id) FROM ".$db_prefix."posts");
$linkkategoriecount = dbquery("SELECT count(weblink_cat_id) FROM ".$db_prefix."weblink_cats");
$linkcount = dbquery("SELECT count(weblink_id) FROM ".$db_prefix."weblinks");
$articlecount = dbquery("SELECT count(article_id) FROM ".$db_prefix."articles");
$newscount = dbquery("SELECT count(news_id) FROM ".$db_prefix."news");
$result = dbquery("SELECT count(comment_id) FROM ".$db_prefix."comments");
$online_user = dbquery("SELECT count(online_user) FROM ".$db_prefix."online");
$downloadcount = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
$userip = $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($userip);
echo "<hr>";
$limit = 10;
echo '<b>Najczę¶ciej pobierane:</b><br>';
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT $limit");
while ($row = mysql_fetch_array($result))
{
echo '<img src="'.THEME.'images/bullet.gif" alt="hardware"> <a href=\'';
echo($row['download_url']);
echo '\'>';
echo($row['download_title']);
echo ' (';
echo($row['download_count']);
echo ')</a>';
echo '<br>';
}
echo '<hr>';
echo " <b> Ostatnio dodane: </b> " ;
if (file_exists(INFUSIONS."latest_downloads_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."latest_downloads_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."latest_downloads_panel/locale/English.php";
}
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,5");
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'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
[b]echo"<hr>";
echo"<b>Najnowsze media:</b> <br><br>";
$tickerquery = dbquery("SELECT tn.*, tu.user_id,user_name ,COUNT(comment_item_id) AS movie_comments
FROM ".$db_prefix."movie tn
LEFT JOIN ".$db_prefix."users tu ON tn.movie_name=tu.user_id
LEFT JOIN ".$db_prefix."comments ON movie_id=comment_item_id AND comment_type='K'
GROUP BY movie_id
ORDER BY movie_datestamp DESC LIMIT 0,5");
while($data = dbarray($tickerquery)) {
$ticker_content .= "<a href=\"".BASEDIR."movies.php?movie_id=".$data['movie_id']."\">".$data['movie_subject']."</a> | Ogl±dano: <b>".$data['movie_reads']."</b> razy<hr>";
if($ticker_author+$ticker_date+$ticker_comments+$ticker_reads != "0" ) {
}
$ticker_content .= " ";
}
$ticker_content .= "</marquee>";
echo $ticker_content;
echo"<b>Najnowsze gry online:</b> <br><br>";
//settings
//0 = no, 1= yes
//show author?
$ticcker_author = "0";
//show date?
$ticcker_date = "0";
//show commentcount?
$ticcker_comments = "0";
//show readcounts?
$ticcker_reads = "0";
//the higher the value the slower, default is 100
$ticcker_speed = "100";
//ticker width? (use either % or px values)
$ticcker_width = "100%";
$ticckerquery = dbquery("SELECT tn.*, tu.user_id,user_name ,COUNT(comment_item_id) AS game_comments
FROM ".$db_prefix."game tn
LEFT JOIN ".$db_prefix."users tu ON tn.game_name=tu.user_id
LEFT JOIN ".$db_prefix."comments ON game_id=comment_item_id AND comment_type='K'
GROUP BY game_id
ORDER BY game_datestamp DESC LIMIT 0,10");
$ticcker_content = "<marquee Behavior='scroll' Direction='left' ScrollDelay='".$ticcker_speed."' align='right' width='".$ticcker_width."' onmouseover='this.stop()' onmouseout='this.start()'>";
while($data = dbarray($ticckerquery)) {
$ticcker_content .= "<span style='font-weight:bold;'><a href=\"".BASEDIR."games.php?game_id=".$data['game_id']."\"><img src='".BASEDIR."images/flashe/".$data['game_subject'].".gif' style='border: 1px solid #000; width: 70px; height: 59px; alt='".$data['game_subject']."' border='0'></a></span> ";
if($ticcker_author+$ticcker_date+$ticcker_comments+$ticcker_reads != "0" ) {
$ticcker_content .= "[";
if($ticcker_author == "1") {
$ticcker_content .= $locale['040'].$data[user_name];
if($ticcker_date+$ticcker_comments+$ticcker_reads != "0"){
$ticcker_content .= " | ";
}
}
if($ticcker_date == "1") {
$ticcker_content .= showdate("shortdate", $data['game_datestamp']);
if($ticcker_comments+$ticker_reads != "0"){
$ticcker_content .= " | ";
}
}
if($ticcker_comments == "1") {
$ticcker_content .= $data['game_comments'] .$locale['043'];
if($ticcker_reads != "0"){
$ticcker_content .= " | ";
}
}
if($ticcker_reads == "1") {
$ticcker_content .= $locale['413'] .$data['game_reads'] .$locale['412'];
}
$ticcker_content .= "]";
}
$ticcker_content .= " ";
}
$ticcker_content .= "</marquee>";
echo $ticcker_content;
[/b]
closeside();
}
?>
Pozdro!! |