get_one("SELECT itemid FROM {$DT_PRE}log_404 WHERE addtime>$time AND url='$url'"); if(!$r) $db->query("INSERT INTO {$DT_PRE}log_404 (url,agent,username,ip,addtime) VALUES ('$url','".addslashes($_SERVER['HTTP_USER_AGENT'])."','$_username','$DT_IP','$DT_TIME')"); } $head_title = '404 Not Found'; @header("HTTP/1.1 404 Not Found"); include template('404', 'message'); ?>