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