php-mpos/public/include/pages/api.inc.php
2013-05-28 10:55:29 +02:00

13 lines
237 B
PHP

<?php
// Make sure we are called from index.php
if (!defined('SECURITY'))
die('Hacking attempt');
// Check for valid API key
$user->checkApiKey($_REQUEST['api_key']);
header('HTTP/1.1 400 Bad Request');
die('400 Bad Request');
?>