View file shcms/folders/errors.php

File size: 1.64Kb
<?php
/*
=============================================
Движок: SHCMS Engine
=============================================
Название файла: Errors
=============================================
Official website: http://shcms.ru
=============================================
*/
define('SHCMS', true);
include_once'../../system/inc/system_core.php';
$errors = isset ($_GET['errors']) ? trim($_GET['errors']) : '';
$shcmsengine['title'] = errors_shcms::title($errors);

include_once'../../template/head.php';

/*
--------------------------------------------
При ошибках 400,403,404,405,408,500,503,504
--------------------------------------------
Перекинут на эту страницы
--------------------------------------------
*/
            switch ($errors):
    //Ошибка 400
    case 400: 
          $errors_list->error400();
    break;
	
    //Ошибка 403
    case 403: 
        $errors_list->error403();
    break;
	
    //Ошибка 404
    case 404: 
        $errors_list->error404();
    break;
	
    //Ошибка 405
    case 405: 
        $errors_list->error405();
    break;
	
    //Ошибка 408
    case 408: 
          $errors_list->error408();
    break;
	
    //Ошибка 500
    case 500: 
          $errors_list->error500();
    break;
	
    //Ошибка 502
    case 502: 
          $errors_list->error502();
    break;
	
    //Ошибка 504
    case 504: 
          $errors_list->error504();
    break;
	
	default:
	    $errors_list->_default();
	break;

            endswitch;



include_once'../../template/foot.php';
?>