16, "session" => $_SESSION ['USER_SESSION'], "id" => $_REQUEST['id'], "order" => $_REQUEST['order'], "cost" => $_REQUEST['cost']); $params = array ("http" => array ("method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded", "content" => http_build_query ($params))); $result = file_get_contents (ROOT_SRV, false, stream_context_create ($params)); echo 'Спасибо! Оплата принята. Сейчас вы будете автоматически перенаправлены в личный кабинет.'; echo ''; exit (0); } } if (!isset ($_SESSION ["USER_ID"]) || $_SESSION ["USER_ID"] == 0) { header ("Location: /login.html"); exit (0); } if (isset ($_POST ['action'])) { if ($_POST ['action'] == 'logout') { $_SESSION = array (); session_destroy (); file_put_contents (__DIR__."/session.logout.txt", json_encode ($_SESSION)); echo json_encode (array ("result" => 1)); exit (0); } else if ($_POST ['action'] == 'create') { $params = array ("mode" => 3, "id" => $_SESSION ["USER_ID"], "email" => $_SESSION ["USER_EMAIL"], "phone" => $_SESSION ["USER_PHONE"], "entrance" => $_POST ["entrance"], "departure" => $_POST ["departure"], "type" => $_POST ["type"], "gosnum" => $_POST["gosnum"], "card" => $_POST ["card"], "session" => $_SESSION ['USER_SESSION'], "host" => "http://".$_SERVER ['HTTP_HOST']."/pc.html"); $params = array ("http" => array ("method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded", "content" => http_build_query ($params))); echo file_get_contents (ROOT_SRV, false, stream_context_create ($params)); exit (0); } else if ($_POST ['action'] == 'change') { $params = array ("mode" => 5, "old_password" => $_POST ["old_password"], "new_password" => $_POST ["new_password"], "email" => $_POST ["email"], "phone" => $_POST ["phone"], "id" => $_SESSION ["USER_ID"], "surname" => $_POST ["surname"], "name" => $_POST ["name"], "patronymic" => $_POST ["patronymic"], "session" => $_SESSION ['USER_SESSION']); $params = array ("http" => array ("method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded", "content" => http_build_query ($params))); $result = file_get_contents (ROOT_SRV, false, stream_context_create ($params)); echo $result; $contents = json_decode ($result, true); if ($contents["result"] != 0) { if (isset ($_POST['phone'])) $_SESSION['USER_PHONE'] = $_POST['phone']; if (isset ($_POST['email'])) $_SESSION['USER_EMAIL'] = $_POST['email']; if (isset ($_POST['surname'])) $_SESSION['USER_SURNAME'] = $_POST['surname']; if (isset ($_POST['name'])) $_SESSION['USER_NAME'] = $_POST['name']; if (isset ($_POST['patronymic'])) $_SESSION['USER_PATRONYMIC'] = $_POST['patronymic']; } exit (0); } else if ($_POST ['action'] == 'orders') { $params = array ("mode" => 8, "id" => $_SESSION ["USER_ID"], "session" => $_SESSION ['USER_SESSION']); $params = array ("http" => array ("method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded", "content" => http_build_query ($params))); $result = file_get_contents (ROOT_SRV, false, stream_context_create ($params)); echo $result; exit (0); } else if ($_POST ['action'] == 'payment') { $params = array ("mode" => 9, "email" => $_SESSION ["USER_EMAIL"], "session" => $_SESSION ['USER_SESSION'], "host" => "http://".$_SERVER ['HTTP_HOST']."/pc.html", "ammount" => $_POST ['ammount'], "order" => $_POST ['order']); $params = array ("http" => array ("method" => "POST", "header" => "Content-type: application/x-www-form-urlencoded", "content" => http_build_query ($params))); $result = file_get_contents (ROOT_SRV, false, stream_context_create ($params)); echo $result; exit (0); } else { echo json_encode (array ("result" => 0, "message" => "Неизвестная команда")); exit (0); } } ?> Личный кабинет
Выйти из личного кабинета
8 800 700 91 51
Парковка в Домодедово
8 800 700 91 51
Парковка в Домодедово
на 700 машиномест

Новая бронь




Изменить данные

Дата и время въезда/выезда
Общая стоимость, руб.