Junior Spellweaver
- Joined
- Aug 11, 2010
- Messages
- 186
- Reaction score
- 195
<?php
/**
* @package TravianX
* @author Genesis
* @copyright You may not copy this code to any other sites than RageZone.com
* @name Multiaccount searcher
*/
include ("GameEngine/Account.php");
define('PREFIX', TB_PREFIX);
if ($session->access != ADMIN)
die("This is only for admins mate :)");
$logins = mysql_query("SELECT * FROM ".PREFIX."login_log");
while($login = mysql_fetch_assoc($logins)){
if (count($login_list)){
if (!isset($login_list[$login['ip']][$login['uid']])){
$login_list[$login['ip']][$login['uid']] = $login;
}
}
else{
$login_list[$login['ip']][$login['uid']] = $login;
}
}
foreach($login_list as $ip => $data){
if (count($login_list[$ip]) > 1){
$multi_accounts[$ip] = $data;
}
}
echo '<table>';
foreach($multi_accounts as $uid => $data){
$output = "";
foreach($data as $dataB){
$data_new[] = $dataB;
}
foreach($data_new as $index => $multiaccount_data){
$userdata[] = mysql_fetch_assoc(mysql_query("SELECT * FROM ".PREFIX."users WHERE id = ".$multiaccount_data['uid']));
}
echo '<tr>
<td>
';
foreach($userdata as $u){
$output[] = '<a href="spieler.php?uid='.$u['id'].'">'.$u['username'].'</a>';
}
echo $output = implode(' and ', $output);
echo '
</td>
<td>
with IP '.$data_new[0]['ip'].'
</td>
</tr>';
}
echo '</table>';
it dont work for me
This is only for admins mate
i am admin and my access is 9 and i login but it dont work
on localhost it work good !!!!
the admin and multihunter access is 9If works on localhost than you can't say that this modification doesn't. Choose your words mate.
the admin and multihunter access is 9
support access is 8
but it said This is only for admins mate:O::mellow::*::*:
if ($session->access != ADMIN)
die("This is only for admins mate :)");
if ($session->access < ADMIN)
die("This is only for admins mate :) Admin is access level ".ADMIN." and you've got only access level ".$session->access);
Dzoki: It's not 100% same. He could change ADMIN to for example 10
dont work:*:Line 11 and 12:
change
PHP:if ($session->access != ADMIN) die("This is only for admins mate :)");
to
PHP:if ($session->access < ADMIN) die("This is only for admins mate :) Admin is access level ".ADMIN." and you've got only access level ".$session->access);
Tell us what it outputs after this change
so again:
Tell us what it outputs after this change
tnx alot master it doneOkay. It's probably fault of your version
change
include ("GameEngine/account.php");
to
include ("GameEngine/Account.php");
and try again