Файл: system/modules/static.php
Строк: 23
<?php
/*
Appointment: Статические страницы
File: static.php
*/
if(!defined('MOZG'))
die('Hacking attempt!');
$metatags['title'] = $row['name'];
if($ajax == 'yes')
NoAjaxQuery();
if($logged){
$alt_name = $db->safesql(totranslit($_GET['page']));
$row = $db->super_query("SELECT name, descr, template FROM `".PREFIX."_static` WHERE name = '".$alt_name."'");
if($row){
$tpl->load_template('static.tpl');
$tpl->set('{alt_name}', $alt_name);
$tpl->set('{title}', stripslashes($row['name']));
$tpl->set('{text}', stripslashes($row['descr']));
$tpl->set('{temp}', stripslashes($row['template']));
$tpl->compile('content');
} else
msgbox('', 'Страница не найдена.', 'info_2');
$tpl->clear();
$db->free();
} else {
$user_speedbar = $lang['no_infooo'];
msgbox('', $lang['not_logged'], 'info');
}
?>