<?php
/*=======================================================================
 *
 * js_error.php
 *
 * Autor: Carsten Annacker
 *
 =======================================================================*/

include_once("../include/auth.inc.php");

$fileHandle = @fopen("../log/js_errors_" . date("Ym") . ".log", 'a');
@fwrite($fileHandle, "[" . date("Y-m-d H:i:s") . "]\n");
@fwrite($fileHandle, "  remote_addr = " . $HTTP_SERVER_VARS['REMOTE_ADDR'] . ";\n");
@fwrite($fileHandle, "  usr_id      = " . $HTTP_SESSION_VARS['usr_id'] . ";\n");
@fwrite($fileHandle, "  hq_id       = " . $HTTP_SESSION_VARS['hq_id'] . ";\n");
@fwrite($fileHandle, "  emp_id      = " . $HTTP_SESSION_VARS['emp_id'] . ";\n");
@fwrite($fileHandle, "  url         = " . $HTTP_GET_VARS['url'] . ";\n");
@fwrite($fileHandle, "  line        = " . $HTTP_GET_VARS['line'] . ";\n");
@fwrite($fileHandle, "  message     = " . $HTTP_GET_VARS['message'] . ";\n");
@fwrite($fileHandle, "  user_agent  = " . $HTTP_GET_VARS['user_agent'] . ";\n");
@fwrite($fileHandle, "  jb_id       = " . $HTTP_GET_VARS['jb_id'] . ";\n");
@fwrite($fileHandle, "  out         = " . $HTTP_GET_VARS['out'] . ";\n");
@fclose($fileHandle);

?>
