Parašė Black psycho· 2008 Lap. 12 16:11:29
#18
Jau turiu ta panele bet biški nesuprantu ten yra 7 failai. Kam vienai panelei 7 failai? Tai dabar nesusigaudau kokiame faile yra tas kodas. Manau kad šitame bet nerandu kur:
<?php
//Panel was MODED by Wooya (mfusion.2loud.net.pl)
//to show Who? Where? is now on site
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System |
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones |
| http://www.php-fusion.co.uk/ |
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the |
| GNU General Public License. For details refer to |
| the included gpl.txt file or visit http://gnu.org |
+----------------------------------------------------+
| This is a FINAL release of stats panel created by |
| Dj_baby = babytje_ab@hotmail.com |
| Ver = 2.0.5 |
| this is a complete redesign and code of |
| stats panel v1 for v5.0 oslo maded by me |
+----------------------------------------------------*/
include_once(INFUSIONS.'stats_info_panel/log.inc.php');
if($_SERVER['REMOTE_ADDR'] == "xxx.xxx.xxx.xxx") {
$log = new log(1);
} else {
$log = new log();
}
include "config.inc.php";
$loged_users = array();
openside(LANGSTATS_070);
$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."");
$rows = dbrows($result);
if ($rows != 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()."')");
}
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_lastactive<".(time()-60)."");
$result = dbquery(
"SELECT ton.*, user_id,user_name,user_ip FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id
WHERE online_user!='0'"
);
$members = dbrows($result);
if ($members!=0) {
echo "<table width='100%'><tr><td class='side-label' width='100%'><b>".LANGSTATS_071."</b></td></tr></table>\n";
echo "<div style='word-wrap:break-word'>\n";
$result = dbquery("
SELECT * FROM ".$db_prefix."online tbl1
INNER JOIN ".$db_prefix."stats tbl2 ON tbl2.ip = tbl1.online_ip
INNER JOIN ".$db_prefix."users tbl3 ON tbl3.user_id = tbl1.online_user
WHERE tbl1.online_user!='0' AND tbl2.time>=".(time()-60).";
");
while ($data = dbarray($result)) {
$loged_users[]=$data['user_ip'];
$pos = strrpos($data['page'], ".php");
$script = substr($data['page'], 0, $pos + 4);
echo "<img src='".THEME."images/bullet.gif' border='0'> <span style='font-size:9px'><a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' class='side'>".$data['user_name']."</a> @ <a href='".BASEDIR.$data['page']."'>".trimlink(basename($script), 17)."</a></span><br />\n";
}
echo "</div>\n";
}
echo "<table width='100%'><tr><td class='side-label' width='100%'><b>".LANGSTATS_072."</b></td></tr></table>\n";
echo "<div style='word-wrap:break-word'>\n";
$result2 = dbquery("SELECT * FROM ".$db_prefix."online WHERE online_user='0';");
$rows = dbrows($result2);
if ($rows!=0) {
$result = dbquery("SELECT * FROM ".$db_prefix."stats WHERE time>=".(time()-60).";");
while ($data = dbarray($result)) {
if (!in_array($data['ip'], $loged_users)) {
$pos = strrpos($data['page'], ".php");
$script = substr($data['page'], 0, $pos + 4);
$explode = explode(".", $data['ip']);
$visitor_ip = $explode[0].".".$explode[1].".".$explode[2].".xxx";
echo "<img src='".THEME."images/bullet.gif' border='0'> <span style='font-size:9px'>".$visitor_ip."</a> @ <a href='".BASEDIR.$data['page']."'>".trimlink($script, 17)."</a></span><br />\n";
}
}
} else {
echo LANGSTATS_073;
}
echo "</div>\n";
closeside();
?>
Ir dar prisegu failus jei ką. Iš anksto žiauriai ačiū už pagalbą. ;)
Redagavo Black psycho· 2008 Lap. 12 16:11:01