Loading...
Прочие движки | Кто подскажет?
$_SERVER["DOCUMENT_ROOT"]."/wiews/about.html";
NOeasyKiDD , не так не работает
Ну смотря как он должен работать... код покажи :D
php
   <?php use \Delight\Foundation\App; use \Delight\Foundation\Helper; use \Delight\Auth\WsRole;  if(!is_null($app->input()->get('ref'))) { $_SESSION['REF']=$app->input()->get('ref'); }  $_UTC = ['1'=>['language'=>'ru','offset'=>'+5:00','timezone'=>'Екатеринбург (+2:00 МСК)','daylight'=>''],  '2'=>['language'=>'ru','offset'=>'+3:00','timezone'=>'Москва','daylight'=>''],];  //echo '<pre>'; print_r($_SESSION); echo '</pre>';  //static pages $app->get('/', 'HomeController::home'); $app->get('/shipping', function ($app) { echo $app->view('shipping.html', []); }); $app->get('/kitchen', function ($app) { echo $app->view('kitchen.html', []); }); $app->get('/about', function ($app) { echo $app->view('about.html', []); }); $app->get('/wholesale', function ($app) { echo $app->view('wholesale.html', []); }); $app->get('/contact-us', function ($app) { echo $app->view('contact-us.html', []); }); $app->get('/bonuses', function ($app) { echo $app->view('bonuses.html', []); }); $app->get('/privacy', function ($app) { echo $app->view('privacy.html', []); }); $app->get('/promo', function ($app) { echo $app->view('promo.html', []); }); ///////////////  //cart $app->get('/cart/add/:id/:qty', function ($app, $id, $qty) { CartController::add($id, $qty); }); $app->get('/cart/additems/:id/:qty', function ($app, $id, $qty) { CartController::addItems($id, $qty); }); $app->get('/cart/update/:id/:qty', function ($app, $id, $qty) { CartController::update($id, $qty); }); $app->get('/cart/delete/:id', function ($app, $id) { CartController::delete($id); }); $app->get('/cart/items', 'CartController::items'); $app->get('/cart/items/total', 'CartController::itemsTotal'); ///////////////  //order $app->any([ 'POST', 'GET' ],'/checkout', 'OrderController::checkout'); ///////////////  //login auth $app->get('/login', 'ProfileController::login'); $app->post('/login', 'ProfileController::login'); $app->post('/logincode', 'ProfileController::loginCode'); ///////////////  $app->any([ 'POST', 'GET' ],'/pay/bank/response', 'PaymentController::paymentResponse'); $app->get('/profile/home/payment/failed', function ($app) { OrderController::paymentFailed(); });  //profile if($app->authPhone()->isLoggedIn()) {  $app->get('/profile/home', function ($app) { ProfileController::home('upcoming'); });  $app->get('/profile/home/templates', function ($app) { ProfileController::home('templates'); });  $app->get('/payment/success', function ($app) { ProfileController::paymentSuccess(); });   $app->get('/profile/home/payment/success', function ($app) { ProfileController::paymentSuccess(); });   $app->any([ 'POST', 'GET' ],'/pay/prepare', 'PaymentController::prepareRedirect');    $app->get('/profile/home/history', 'ProfileController::history');   $app->get('/logout', 'ProfileController::logout');  $app->get('/profile/bonuses', 'ProfileController::bonuses');   $app->get('/order/copy/:id', function ($app,$id) { OrderController::copyOrder($id,''); });  $app->get('/order/copy/:id/:schedule', function ($app,$id,$schedule) { OrderController::copyOrder($id,$schedule); });  $app->get('/order/status/:id/:status', function ($app,$id,$status) { OrderController::changeStatus($id,$status); });  $app->any([ 'POST', 'GET' ],'/profile/user/edit/:id', function ($app,$id) { ProfileController::userEdit($id); });   if($app->authPhone()->hasAnyRole(WsRole::ADMIN,WsRole::MANAGER, WsRole::WHOLESALER)) {  $app->get('/profile/users', 'ProfileController::users');  $app->any([ 'POST', 'GET' ],'/profile/user/add', 'ProfileController::userAdd');  $app->get('/profile/user/delete', 'ProfileController::userDelete');   if($app->authPhone()->hasAnyRole(WsRole::ADMIN,WsRole::MANAGER))   $app->get('/profile/user/impersonate/:id', function ($app,$id) { ProfileController::impersonate($id); });  if($app->authPhone()->hasAnyRole(WsRole::ADMIN))  $app->any([ 'POST', 'GET' ],'/profile/payments', function ($app) { ProfileController::payments(); });  } else {  die('auth failed');  } } else {  $app->redirect('/login'); } ///////////////  // return an error page for undefined pages header('HTTP/1.0 404 Not Found'); echo   
NOeasyKiDD , вот весь код, ссылки не работаю никакие
Онлайн: 6
Время:
Gen. 0.0738
(c) Bym.Guru 2010-2026