예제 #1
0
<?php

require_once "core.inc";
$action = $_POST['action'];
$language = $_POST['language'];
if ($action == 'get_default_hours') {
    HoursController::getHours("", "Default", "set_timetable");
}
if ($action == 'removeStartPin') {
    MainController::removeStartPin();
}
if ($action == 'checkout') {
    MainController::checkout();
}
if ($action == "main_add_direction") {
    MainController::main_add_direction();
}
if ($action == "main_edit_direction") {
    MainController::main_edit_direction();
}
if ($action == "getDirInfo") {
    echo json_encode(MainController::getDirInfo());
}
if ($action == 'main_editToursPopup_text') {
    MainController::editPopupInfo($language, "tours");
}
if ($action == 'editStartPin') {
    MainController::editStartPin();
}
if ($action == 'getStartPoints') {
    echo json_encode(MainController::getStartPoints());