Merge ip's - Merge ip's, limited on range - Manage ignored ip's - Manage ignored ip's - only range
Stopped ignore ip's
"; foreach($_POST as $key=>$value) { if($key !='submit') { $key = mysql_real_escape_string(str_replace("_",".",$key)); $query = "DELETE FROM uts_ignoreips WHERE ip = (INET_ATON('".$key."'))"; mysql_query($query) or die(mysql_error()); echo "Ignored ip\'s in range '.htmlentities($_POST['from']).' to '.htmlentities($_POST['to']).'
If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this
No ignored ip's found
"; } } else { echo "Ignored ip's in range: Enter range to filter on
"; echo ''; } } else { echo 'Ignored ip\'s
If you want to stop ignoring some ip\'s, because for example you accidently ignored these, check these and press the button at the lower end to confirm this
No ignored ip's found
"; } } // CASE: IGNORE SUBMITTED IP'S } else if($_POST['submit'] == "ignore") { echo "Ignored ips
"; foreach($_POST as $key=>$value) { if($key !='submit') { $key = mysql_real_escape_string(str_replace("_",".",$key)); $query = "INSERT INTO uts_ignoreips (ip) VALUES (INET_ATON('".$key."'))"; mysql_query($query) or die(mysql_error()); echo "Merge nicks with shared ip
"; $ip = mysql_real_escape_string(str_replace("_",".",substr($_POST['submit'],8))); $sql_pipcheck = "SELECT ip, COUNT(DISTINCT pid) AS pidcount FROM uts_player WHERE ip = INET_ATON('$ip') GROUP BY ip ORDER BY ip ASC"; $q_pipcheck = mysql_query($sql_pipcheck) or die(mysql_error()); while ($r_pipcheck = mysql_fetch_array($q_pipcheck)) { $playerip = $r_pipcheck[ip]; $trueplayerip = long2ip($playerip); $pidcount = $r_pipcheck[pidcount]; // If there is more than one pid associated to an IP ... IF ($pidcount > 1 ) { echo '"; echo 'Merging nicks with shared ip
"; $ip = mysql_real_escape_string(str_replace("_",".",$_POST['ip'])); $merge_to_pid = mysql_real_escape_string($_POST['merge_to']); $sql_pipcheck = "SELECT ip, COUNT(DISTINCT pid) AS pidcount FROM uts_player WHERE ip = INET_ATON('$ip') GROUP BY ip ORDER BY ip ASC"; $q_pipcheck = mysql_query($sql_pipcheck) or die(mysql_error()); while ($r_pipcheck = mysql_fetch_array($q_pipcheck)) { $playerip = $r_pipcheck[ip]; $trueplayerip = long2ip($playerip); $pidcount = $r_pipcheck[pidcount]; // If there is more than one pid associated to an IP ... IF ($pidcount > 1 ) { echo "$trueplayeripShowing all ip's in range ".htmlentities($_POST['from'])." to ".htmlentities($_POST['to'])."
If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this
No ip's found with more than one nick linked to it and which are not ignored and are in this range
Showing all ip's in range - Enter range to filter on
"; echo ''; } // CASE: SHOW ALL IP'S LINKED TO MORE THAN ONE NICK } else { echo "IP's linked with more than one nick
If you want to ignore some ip's, because for example different but unrelated nicks are associated with it, check these and press the button at the lower end to confirm this
No ip's found with more than one nick linked to it and which are not ignored