Example #1
0
 <?php 
die('<p style="font-size:36px;color:black;font-weight:bold;">404!</p>');
/***************************************************************************************
 * определяем title, keywords, description, h1		
 ***************************************************************************************/
// получаем метатеги для текущего контроллера
$_arr = dbh::get_title();
// инициализируем класс
$title = new title();
if ($_arr) {
    // устанавливаем свойства
    $title->title = NAME_FIRMS . ' - ' . $_arr['title'];
    $_arr['keywords'] != '' ? $title->keywords = $_arr['keywords'] : ($title->keywords = $_arr['title']);
    $_arr['description'] != '' ? $title->description = $_arr['description'] : ($title->description = $_arr['title']);
    $_arr['h1'] != '' ? $title->h1 = $_arr['h1'] : ($title->h1 = $_arr['title']);
}
/***************************************************************************************
 ***************************************************************************************/
global $_str;
// check for crack!
if (isset($_GET['page'])) {
    system::count_parametr(4);
    system::isset_numeric($_GET['page']);
} else {
    system::count_parametr(3);
    $_GET['page'] = 1;
}
// добавление новости
if (system::IsPost()) {
    if (!captcha::check_captcha()) {
        //выводим сообщение