site->userLogout();
redirect(urlIndex());
exit();
}
}
/*
* Read cached classifieds, favorities
*
*/
private function read_cache() : void
{
$this->ar_cached = array();
$index_cache_item = appendPath($this->site->getCachePath(), INDEX_CACHE_ITEM);
$cache = @file_get_contents($index_cache_item);
if ( $cache ) {
$ar = unserialize($cache);
if ( is_array($ar) ) {
$this->ar_cached = $ar;
}
else {
log_error(__METHOD__."(): can't unserialize cached array");
}
}
else {
log_warning(__METHOD__."(): can't read cached array, sending rebuild request");
rcast($this->site)->rebuild_index_cache();
}
}
private function gen_js_data() : void
{
global $v_scripts;
echo "
";
/*
*/
}
protected function generatePage() : void
{
global $v_images;
$this->setTitle("Архитектура Петербурга, Архитектура Санкт-Петербурга, фотографии Петербурга, здания различных архитектурных стилей");
$this->setDescription("Архитектура Санкт-Петербурга, фотографии зданий Санкт-Петербурга различных архитектурных стилей, исторических периодов Рё архитекторов. Рсторические сведения Рѕ зданиях Петербурга. Архитектура модерн, барокко, классицизм. Улицы Рё РґРѕРјР° Петербурга РЅР° карте.");
$this->setKeywords("архитектура Петербург Санкт-Петербург фото фотографии фотогалерея дома здания улицы архитекторы модерн барокко классицизм");
$this->insertHeader("");
$this->insertHeader("");
$this->insertHeader("");
$this->insertScriptStatic("imageflow.js");
//$this->insert_ie7_styles();
$this->sape_enable(true);
//$this->insert_social();
$this->insert_frontpage('CPage_Index');
$btn_search = new CButtonGray('Рскать');
$this->read_cache();
$this->generatePageHeader();
echo "\n\n\n",
"\n",
" \n\n",
"
",
"\n",
"\tПриглашаем Вас совершить прогулку по улицам Петербурга. Сайт познакомит вас с\n",
"\tархитектурой Санкт-Петербурга. Вы найдете множество фотографий архитектуры\n",
"\tПетербурга 18, 19, 20 и 21 веков и зданий всех основных архитектурных стилей.\n",
"\tНа сайте представлена информация об истории зданий, архитекторах, расположение\n",
"\tзданий на карте города. При желании вы сможете поделиться своими материалами о Петербурге.\n",
"
\n\n";
/* Generate favorities imageflow */
$html = $this->ar_cached['favorities'];
if ( $html ) {
echo "\n",
$html,
"
\n\n";
}
//gen_social_buttons('onmain');
/* Generate recent forum messages */
$html = $this->ar_cached['forum'];
if ( $html ) {
$html = predisplay_text($html);
$html = replace_time_marks($html, _DT_NO_YEAR);
echo "\n\n",
"\t
\n",
"\t\t
\n",
"\t\tПоследние сообщения на форуме
\n",
"\t
\n",
"
\n\n";
}
/* Generate recent house comments */
$html = $this->ar_cached['comments'];
if ( $html ) {
$html = predisplay_text($html);
$html = replace_time_marks($html);
echo " \n\n";
}
/* Generate classifieds */
$html = $this->ar_cached['classifieds'];
if ( $html ) {
$html = predisplay_text($html);
$html = replace_time_marks($html);
echo "\n",
"\t
\n",
"\t\t
\n",
"\t\tЛента новостей\n",
"\t
\n\n",
"\t
\n",
$html,
"\t\n",
"
\n\n";
}
$this->gen_js_data();
echo "
";
$this->generatePageFooter();
}
}
(new CPage_Index())->show();
?>