<?php
// sape
global $sape;
if (!defined('_SAPE_USER')){
define('_SAPE_USER', 'название папки Сапы');
}
require_once($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php');
$o['host'] = 'vpare.com';
$sape = new SAPE_client($o);
unset($o);
$sape_links =iconv('windows-1251', 'utf-8', $sape->return_links());
$smarty->assign('sapelinks', $sape_links);
// ENSURE THIS IS BEING INCLUDED IN AN SE SCRIPT
defined('SE_PAGE') or exit();
SE_DEBUG ? $_benchmark->end('page') : NULL;
SE_DEBUG ? $_benchmark->start('shutdown') : NULL;
// GET LANGUAGES AVAILABLE IF NECESSARY
if($setting['setting_lang_anonymous'] == 1 || ($setting['setting_lang_allow'] == 1 && $user->user_exists != 0))
{
$lang_packlist_raw = SECore::getLanguages();
//$lang_packlist = SELanguage::list_packs();
ksort($lang_packlist_raw);
$lang_packlist = array_values($lang_packlist_raw);
}
..... и так далее