2010-10-24 03:12:37 +04:00
|
|
|
<?php
|
|
|
|
require_once('init.php');
|
2016-06-12 00:07:06 +03:00
|
|
|
require_once('website.php');
|
2010-10-24 03:12:37 +04:00
|
|
|
|
2012-12-17 04:24:58 +04:00
|
|
|
if (CONST_NoAccessControl)
|
|
|
|
{
|
|
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
|
header("Access-Control-Allow-Methods: OPTIONS,GET");
|
2012-12-17 19:00:49 +04:00
|
|
|
if (!empty($_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']))
|
|
|
|
{
|
|
|
|
header("Access-Control-Allow-Headers: ".$_SERVER['HTTP_ACCESS_CONTROL_REQUEST_HEADERS']);
|
|
|
|
}
|
2012-12-17 04:24:58 +04:00
|
|
|
}
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') exit;
|
|
|
|
|
2010-10-24 03:12:37 +04:00
|
|
|
header('Content-type: text/html; charset=utf-8');
|
2012-12-10 05:36:33 +04:00
|
|
|
|