This repository has been archived on 2024-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
ITSynOpen/server/ping-get.php
2016-03-20 19:53:26 +01:00

13 lines
358 B
PHP

<?php
header('Content-type: text/plain');
if(isset($_GET['apikey']) && ($_GET['apikey']=='apikey1' || $_GET['apikey']=='apikey2')){
$str=file_get_contents('pinged.txt');
echo $str;
file_put_contents ( 'pinged.txt' , 'false' );
}else{
$str=file_get_contents('pinged.txt');
echo "API Key Missing!\n";
echo $str;
}
?>