= $sec){ $ip[$i] = "null"; $ip[$i + 1] = "null"; } } for($i = 0;$i < sizeof($ip);$i += 2){ if($REMOTE_ADDR == $ip[$i]){ $add = "N"; break; } } if(date("j") != $num[1]){ $num[1] = date("j"); $num[2] = "0"; } if(date("n") != $num[3]){ $num[3] = date("n"); $num[4] = "0"; } if(date("Y") != $num[5]){ $num[5] = date("Y"); $num[6] = "0"; } if($add != "N"){ $str = "Update teacher Set homepage_counter = homepage_counter + 1 Where teacher_id = '" . $teacher_id . "'"; $result = QueryDatabase($str); $ip[sizeof($ip)] = $REMOTE_ADDR; $ip[sizeof($ip)] = time(); $fp = fopen($link,"w"); for($i = 0;$i < sizeof($ip);$i++){ if($ip[$i] != "null"){ $newip = $newip . $ip[$i] . $br; } } fwrite($fp,$newip); fclose($fp); } //********************************************************* ?> <? echo($homepage_title); ?> " topmargin="0" leftmargin="0">
班級網頁
班級老師:老師( )
訪站人數: 日期