diff --git a/Rocksolid_Light/rocksolid/files.php b/Rocksolid_Light/rocksolid/files.php index 3b438f3..84334d6 100644 --- a/Rocksolid_Light/rocksolid/files.php +++ b/Rocksolid_Light/rocksolid/files.php @@ -3,6 +3,8 @@ include "config.inc.php"; include "newsportal.php"; + $logfile=$logdir.'/files.log'; + if(isset($_COOKIE['tzo'])) { $offset=$_COOKIE['tzo']; } else { @@ -15,6 +17,8 @@ include "newsportal.php"; fclose($getfh); header('Content-type: '.$_REQUEST[contenttype]); header('Content-disposition: filename="'.$_REQUEST[showfilename].'"'); + file_put_contents($logfile, "\n".format_log_date()." Requesting: ".$_REQUEST['showfile'], FILE_APPEND); + echo $getfile; exit(0); } diff --git a/Rocksolid_Light/rocksolid/upload.php b/Rocksolid_Light/rocksolid/upload.php index 388f06f..58340a6 100644 --- a/Rocksolid_Light/rocksolid/upload.php +++ b/Rocksolid_Light/rocksolid/upload.php @@ -2,6 +2,8 @@ include "config.inc.php"; include "newsportal.php"; +$logfile=$logdir.'/files.log'; + if(isset($_POST['username'])) { $name = $_POST['username']; // Save name in cookie @@ -34,6 +36,7 @@ if(isset($_FILES)) { } $success = move_uploaded_file($_FILES[photo][tmp_name], $upload_to); if ($success) { + file_put_contents($logfile, "\n".format_log_date()." Saved: ".strtolower($_POST['username'])."/".$_FILES[photo][name], FILE_APPEND); echo 'Saved '.$_FILES[photo][name].' to your files folder'; } else { echo 'There was an error saving '.$_FILES[photo][name];