2 require_once('init.php');
3 require_once('website.php');
5 if (CONST_NoAccessControl)
7 header("Access-Control-Allow-Origin: *");
8 header("Access-Control-Allow-Methods: OPTIONS,GET");
9 header("Access-Control-Max-Age: 8640000");
10 if (!empty($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
12 header("Access-Control-Allow-Headers: ".$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);
15 if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
17 header('Content-type: text/html; charset=utf-8');