VarDbDsn = $MS_SP->Sp_DbConf['db']['DbDsn']; $ObjMenu->VarTable = $MS_SP->Sp_Config['DbPref'] .'_menu'; $ObjMenu->VarSmarty = $smarty; $ObjMenu->VarMenuName = 'MenuTop'; $ObjMenu->VarMenuVid = 'MenuTop'; $VarMenu = $ObjMenu->GetMenu(); $smarty->assign('VarMenu', $VarMenu); $ArrMenu = $ObjMenu->GetMenuArray(); $VarTitlePage = $MS_SP->GetTitleName($ArrMenu, $MS_SP->SP_CurrentHref); $smarty->assign('titlename', $VarTitlePage); require_once($_SERVER['DOCUMENT_ROOT'] .'/script/content.mod.php'); $ObjContent = new MsContent('content.table.php'); $ObjContent->VarDbDsn = $MS_SP->Sp_DbConf['db']['DbDsn']; $ObjContent->VarTable = $MS_SP->Sp_Config['DbPref'] .'_content'; $ObjContent->VarTable2 = $MS_SP->Sp_Config['DbPref'] .'_author'; $ObjContent->VarSmarty = $smarty; $ObjContent->VarContentVid = 'ContentById'; $ArrContent = $ObjContent->GetContent($_REQUEST['UrlRid']); $smarty->assign('Arr', $ArrContent); $VarPagesTxt = $smarty->fetch('pages/IndexId.tpl'); $smarty->assign('VarPagesTxt', @$VarPagesTxt); $smarty->display('Page.tpl'); ?>