0) $CData[1] = ($Num > 1)?array_fill (0, 2, 0):array ($CData[1][1], 0); if (!$CData[3][$_SERVER['REMOTE_ADDR']]) { $CData[0][1]++; $CData[1][1]++; $CData[3][$_SERVER['REMOTE_ADDR']][0] = time (); } $CData[0][0] = $CData[3][$_SERVER['REMOTE_ADDR']][1] = time (); foreach ($CData[3] as $IP => $Time) { if ((time () - $Time[0]) > 86400) unset ($CData[3][$IP]); } if ($CData[1][1] > $CData[2][0]) $CData[2] = array ($CData[1][1], time ()); $File = fopen ($CFile, 'a'); flock ($File, LOCK_EX); fseek ($File, 0); ftruncate ($File, 0); fwrite ($File, serialize ($CData)); fflush ($File); flock ($File, LOCK_UN); fclose ($File); return (int) $CData[0][2]; } ?>