Change upload location to i.yandols.xyz instead of i.zxicar.us (Part of %1)

migrationdev
YandolsZX 5 years ago
parent 4b2b2a0eef
commit 7cbce5f4b6
  1. 6
      dropload.php
  2. 6
      upload.php

@ -1,6 +1,6 @@
<?php
//Imeji Uploader Core Code -- Version 2.0 (revision 49)
$imejicoreversion = "Icarus_Imeji_V2_Droploader_r49";
//Imeji Uploader Core Code -- Version 2.0 (revision 49) (Migrations Phase 1)
$imejicoreversion = "Icarus_Imeji_V2_Droploader_r49_S_p1";
$target_dir = "public/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$target_filenameonly = basename($_FILES["fileToUpload"]["name"]);
@ -95,7 +95,7 @@ if ($uploadOk == 0) {
header('Content-type: application/json');
echo json_encode([
"location" => "https://i.zxicar.us/{$newfilename}"
"location" => "https://i.yandols.xyz/{$newfilename}"
]);
return;
//header('Location: https://i.zxicar.us/' . $newfilename);

@ -1,6 +1,6 @@
<?php
//Imeji Uploader Core Code -- Version 1.2b
$imejicoreversion = "imeji_v1.2b";
//Imeji Uploader Core Code -- Version 1.2b (Migrations Phase 1)
$imejicoreversion = "imeji_v1.2b_S_p1";
$target_dir = "public/";
$target_file = $target_dir . 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 = "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);
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: ../imeji/' . $newtarget); --changed as of v0.7
//header('Location: http://zxicar.us/imeji/'.basename( $_FILES["fileToUpload"]["name"])); --changed as of v0.2

Loading…
Cancel
Save