Please Login First!"; exit(1); } if(isset($OJ_LANG)){ require_once("../lang/$OJ_LANG.php"); } echo "Suspect List"; echo "
"; echo "

Suspect"."$MSG_LIST

"; echo "
"; require_once("../include/set_get_key.php"); $contest_id=intval($_GET['cid']); $sql="select * from (select count(distinct user_id) c,ip from solution where contest_id=? group by ip) suspect inner join (select distinct ip,user_id from solution where contest_id=? ) u on suspect.ip=u.ip and suspect.c>1 order by c desc ,u.ip "; $result=pdo_query($sql,$contest_id,$contest_id); ?> "; echo ""; echo ""; foreach($result as $row){ echo ""; echo ""; } echo "
IPusersame ip user count
".$row['ip']; echo "".$row['user_id'].""; echo "".$row['c']; echo "
"; $start=pdo_query("select start_time from contest where contest_id=?",$contest_id)[0][0]; $end=pdo_query("select end_time from contest where contest_id=?",$contest_id)[0][0]; $sql="select * from (select count(distinct ip) c,user_id from loginlog where time>=? and time<=? group by user_id) suspect inner join (select distinct user_id from solution where contest_id=? ) u on suspect.user_id=u.user_id and suspect.c>1 inner join (select distinct ip,user_id from loginlog where time>=? and time<=? ) ips on ips.user_id=u.user_id order by c desc ,u.user_id "; echo "accounts login from different ips during the contest/exam"; //echo "--$sql--"; $result=pdo_query($sql,$start,$end,$contest_id,$start,$end); ?> "; echo ""; echo ""; foreach($result as $row){ echo ""; echo ""; } echo "
IPusersame user ip count
".$row['ip']; echo "".$row['user_id'].""; echo "".$row['c']; echo "
"; require("../oj-footer.php"); ?>