Esempio n. 1
0
<?php

die('<p style="font-size:36px;color:black;font-weight:bold;">404!</p>');
global $_str;
// check for crack!
if (isset($_GET['arhiv'])) {
    system::count_parametr(3);
} else {
    system::count_parametr(2);
}
// добавление новости
if (system::IsPost()) {
    //echo "<pre>".print_r($_POST['FORM'],1)."</pre>";
    $_str .= voting::set_voting();
}
$_str .= voting::get_vopros('/frontend/voting/vopros.php');
Esempio n. 2
0
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()) {
        //выводим сообщение
        Message::GetMessage(0, v::getI18n('message_error_captcha'));
    } else {
        // пишем в базу
        Forms::MultyInsertForm('guestbook', 0);
        // очищаем POST
        unset($_POST);
        // выводим мообщение
        Message::GetMessage(1, v::getI18n('message_add_comment_to_guestbook'));
    }