16 lines
391 B
PHP
16 lines
391 B
PHP
<?php
|
|
require_once('config.inc.php');
|
|
|
|
$apikeys = $config['ping-get'];
|
|
|
|
header('Content-type: text/plain');
|
|
if(isset($_GET['apikey']) && in_array($_GET['apikey'], $apikeys, true)) {
|
|
$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;
|
|
}
|
|
?>
|