Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MapImgExists($url){
- $ch = curl_init($url);
- $file_headers = @get_headers($url);
- if($file_headers[0] == 'HTTP/1.1 404 Not Found') {
- $exists = "false";
- } else {
- $exists = "true";
- }
- return $exists;
- }
- if (isset($_POST["url"])) {
- $url = $_POST['url'];
- $real = MapImgExists($url);
- echo $real;
- }
- local function CheckMapIcon(url)
- print(url)
- http.Post( "http://127.0.0.1/nat/mapimg.php", {url = url},
- function(body, len, headers, code)
- print("Posted",url)
- end)
- http.Fetch( "http://127.0.0.1/nat/mapimg.php",
- function ( body, len, headers, code )
- print("return",body)
- end,
- function (err)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement