login != $admin1 && $data->login != $admin2) { exit; } ?>
Naam 1 | Naam 2 | IP |
Status | Door | Datum | Er is een bericht gestuurd naar $naam1 met als 2e account $naam2. | "; exit; } } $a = 0; $arr_ip = array(); $arr_login = array(); $qry = mysql_query("SELECT login,ip FROM `[users]`") or die(mysql_error()); $num = mysql_num_rows($qry) or die(mysql_error()); $max_per_page = 10; if($_GET['page']) { $begin = $_GET['page'] * $max_per_page; } if($begin == 0) { $begin = 1; } $end = $begin + $max_per_page; $total_count = 0; while($rsl = mysql_fetch_array($qry)) { $arr_ip[$a] = $rsl["ip"]; $arr_login[$a] = $rsl["login"]; $a = $a+1; } for($b=0; $b <= $num; $b++) { $d = $b + 1; for($c=$d; $c < $num; $c++) { if($arr_ip["$b"] == $arr_ip["$c"]) { $total_count++; $query_ipc = mysql_query("SELECT ip_adres FROM `[admin_checked]` WHERE `ip_adres` = '".$arr_ip["$b"]."'") or die(mysql_error()); $query_ipc_count = mysql_num_rows($query_ipc); if($query_ipc_count == 0) { mysql_query("INSERT INTO `[admin_checked]` (ip_adres,status,op) VALUES('".$arr_ip["$b"]."','Not Checked','0')") or die(mysql_error()); } if($total_count >= $begin && $total_count < $end) { $query_ipc = mysql_query("SELECT * FROM `[admin_checked]` WHERE `ip_adres` = '".$arr_ip["$b"]."'") or die(mysql_error()); $ipc_array = mysql_fetch_array($query_ipc); echo "
". $arr_login["$b"] ." [P] [L] [M] | ". $arr_login["$c"] ." [P] [L] [M] | ". $arr_ip["$b"] ." |
". $ipc_array["status"] ." | ". $ipc_array["door_admin"] ." | ". $ipc_array["op"] ." |
"; $page_count = $total_count / $max_per_page; $done = 0; while($done <= $page_count) { echo ''; $done++; echo $done." "; if($done < $page_count) { echo " | "; } } echo " |