open(); $check_ip = $_SERVER["REMOTE_ADDR"]; $check_time = date("Y-m-d"); $check_hours = date("H"); $field_matching = array("00"=>"h0_1", "01"=>"h1_2", "02"=>"h2_3", "03"=>"h3_4", "04"=>"h4_5", "05"=>"h5_6", "06"=>"h6_7", "07"=>"h7_8", "08"=>"h8_9", "09"=>"h9_10", "10"=>"h10_11", "11"=>"h11_12", "12"=>"h12_13", "13"=>"h13_14", "14"=>"h14_15", "15"=>"h15_16", "16"=>"h16_17", "17"=>"h17_18", "18"=>"h18_19", "19"=>"h19_20", "20"=>"h20_21", "21"=>"h21_22", "22"=>"h22_23", "23"=>"h23_24"); $this_domain = "game2000.com"; $check_sq = "select * from affiliate_cnt where wdate = '${check_time}' && domain = '${this_domain}'"; $check_sr = mysql_query($check_sq); $iq = ""; if(mysql_num_rows($check_sr)){ $ds = mysql_fetch_array($check_sr); if($ds["last_ip"] != $check_ip) $iq = "update affiliate_cnt set ".$field_matching[$check_hours]." = " . $field_matching[$check_hours]."+1 where no = ".$ds["no"]; } else{ $iq = "insert into affiliate_cnt (last_ip, " . $field_matching[$check_hours] . ", wdate, domain) values('${check_ip}', 1, '${check_time}', '${this_domain}')"; } if($iq) mysql_query($iq); ?>
"Action-Games.gif", "breakout"=>"Breakout-Games.gif", "puzzle"=>"Puzzle-Games.gif", "racing"=>"Racing-Games.gif", "shooting"=>"Shooting-Games.gif", "sportnskill"=>"Sport-&Skill-Games.gif", "other"=>"othergames.gif"); foreach($title_img as $key=>$val){ $sq = "select * from game_data where c_code = '${key}' order by no desc limit 2"; $sr = mysql_query($sq); ?>
\r\n"; while($new_ds = mysql_fetch_array($new_sr)){ $new_str .= "\r\n"; } $new_str .= "\r\n"; echo $new_str; ?>
\r\n"; $new_str .= "
"; $new_str .= "\r\n"; $new_str .= "".$new_ds["title"]."
".$db_func->strcut(stripslashes($new_ds["description"]), 100); $new_str .= "

strcut(stripslashes($ds["description"]), 100)?>
 
copyRight by Game2000.com