it works !:thumbup: nice genesis !
Printable View
it works !:thumbup: nice genesis !
When I installed this mod, first I got error:
Warning: Invalid argument supplied for foreach() in ****** on line 27
Warning: Invalid argument supplied for foreach() in ****** on line 35
Then I did what you posted and now i get error:
Warning: Invalid argument supplied for foreach() in ****** on line 27
No multiaccounts found
updated one without errorsPHP Code:<?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;
}
}
if (cont($login_list)) {
foreach ($login_list as $ip => $data) {
if (count($login_list[$ip]) > 1) {
$multi_accounts[$ip] = $data; }
}
}
echo '<table>';
if (count($multi_accounts)) {
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>'; }
}
else {
die("No multiaccounts found");
}
echo '</table>';
After this fix, I get error:
Parse error: syntax error, unexpected '{' ******* on line 25
Replace line 25 with this:
PHP Code:if(count($login_list)) {
after u release 5.0.0 i will try to help you to do alliance top 10 and alliance medals
So for the last time:
(execuse me for previous fails)
updated one without errorsPHP Code:<?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;
}
}
if (count($login_list)) {
foreach ($login_list as $ip => $data) {
if (count($login_list[$ip]) > 1) {
$multi_accounts[$ip] = $data; }
}
}
echo '<table>';
if (count($multi_accounts)) {
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>'; }
}
else {
die("No multiaccounts found");
}
echo '</table>';
I guess I'm getting pretty anoying, but now i get this error:
Fatal error: Call to undefined function cont() ***** on line 25
It's not your fault. Am I really so stupid?
updated ...
Working fine now XD thanks :D