<?php
$app = array();
$app['status']=false;
//url: dilir.me/api.php?auth=abraCadabra
//Check API key for security
if(isset($_GET['auth']) && $_GET['auth']==='abraCadabra'){
$app['status']=true;
$app['name']="Dilir";
$app['mail']="dilir.khan@example.com";
$app['quote']="Try Simple Solution First";
}else{
unset($app);
$app['status']=false;
}
header('Content-Type: application/json');
echo json_encode($app);
?>
$app = array();
$app['status']=false;
//url: dilir.me/api.php?auth=abraCadabra
//Check API key for security
if(isset($_GET['auth']) && $_GET['auth']==='abraCadabra'){
$app['status']=true;
$app['name']="Dilir";
$app['mail']="dilir.khan@example.com";
$app['quote']="Try Simple Solution First";
}else{
unset($app);
$app['status']=false;
}
header('Content-Type: application/json');
echo json_encode($app);
?>