Skip to content
Snippets Groups Projects
Commit 298d5044 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Log all queries

parent 2349b7a8
Branches
No related tags found
No related merge requests found
......@@ -21,6 +21,13 @@ $extension = get_query_arg('extension');
$order_number = get_query_arg('order_number');
$order_pass = get_query_arg('order_pass');
// Log all update queries
file_put_contents(
__DIR__.'/logs/access_'.date("Y-m-d").'.log',
date("c") . ", " . $_SERVER['REMOTE_ADDR'] . ", $package/$extension, $order_number, $order_pass\n",
FILE_APPEND
);
$tmplfile = __DIR__ . '/' . $package . '/' . $extension . '.tmpl';
if (file_exists($tmplfile)) {
$updatefile = file_get_contents($tmplfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment