Browse Source

Oops 4

master
Skyweb 2 months ago
parent
commit
84ec8b5bc1
  1. 4
      getMap.php
  2. 2
      js/scripts.js

4
getMap.php

@ -10,8 +10,8 @@
if (file_exists(__DIR__ . "/" . $fileName)){
echo $fileName;
} else {
$url = "https://www.verite.space/influence/" . $fileName;
$file_headers = @get_headers($file);
$url = "https://www.verite.space/maps/influence/" . $date . ".png";
$file_headers = @get_headers($url);
if(!$file_headers || $file_headers[0] == 'HTTP/1.1 404 Not Found') {
http_response_code(404);
die();

2
js/scripts.js

@ -223,8 +223,6 @@ map.onwheel = scrollevent;
function resizeEvent() {
lens.style.left = "0px";
lens.style.top = "0px";
result.style.left = "0px";
result.style.top = "0px";
imageZoom("map", "zoom");
}

Loading…
Cancel
Save