<?php
// initialize syslog constants
define_syslog_variables();
/* open system log file.
* The LOG_ODELAY indicated that that logging facility
* should not be opened until an actual error occurs.
*/
openlog("PHP Error", LOG_ODELAY, LOG_USER);
if (!input_validation()) {
syslog(LOG_ALERT, "H4x0r detected at {$_SERVER['REMOTE_ADDR']} {$_SERVER['HTTP_USER_AGENT']}");
}
closelog(); // close log
?>