function indexAction() { // товары $this->catalog_status = mysql::query_findpole('select status from menu where id=59', 'status'); $this->catalog_inctive = dbh::get_count_status_off('catalog'); // заказы $this->order_inctive = dbh::get_count_status_off('order_number'); // отзывы $this->gb_status = mysql::query_findpole('select status from menu where id=8', 'status'); $this->gb_inctive = dbh::get_count_status_off('guestbook'); // новости $this->news_status = mysql::query_findpole('select status from menu where id=1', 'status'); $this->news_inctive = dbh::get_count_status_off('news'); // комментарии к новостям $this->news_gb_status = mysql::query_findpole('select status from menu where id=232', 'status'); $this->news_gb_inctive = dbh::get_count_status_off('news_gb'); // пользователи $this->users_status = mysql::query_findpole('select status from menu where id=26', 'status'); $this->users_inctive = dbh::get_count_status_off('users'); // контентовые разделы $this->content_status = mysql::query_findpole('select status from menu where id=89', 'status'); // галерея $this->gallery_status = mysql::query_findpole('select status from menu where id=3', 'status'); // голосование $this->voting_status = mysql::query_findpole('select status from menu where id=102', 'status'); // настройки $this->config_status = mysql::query_findpole('select status from menu where id=80', 'status'); // CEO $this->ceo_status = mysql::query_findpole('select status from menu where id=11', 'status'); return system::show_tpl((array) $this, 'mainmenu/mainpage.php'); }
/** * редактируем выбранный материал */ function newAction() { if ($_POST) { $this->_width = mysql::query_findpole('select zna from config where id=23', 'zna'); $this->_height = mysql::query_findpole('select zna from config where id=24', 'zna'); $this->_width_b = mysql::query_findpole('select zna from config where id=25', 'zna'); $this->_height_b = mysql::query_findpole('select zna from config where id=26', 'zna'); // проверяем на checkbox forms::check_box(array('status', 'firstpage', 'alt')); // записываем в базу forms::multy_update_form($this->tablename, $_POST['id'], 0); $this->msg = general::messages(1, v::getI18n('backend_after_save')); // загружаем фото forms::multy_update_photo(HOST . IMG_GALLERY_PATH, 1, $_POST['id'], $this->_width, $this->_height, $this->_width_b, $this->_height_b, true); // строим запрос $_sql = 'SELECT * FROM ' . $this->tablename . ' where id=' . $_POST['id']; } else { // строим запрос $_sql = 'SELECT * FROM ' . $this->tablename . ' where id=' . $_GET['id']; } // выполняем запрос + при необходимости выводим сам запрос $result = mysql::query_one($_sql, 0); // выбираем фотоальбомы $_sql = 'SELECT * FROM gallery_grupa WHERE id_parent=0 order by sort'; $select = mysql::query($_sql, 0); return system::show_tpl(array('obj' => $result, 'msg' => $this->msg, 'select' => $select, 'tpl_folder' => $this->tpl_folder), $this->tpl_folder . '/new.php'); }
/** * get count */ static function get_count() { // фильтрация $_filter = catalog::get_filter(); // запрос $_sql = 'SELECT count(*) as count FROM catalog where id_parent=' . $_GET['grupa'] . ' and status=1 ' . $_filter; // выполняем запрос + при необходимости выводим сам запрос return mysql::query_findpole($_sql, 'count', 0); }
/** * get count */ static function get_count_brand() { // фильтрация $_filter = self::get_filter(); // запрос $_sql = 'SELECT count(*) as count FROM catalog where status=1 ' . $_filter; // выполняем запрос + при необходимости выводим сам запрос return mysql::query_findpole($_sql, 'count', 0); }
WHERE catalog.brand=brand.id and catalog.status=1 and brand.status=1 ' . $_filter . ' ORDER BY ' . $_sort . ' LIMIT ' . $limit; // выполняем запрос + при необходимости выводим сам запрос $result = mysql::query($_sql, 0); // наименование бренда $_brand = ___findpole('select pole from brand where id=' . $id, 'pole'); if ($result) { $_str .= system::show_tpl(array('result' => $result, '_brand' => $_brand), 'frontend/catalog/brand/list.php'); } else { $_str .= 'У данного бренда товары отсутствуют.'; } } else { // выводим все бренды // get limit $limit = pager::pager_limit(brand::get_count(), mysql::query_findpole('select zna from config where id=47', 'zna')); // строим запрос $_sql = 'SELECT brand.*, count(catalog.id) as count FROM brand Left Outer Join catalog ON brand.id=catalog.brand WHERE brand.id>0 and brand.status=1 GROUP BY brand.id order by brand.sort LIMIT ' . $limit; // выполняем запрос + при необходимости выводим сам запрос $result = mysql::query($_sql, 0); $_str .= system::show_tpl(array('result' => $result), 'frontend/catalog/brand/all_brands.php');
/** * get count of news */ static function count_guestbook() { $_sql = 'SELECT count(*) as count FROM guestbook where status=1'; // выполняем запрос + при необходимости выводим сам запрос return mysql::query_findpole($_sql, 'count', 0); }
function add_sadminAction() { // только для СуперАдмина if (!general::sadmin()) { return general::messages(0, v::getI18n('backend_orror_access')); } $this->tpl = $this->tpl_folder . '/add' . general::sadmin_tpl() . '.php'; if ($_POST) { // проверяем на checkbox forms::check_box(array('status', 'has_podrasdel', 'is_map')); // проверяем на существование такого action, если есть - добавляем несколько символов $_sql = 'SELECT count(*) as count FROM ' . $this->tablename . ' where action="' . $_POST['FORM']['action'] . '"'; // выполняем запрос + при необходимости выводим сам запрос if (mysql::query_findpole($_sql, 'count', 0) > 0) { $_POST['FORM']['action'] .= '_new'; } // записываем в базу forms::multy_insert_form($this->tablename, 0); $this->msg = general::messages(1, v::getI18n('backend_after_save')); } // выбираем разделы у которых могут быть подразделы $_sql = 'SELECT * FROM ' . $this->tablename . ' where has_podrasdel=1 order by name'; $select = mysql::query($_sql, 0); return system::show_tpl(array('select' => $select, 'msg' => $this->msg, 'tpl_folder' => $this->tpl_folder), $this->tpl); }
<?php if ($obj->count > 0) { ?> </a> <?php } ?> <div style=""> <div class="bold"><?php echo $obj->pole; ?> </div> <?php echo $obj->text; ?> </div> </div> <?php } ?> </div> <?php // pager echo brand::get_count() > mysql::query_findpole('select zna from config where id=47', 'zna') ? pager::pager_J("brand", mysql::query_findpole('select zna from config where id=47', 'zna'), brand::get_count(), intval($_GET['page'])) : ''; ?>
// НАЧАЛЬНОЕ кол-во комментерией к новостям на одной странице define('FIRST_COMMENT_NEWS_AT_PAGE', mysql::query_findpole('select zna from config where id=18', 'zna')); // показывать комментарии к новостям define('COMMENT_NEWS', 0); // типы новостей есть/нет define('TYPE_NEWS', 0); // массив типов новостей $_type_news = array('0' => "Новости", '1' => "Новости тип #1", '2' => "Новости тип #2"); // 2011 define('DEFAULT_CTRL', 'page'); define('DEFAULT_ACTION', 'index'); // грузим файлы к разделам? define('UPLOAD_FILES', false); // соотносим галереи к разделом? define('IS_GALLERY_CONTENT', true); define('SUPER_ADMIN', 0); // типы баннеров есть/нет define('TYPE_BANNER', 1); // массив типов баннеров $_type_banner = array('0' => "Верхний блок", '1' => "Боковой блок"); /** * GALLERY */ // НАЧАЛЬНОЕ кол-во новостей на одной странице define('FIRST_GALLERY_AT_PAGE', mysql::query_findpole('select zna from config where id=6', 'zna')); /** * GUESTBOOK */ // НАЧАЛЬНОЕ кол-во отзывов на одной странице define('FIRST_GUESTBOOK_AT_PAGE', mysql::query_findpole('select zna from config where id=7', 'zna'));
/** * get count of news */ static function count_gallery() { // получаем группу галереи $_id_gallery_grupa = dbh::get_gallery_grupa_id($_GET['url']); if ($_id_gallery_grupa) { $_sql = 'SELECT count(*) as count FROM gallery where status=1 and id_parent=' . $_id_gallery_grupa; // выполняем запрос + при необходимости выводим сам запрос return mysql::query_findpole($_sql, 'count', 0); } }
/** * добавляем новый материал */ function addAction() { if ($_POST) { $this->_width = mysql::query_findpole('select zna from config where id=42', 'zna'); $this->_height = mysql::query_findpole('select zna from config where id=43', 'zna'); $this->_width_b = mysql::query_findpole('select zna from config where id=44', 'zna'); $this->_height_b = mysql::query_findpole('select zna from config where id=45', 'zna'); // проверяем на checkbox forms::check_box(array('status')); // записываем в базу forms::multy_insert_form($this->tablename, 0); $this->msg = general::messages(1, v::getI18n('backend_after_save')); // загружаем фото forms::multy_update_photo(HOST . IMG_BRAND_PATH, 1, mysql_insert_id(), $this->_width, $this->_height, $this->_width_b, $this->_height_b); header('Location: /backend/' . $this->tpl_folder . '/index'); } return system::show_tpl(array('msg' => $this->msg, 'tpl_folder' => $this->tpl_folder), $this->tpl_folder . '/add.php'); }
/** * get count of comment to news */ static function count_comment_news($id) { // запрос $_sql = "SELECT count(*) as count FROM news_gb where status=1 and id_news=" . $id; // выполняем запрос + при необходимости выводим сам запрос return mysql::query_findpole($_sql, 'count', 0); }
} } */ if (DEBUG_SITE == 1) { // время $profiler->enterSection('echo'); } // создаем КЕШ сайта if (USE_KEH == 1) { create_keh($_str); } $str = mysql::query("SELECT * FROM content WHERE status=1 ORDER BY sort", 0); $music = prizvanie::get_music(); // генерим статику $_statik = array('TITLE' => mysql::query_findpole('select title_' . $_GET['lang'] . ' from ceo where action="site"', 'title_' . $_GET['lang']), 'KEYWORDS' => mysql::query_findpole('select keywords_' . $_GET['lang'] . ' from ceo where action="site"', 'keywords_' . $_GET['lang']), 'DESCRIPTION' => mysql::query_findpole('select description_' . $_GET['lang'] . ' from ceo where action="site"', 'description_' . $_GET['lang']), 'HEAD' => head1(), 'facebook' => mysql::query_findpole("SELECT zna FROM config WHERE id=1003", 'zna'), 'google' => mysql::query_findpole("SELECT zna FROM config WHERE id=1004", 'zna'), 'youtube' => mysql::query_findpole("SELECT zna FROM config WHERE id=1005", 'zna'), 'skype' => mysql::query_findpole("SELECT zna FROM config WHERE id=1012", 'zna')); echo system::show_tpl(array('str' => $str, 'statik' => $_statik, 'music' => $music), 'index_full.php'); // ******************************************************* if (DEBUG_SITE == 1) { // время $profiler->leaveSection('echo'); } // вывод/невывод дебаггера if (DEBUG_SITE == 1) { echo '<div id="debug" style="float: left; width: 100%; border: solid red 0px; background: #C0C0C0; ">'; // время $profiler->stop(); $profiler->display(); // дебагер debug(); echo "</div>";
/** * получаем кол-во детей контент * @param int parent_id */ static function voting_count_child($parent_id) { $_sql = 'SELECT count(*) as count FROM voting where id_parent=' . $parent_id; // выполняем запрос + при необходимости выводим сам запрос return mysql::query_findpole($_sql, 'count', 0); }
$height_b = mysql::query_findpole('select zna from config where id=26', 'zna'); /* // caa?o?aai oioi forms::multy_update_photo( HOST.IMG_SPLASH_PATH, 1, mysql_insert_id(), $width, $height, $width_b, $height_b, true ); */ if ($_FILES[$upload_name]['name'] != "") { $name_file_destination = mysql::query_findpole('select max(id) as id from splash', 'id') . ".jpg"; // ------------------------------------------------------------------- $fileuplo = HOST . IMG_SPLASH_PATH . '/' . md5($_FILES[$upload_name]['name']); move_uploaded_file($_FILES[$upload_name]['tmp_name'], $fileuplo); // ------------------------------------------------------------------- $size = getimagesize($fileuplo); $width_b = $size[0]; $height_b = $size[1]; $filename = HOST . IMG_SPLASH_PATH . '/' . $name_file_destination; $filename1 = HOST . IMG_SPLASH_PATH . '/_' . $name_file_destination; //////////////////////////////////////////////////////////////////////////////// // Для GD //////////////////////////////////////////////////////////////////////////////// if (_IMAGE_MAGICK == 0) { require_once HOST . "/backend/classes/imagemanager.class.php"; $iman = ImageManager::Instance();
/** * добавляем новый материал */ function addAction() { if ($_POST) { // даты $_POST['FORM']['date_news'] = general::date_to_database($_POST['FORM']['date_news']); $this->_width = mysql::query_findpole('select zna from config where id=16', 'zna'); $this->_height = mysql::query_findpole('select zna from config where id=17', 'zna'); $this->_width_b = mysql::query_findpole('select zna from config where id=19', 'zna'); $this->_height_b = mysql::query_findpole('select zna from config where id=20', 'zna'); // проверяем на checkbox forms::check_box(array('status')); // проверяем на существование такого action, если есть - добавляем несколько символов $_sql = 'SELECT count(*) as count FROM ' . $this->tablename . ' where url="' . $_POST['FORM']['url'] . '"'; // выполняем запрос + при необходимости выводим сам запрос if (mysql::query_findpole($_sql, 'count', 0) > 0) { $_POST['FORM']['url'] .= '_new'; } // записываем в базу forms::multy_insert_form($this->tablename, 0); $this->msg = general::messages(1, v::getI18n('backend_after_save')); // загружаем фото forms::multy_update_photo(HOST . IMG_NEWS_PATH, 1, mysql_insert_id(), $this->_width, $this->_height, $this->_width_b, $this->_height_b); } // массив типов global $_type_news; return system::show_tpl(array('msg' => $this->msg, 'select' => $_type_news, 'tpl_folder' => $this->tpl_folder), $this->tpl_folder . '/add.php'); }
/** * добавляем новый материал */ function addAction() { if ($_POST) { // проверяем на существование такого action, если есть - добавляем несколько символов $_sql = 'SELECT count(*) as count FROM ' . $this->tablename . ' where url="' . $_POST['FORM']['url'] . '"'; // выполняем запрос + при необходимости выводим сам запрос if (mysql::query_findpole($_sql, 'count', 0) > 0) { $_POST['FORM']['url'] .= '_' . rand(0, 99999); } $this->_width = mysql::query_findpole('select zna from config where id=21', 'zna'); $this->_height = mysql::query_findpole('select zna from config where id=22', 'zna'); $this->_width_b = mysql::query_findpole('select zna from config where id=21', 'zna'); $this->_height_b = mysql::query_findpole('select zna from config where id=22', 'zna'); // проверяем на checkbox forms::check_box(array('status')); // записываем в базу forms::multy_insert_form($this->tablename, 0); $this->msg = general::messages(1, v::getI18n('backend_after_save')); // загружаем фото forms::multy_update_photo(HOST . IMG_GALLERY_GRUPA_PATH, 1, mysql_insert_id(), $this->_width, $this->_height, $this->_width_b, $this->_height_b); header('Location: /backend/' . $this->tpl_folder . '/index'); } return system::show_tpl(array('select' => dbh::get_gallery_grupa_tree(), 'msg' => $this->msg, 'tpl_folder' => $this->tpl_folder), $this->tpl_folder . '/add.php'); }
*/ // Process the file /* At this point we are ready to process the valid file. This sample code shows how to save the file. Other tasks could be done such as creating an entry in a database or generating a thumbnail. Depending on your server OS and needs you may need to set the Security Permissions on the file after it has been saved. */ // ïèøåì â áàçó $_sql = "INSERT INTO `gallery`\n\t\t\t(`id`,`pole`,`created_at`,`id_parent`,`firstpage`,`sort`,`alt`,`updated_at`,`status`)\n\t\t\tVALUES\n\t\t\t(NULL,'" . $_FILES[$upload_name]["name"] . "','" . date('Y-m-d') . "','0','1',NULL,'1',NULL,'1')"; $result = mysql::just_query($_sql, 0); $width = mysql::query_findpole('select zna from config where id=23', 'zna'); $height = mysql::query_findpole('select zna from config where id=24', 'zna'); $width_b = mysql::query_findpole('select zna from config where id=25', 'zna'); $height_b = mysql::query_findpole('select zna from config where id=26', 'zna'); /* // çàãðóæàåì ôîòî forms::multy_update_photo( HOST.IMG_GALLERY_PATH, 1, mysql_insert_id(), $width, $height, $width_b, $height_b, true ); */ if ($_FILES[$upload_name]['name'] != "") { $name_file_destination = mysql_insert_id() . ".jpg";
function show_title() { global $action; f_mysql_connect(); if (isset($_GET['action'])) { /* * специфические разделы для выбора ключей */ if ($_GET['action'] == "news") { if (isset($_GET['url'])) { // нашли поля $_arr = ___findarray('select zag,text from news where url="' . $_GET['url'] . '"'); $_title = $_arr['zag'] . ' — ' . NAME_FIRMS . ' - Новости'; $_description = get_stoka($_arr['text'], 50, ' '); $_keywords = get_stoka($_arr['zag'], 50, ', ') . _KEYWORDS; } else { if (TYPE_NEWS == 0 or !isset($_GET['type'])) { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=1'); $_title = NAME_FIRMS . ' - ' . $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; } else { // нашли поля switch ($_GET['type']) { case 1: $_idd = 6; break; case 2: $_idd = 7; break; default: $_idd = 1; break; } //ищем $_arr = ___findarray('select title,description,keywords from ceo where id=' . $_idd); $_title = NAME_FIRMS . ' - ' . $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; } } } else { if ($_GET['action'] == "gallery" or $_GET['action'] == "arhiv") { $_arr = ___findarray('select title,description,keywords from ceo where id=2'); if (isset($_GET['id'])) { // нашли поля $_arr1 = ___findarray('select pole from gallery_grupa where id="' . $_GET['id'] . '"'); $_title = $_arr['title'] . ' - ' . $_arr1['pole'] . ' — ' . NAME_FIRMS; if ($_arr1['text'] == '') { $_description = _DESCRIPTION; } else { $_description = get_stoka($_arr1['text'], 50, ' '); } $_keywords = get_stoka($_arr1['pole'], 50, ', ') . _KEYWORDS; } else { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=2'); $_title = $_arr['title'] . ' - ' . NAME_FIRMS; $_description = $_arr['description']; $_keywords = $_arr['keywords']; } // раздел каталог } else { if ($_GET['action'] == "catalog") { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=3'); $_title = $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; // если есть Группа if (isset($_GET['grupa'])) { // строим запрос $_sql = 'SELECT * FROM catalog_tree where id=' . $_GET['grupa']; // выполняем запрос + при необходимости выводим сам запрос $result = mysql::query_one($_sql, 0); /* * определяем переменные */ $_title .= " - " . $result->title; $_description .= ", " . $result->description; $_keywords .= ", " . $result->keywords; /* * определяем переменные */ $_title .= " - " . NAME_FIRMS; $_description .= ", " . NAME_FIRMS; $_keywords .= ", " . NAME_FIRMS; } else { if (isset($_GET['goods'])) { // строим запрос $_sql = 'SELECT name, text_short FROM catalog where id=' . intval($_GET['goods']) . ' and status=1'; // выполняем запрос + при необходимости выводим сам запрос $result = mysql::query_one($_sql, 0); /* * определяем переменные */ $_title .= " - " . get_stoka($result->name, 50, ' ') . " - " . NAME_FIRMS; $_description .= ", " . get_stoka($result->description, 150, ' ') . ", " . NAME_FIRMS; $_keywords .= ", " . get_stoka($result->keywords, 150, ' ') . ", " . NAME_FIRMS; } } // раздел каталог } else { if ($_GET['action'] == "brand") { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=9'); $_title = $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; // конкретный бренд if (isset($_GET['id'])) { // строим запрос $_sql = 'SELECT * FROM brand where id=' . $_GET['id']; // выполняем запрос + при необходимости выводим сам запрос $result = mysql::query_one($_sql, 0); /* * определяем переменные */ $_title .= " - " . $result->pole; $_description .= ", " . $result->pole; $_keywords .= ", " . $result->pole; /* * определяем переменные */ $_title .= " - " . NAME_FIRMS; $_description .= ", " . NAME_FIRMS; $_keywords .= ", " . NAME_FIRMS; } // раздел каталог } else { if ($_GET['action'] == "basket") { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=10'); $_title = $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; /* * определяем переменные */ $_title .= " - " . NAME_FIRMS; $_description .= ", " . NAME_FIRMS; $_keywords .= ", " . NAME_FIRMS; // раздел каталог } else { if ($_GET['action'] == "mycabinet") { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=11'); $_title = $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; /* * определяем переменные */ $_title .= " - " . NAME_FIRMS; $_description .= ", " . NAME_FIRMS; $_keywords .= ", " . NAME_FIRMS; // раздел каталог } else { if ($_GET['action'] == "filter") { // имя текущего раздела $_res = filter::get_name_curent_filter(); $_title = $_res; $_description = $_res; $_keywords = $_res; // конкретный бренд if (isset($_GET['id'])) { /* * определяем переменные */ $_title .= " - " . NAME_FIRMS; $_description .= ", " . NAME_FIRMS; $_keywords .= ", " . NAME_FIRMS; } } else { if ($_GET['action'] == "search") { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=13'); $_title = NAME_FIRMS . ' - ' . $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; } else { if ($_GET['action'] == "voting") { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=12'); $_title = NAME_FIRMS . ' - ' . $_arr['title']; if (isset($_GET['arhiv'])) { $_title .= ' - Архив голосований'; } $_description = $_arr['description']; $_keywords = $_arr['keywords']; } else { if ($_GET['action'] == "registration") { // нашли поля $_arr = ___findarray('select title,description,keywords from ceo where id=8'); $_title = NAME_FIRMS . ' - ' . $_arr['title']; $_description = $_arr['description']; $_keywords = $_arr['keywords']; } else { $_str = "where action='" . $_GET['action'] . "' and status=1"; //echo "<br>".$_str."<br>"; $result = f_mysql_select("content", $_str); if (mysql_numrows($result) > 0) { $find = mysql_fetch_array($result); /* * определяем переменные */ $_title = mysql::query_findpole('select title_' . $_GET['lang'] . ' from content where action="' . $_GET['action'] . '"', 'title_' . $_GET['lang']) . ' - ' . NAME_FIRMS; $_description = mysql::query_findpole('select description_' . $_GET['lang'] . ' from content where action="' . $_GET['action' . '"'], 'description_' . $_GET['lang']); $_keywords = mysql::query_findpole('select keywords_' . $_GET['lang'] . ' from content where action="' . $_GET['action'] . '"', 'keywords_' . $_GET['lang']); /*$_title=$find['title'].' - '.NAME_FIRMS; $_description=$find['description']; $_keywords=$find['keywords']; */ } else { /*$_title=_TITLE.' - '.NAME_FIRMS; $_description=_DESCRIPTION; $_keywords=_KEYWORDS;*/ $_title = mysql::query_findpole('select title_' . $_GET['lang'] . ' from content where action=' . $_GET['action'], 'title_' . $_GET['lang']) . ' - ' . NAME_FIRMS; $_description = mysql::query_findpole('select description_' . $_GET['lang'] . ' from content where action=' . $_GET['action'], 'description_' . $_GET['lang']); $_keywords = mysql::query_findpole('select keywords_' . $_GET['lang'] . ' from content where action=' . $_GET['action'], 'keywords_' . $_GET['lang']); } } } } } } } } } } } } if (!isset($_GET['action']) or $_title == '') { //$result=f_mysql_select("title","where id=1"); //$find=mysql_fetch_array($result); /* * определяем переменные */ $_title = _TITLE . ' - ' . NAME_FIRMS; $_description = _DESCRIPTION; $_keywords = _KEYWORDS; } // массив значений $_res = array($_title, $_description, $_keywords); //print_r($_res); return $_res; }
break; } } */ if (DEBUG_SITE == 1) { // время $profiler->enterSection('echo'); } // создаем КЕШ сайта if (USE_KEH == 1) { create_keh($_str); } // генерим статику $_statik = array('phone' => mysql::query_findpole('select zna from config where id=30', 'zna'), 'skype' => mysql::query_findpole('select zna from config where id=31', 'zna'), 'email' => mysql::query_findpole('select zna from config where id=32', 'zna'), 'icq' => mysql::query_findpole('select zna from config where id=33', 'zna'), 'rejim' => mysql::query_findpole('select zna from config where id=34', 'zna'), 'rejim1' => mysql::query_findpole('select zna from config where id=35', 'zna'), 'rejim2' => mysql::query_findpole('select zna from config where id=36', 'zna'), 'rejim3' => mysql::query_findpole('select zna from config where id=37', 'zna'), 'brand_at_first' => mysql::query_findpole('select zna from config where id=40', 'zna'), 'news_at_first' => mysql::query_findpole('select zna from config where id=46', 'zna'), 'lider_at_first' => mysql::query_findpole('select zna from config where id=39', 'zna'), 'novinki_at_first' => mysql::query_findpole('select zna from config where id=38', 'zna'), 'specpredlogenie_at_first' => mysql::query_findpole('select zna from config where id=41', 'zna')); echo system::show_tpl(array('str' => $_str, 'statik' => $_statik), 'index_full.php'); // ******************************************************* if (DEBUG_SITE == 1) { // время $profiler->leaveSection('echo'); } // вывод/невывод дебаггера if (DEBUG_SITE == 1) { echo '<div id="debug" style="float: left; width: 100%; border: solid red 0px; background: #C0C0C0; ">'; // время $profiler->stop(); $profiler->display(); // дебагер debug(); echo "</div>";
<?php $_i18n_ = array('error404' => 'Запрашиваемая Вами страница не найдена .', 'error500' => 'В данный момент Ваш запрос не может быть обработан. Попробуйте позднее либо вернитесь в предыдущий раздел.', 'debug_tab_mysql' => 'MySQL', 'mysql_connect_faild' => 'Нет соединения с сервером баз данных', 'mysql_db_select_faild' => 'База данных не выбрана', 'upload_error_file_size' => 'Размер файла', 'upload_error_invalid_file_type' => 'Тип файла не поддерживается', 'upload_error_moving_file_failed' => 'Копирование файла не удалось', 'upload_error_file_not_uploaded' => 'Файл не загружен', 'upload_error_empty_file_field' => 'Файл не выбран', 'message_add_comment_to_news' => 'Благодарим вас за оставленный комментарий. <br>С вашей помощью наш сайт становится интереснее и полезнее. <br>Администрация сайта обязательно рассмотрит ваши материалы и опубликует их в ближайшее время.', 'message_after_registration' => 'Благодарим вас за регистрацию на нашем сайте! Приятной работы!', 'message_text_after_registration_user_at_site' => 'Благодарим вас за регистрацию на нашем сайте! <br /> На ваш email, указанный при регистрации, отправлено уведомление с данными для входа в ваш личный кабинет на сайте. <br /> Приятной работы!', 'message_after_autorisation' => 'Данные введены правильно! Приятной работы!', 'message_error_autorisation' => 'Данные введены неправильно! Будьте внимательны!', 'message_text_after_autorisation_user_at_site' => 'Добро пожаловать на наш сайт! <br /> Воспользуйтесь личным кабинетом для: редактирования своих данных и просмотра истории покупок. <br /> Приятной работы!', 'message_after_exit' => 'Возвращайтесь еще!', 'message_text_after_exit' => 'Администрация сайта благодарит вас за время, потраченное на нашем сайте. До скорых встреч!', 'message_error_login' => 'Такой ЛОГИН уже существует. <br> Повторите, пожалуйста, отправку данных, изменив логин.', 'message_text_after_edit_data' => 'Благодарим вас внимание к нашему сайту. <br /> На ваш email, указанный при регистрации, отправлено уведомление с измененными данными. <br /> Приятной работы!', 'message_after_edit_data' => 'Выши данные изменены. Приятной работы.', 'message_after_q_about_good' => 'Ваш вопрос принят. Менеджер ответит вам в ближайшее время.', 'message_after_oformleniya_basket' => 'Благодарим вас за заказ. <br /> Менеджер свяжется с вами в ближайшее время.', 'backend_after_save_file' => 'Неправильное расширение файла!', 'subscribe_refuse' => 'Вы отказались от рассылки на сайте!', 'subscribe_refuse_error' => 'Вы не подписывались на рассылку на сайте!', 'subscribe_already01' => 'уже является подписчиком на сайте!', 'subscribe_already02' => 'введите другую почту для подписки.', 'subscribe_done' => 'Вы подписались на рассылку на сайте', 'message_add_comment_to_guestbook' => 'Благодарим вас за оставленный отзыв. <br>Администрация сайта обязательно рассмотрит ваши материалы и опубликует их в ближайшее время.', 'captcha_input_number' => 'Введите число, указанное на картинке', 'captcha_refresh_image' => 'Обновить изображение', 'pager_page' => 'Страниц', 'backend_after_save' => 'Данные сохранены!', 'backend_after_delete' => 'Запись удалена!', 'backend_after_delete_photo' => 'Фото удалено!', 'backend_orror_access' => 'Доступ запрещен!', 'backend_after_delete_file' => 'Файл удален!', 'backend_upload_reklama_error_type' => 'Неверный формат загружаемого баннера!', 'form_title_contact' => 'Отправить сообщение', 'form_subject_from' => 'Раздел - Контакты', 'mail_from_site' => 'Письмо отправлено с сайта', 'send' => 'Отправить', 'your_name' => 'ФИО', 'email' => 'Ваш e-mail', 'phone' => 'Телефон', 'country' => 'Страна', 'message' => 'Сообщение', 'city' => 'Город', 'theme' => 'Тема', 'update_image' => 'Обновить', 'captcha' => 'Введите число', 'message_add_contact' => 'Благодарим вас за сообщение!', 'message_error_captcha' => 'Вы неправильно ввели код безопасности.<br> Повторите, пожалуйста, отправку данных, внимательно указав код.', 'top_msg' => '<strong>Добрый день</strong><br />Администрация сайта благодарит Вас за проявленный интерес.<br />Ниже приведен текст Вашего сообщения:<br />', 'bot_msg' => '<strong>Ответ будет получен Вами в ближайшее время!</strong>', 'adm' => 'С уважением,<br />Администрация сайта,<br />', 'copy' => '<span style="margin-left:1px;">Copyright © Международный</span> <br /> Центр Реализации Призвания', 'slogan' => mysql::query_findpole('select zna from config where id=1007', 'zna'), 'near_slogan' => mysql::query_findpole('select zna from config where id=1006', 'zna'), 'drugoe' => 'Другое', 'today' => 'Сегодня', 'yesterday' => 'Вчера', 'tomorrow' => 'Завтра', 'January' => 'января', 'February' => 'февраля', 'March' => 'марта', 'April' => 'апреля', 'May' => 'мая', 'June' => 'июня', 'July' => 'июля', 'August' => 'августа', 'September' => 'сентября', 'October' => 'октября', 'November' => 'ноября', 'December' => 'декабря', 'year' => 'г');