예제 #1
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 15.11.2015
 * Time: 0:44
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/SupportController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/SupportModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/SupportView.php';
$model = new SupportModel();
$controller = new SupportController($model);
$view = new SupportView($model);
$controller->actionGetHeaderCart();
$view->DoctypeView('support-thanks');
$view->headerView();
$view->thanksMessage();
예제 #2
0
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 15.11.2015
 * Time: 0:28
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/SupportController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/SupportModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/SupportView.php';
$model = new SupportModel();
$controller = new SupportController($model);
$view = new SupportView($model);
$controller->actionGetData();
예제 #3
0
파일: support.php 프로젝트: naisly/WodenS
<?php

/**
 * Created by PhpStorm.
 * User: Home
 * Date: 16.11.2015
 * Time: 20:07
 */
include_once $_SERVER['DOCUMENT_ROOT'] . '/Controllers/SupportController.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/Model/SupportModel.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/View/SupportView.php';
$model = new SupportModel();
$controller = new SupportController($model);
$view = new SupportView($model);
session_start();
if (!isset($_SESSION['admin'])) {
    header('Location: /admin/login');
}
session_write_close();
if (isset($_POST['id'])) {
    $controller->actionGetSolved();
} else {
    $controller->actionGetSupportMessages();
    $view->DoctypeView('Admin');
    $view->getSupport();
}