Enter This Site

$VARS[H_ST] ) return true; return false; } function checkIP( $id, $ip ) { global $dbh; $res = mysql_query("SELECT COUNT(*) FROM arp_hips WHERE user='$id' AND ip='$ip'", $dbh); $row = mysql_fetch_row($res); if( $row[0] ) cheat( 'mult_ip', $id ); else mysql_query("INSERT INTO arp_hips VALUES ( '$id', '$ip' )", $dbh); } function checkBannedIP( $id, $ip ) { global $dbh; $res = mysql_query("SELECT COUNT(*) FROM arp_proxy WHERE ip='$ip'", $dbh); $row = mysql_fetch_row($res); if( $row[0] ) cheat( 'banned_ip', $id ); } #malediven function cheat( $msg, $id ) { global $HTTP_X_FORWARDED_FOR, $REMOTE_ADDR, $VARS, $dbh; $cheats = array ( 'mult_ip' => 'Множественный клик - IP', 'mult_cook' => 'Множественный клик - куки', 'expr_gate' => 'Сессия устарела', 'use_proxy' => 'Используется прокси', 'no_refer' => 'Плохой рефер', 'bad_brwsr' => 'Используется программный кликер', 'no_cook' => 'нет поддержки кук', 'banned_ip' => 'запрещенный IP' ); if( $VARS[H_CLG] ) { $date = date("H:i m-d-Y"); $fd = fopen("$VARS[DDIR]/hcheat.log", "a"); fwrite( $fd, "[ $date ] [ $cheats[$msg] ] [ $id ] [ $REMOTE_ADDR ($HTTP_X_FORWARDED_FOR) ]\n" ); fclose($fd); } if( $VARS[H_CST] ) { mysql_query("UPDATE arp_hcheat SET $msg=$msg+1 WHERE user='$id'", $dbh); } $fwd = $VARS[FU]; if( $VARS[FCP] ) { $val = @mysql_result( @mysql_query("SELECT cat FROM arp_accts WHERE user='$id'"), 0 ); if( $val ) $fwd = $VARS[HU] . "/" . html_Name($val); } header("Location: http://www.rusmedserv.com/"); if( !$VARS[CRN] ) checkTime(); exit; } function html_Name( $category ) { global $VARS; $category = eregi_replace("[^[:alnum:]]", "", strtolower($category)); return "$category.$VARS[FE]"; } function checkTime() { global $VARS, $dbh; $curtime = time(); $rerank = frdline("$VARS[DDIR]/times/rerank"); $reset = frdline("$VARS[DDIR]/times/reset"); $clear = frdline("$VARS[DDIR]/times/hclear"); $inc = false; if( $curtime - $rerank >= $VARS[RR] ) { include('ar.php'); rerankList(); write_f("$VARS[DDIR]/times/rerank", $curtime); write_f("$VARS[DDIR]/times/rerank.frm", 'in.php'); $inc = true; } if( $curtime - $reset >= $VARS[RS] ) { if( !$inc ) include('ar.php'); resetList(); write_f("$VARS[DDIR]/times/reset", $curtime); write_f("$VARS[DDIR]/times/reset.frm", 'in.php'); } if( $curtime - $clear >= $VARS[H_CN] ) { mysql_query("DELETE FROM arp_hips", $dbh); write_f("$VARS[DDIR]/times/hclear", $curtime); } } function frdline($file) { $fd = @fopen($file, 'r') or error("не могу читать $file"); $line = fgets($fd, 4096); fclose($fd); chop($line); return $line; } function write_f($file, $data) { $fd = @fopen($file, 'w') or error("не могу писать $file"); flock($fd, 2); fwrite($fd, $data); fclose($fd); @chmod($file, 0666); } function error( $msg ) { ?> Непоправимая ошибка
Непоправимая ошибка
==========================
Описание  :