|
|
@ -1,6 +1,6 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
//Imeji Uploader Core Code -- Version 1.2b
|
|
|
|
//Imeji Uploader Core Code -- Version 1.2b (Migrations Phase 1)
|
|
|
|
$imejicoreversion = "imeji_v1.2b";
|
|
|
|
$imejicoreversion = "imeji_v1.2b_S_p1";
|
|
|
|
$target_dir = "public/";
|
|
|
|
$target_dir = "public/";
|
|
|
|
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
|
|
|
|
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
|
|
|
|
$target_filenameonly = basename($_FILES["fileToUpload"]["name"]);
|
|
|
|
$target_filenameonly = basename($_FILES["fileToUpload"]["name"]);
|
|
|
@ -64,7 +64,7 @@ if ($uploadOk == 0) {
|
|
|
|
$uploaderlog = "" . date('U') . ", ". date('Y-m-d H:i:s e') . ", $_SERVER[REMOTE_ADDR], $newfilename" . ", " . $imejicoreversion . ", $_SERVER[HTTP_USER_AGENT]";
|
|
|
|
$uploaderlog = "" . date('U') . ", ". date('Y-m-d H:i:s e') . ", $_SERVER[REMOTE_ADDR], $newfilename" . ", " . $imejicoreversion . ", $_SERVER[HTTP_USER_AGENT]";
|
|
|
|
//$uploaderlog = "Unix Time: " . date('U') . ", Logical Time: ". date('Y-m-d H:i:s e') . ", IP Address: $_SERVER[REMOTE_ADDR], Filename: $newfilename" . ", User Agent: $_SERVER[HTTP_USER_AGENT], Referer: $_SERVER[HTTP_REFERER]"; --simplified in v0.9e
|
|
|
|
//$uploaderlog = "Unix Time: " . date('U') . ", Logical Time: ". date('Y-m-d H:i:s e') . ", IP Address: $_SERVER[REMOTE_ADDR], Filename: $newfilename" . ", User Agent: $_SERVER[HTTP_USER_AGENT], Referer: $_SERVER[HTTP_REFERER]"; --simplified in v0.9e
|
|
|
|
file_put_contents('uploads.log', $uploaderlog . PHP_EOL, FILE_APPEND);
|
|
|
|
file_put_contents('uploads.log', $uploaderlog . PHP_EOL, FILE_APPEND);
|
|
|
|
header('Location: https://i.zxicar.us/' . $newfilename);
|
|
|
|
header('Location: https://i.yandols.xyz/' . $newfilename);
|
|
|
|
//header('Location: http://i.zxicar.us/' . $newfilename); --switched to HTTPS as of v0.9d
|
|
|
|
//header('Location: http://i.zxicar.us/' . $newfilename); --switched to HTTPS as of v0.9d
|
|
|
|
//header('Location: ../imeji/' . $newtarget); --changed as of v0.7
|
|
|
|
//header('Location: ../imeji/' . $newtarget); --changed as of v0.7
|
|
|
|
//header('Location: http://zxicar.us/imeji/'.basename( $_FILES["fileToUpload"]["name"])); --changed as of v0.2
|
|
|
|
//header('Location: http://zxicar.us/imeji/'.basename( $_FILES["fileToUpload"]["name"])); --changed as of v0.2
|
|
|
|