35 lines
483 B
PHP
Executable File
35 lines
483 B
PHP
Executable File
<?php
|
|
|
|
require_once ('vn/web/json-request.php');
|
|
|
|
class Log extends Vn\Web\JsonRequest
|
|
{
|
|
function run ()
|
|
{
|
|
try {
|
|
$this->login ();
|
|
}
|
|
catch (Exception $e) {}
|
|
|
|
$params = [
|
|
'file'
|
|
,'line'
|
|
,'message'
|
|
,'stack'
|
|
];
|
|
|
|
if (!$this->checkParams ($_REQUEST, $params))
|
|
return FALSE;
|
|
|
|
error_log (sprintf ('Browser: %s(%d): %s. Stack: %s'
|
|
,$_REQUEST['file']
|
|
,$_REQUEST['line']
|
|
,$_REQUEST['message']
|
|
,$_REQUEST['stack']
|
|
));
|
|
return TRUE;
|
|
}
|
|
}
|
|
|
|
?>
|