15 lines
291 B
PHP
15 lines
291 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY')) die('Hacking attempt');
|
|
|
|
// Check if the API is activated
|
|
$api->isActive();
|
|
|
|
// Check for valid API key
|
|
$id = $user->checkApiKey($_REQUEST['api_key']);
|
|
|
|
header('HTTP/1.1 400 Bad Request');
|
|
die('400 Bad Request');
|
|
?>
|