diff --git a/index.php b/index.php index 1e0f9af1c7f42247c4a6ef66a49f23e3839e3ffb..ddeba276763879c0cc92d1d17bf0a6f7e578084c 100755 --- a/index.php +++ b/index.php @@ -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); diff --git a/logs/index.html b/logs/index.html new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391