static function get_instance() { if (!CKSModules::$instance instanceof CKSModules) { CKSModules::$instance = new CKSModules(); CKSModules::$instance->Init(); } return CKSModules::$instance; }
if(isset($_POST['Update'])) { if(isset($_POST['db_log']) && $_POST['db_log']=='Y') COption::SetOptionString('koloslib','db_log','Y'); else COption::SetOptionString('koloslib','db_log','N'); if(isset($_POST['db_log_path'])) COption::SetOptionString('koloslib','db_log_path',$_POST['db_log_path']); } elseif(isset($_POST['Restore'])) { COption::SetOptionString('koloslib','db_log','Y'); COption::SetOptionString('koloslib','db_log_path','/mysql.log'); } } $arKolosModules=CKSModules::get_instance()->GetList(); $aTabs = array( array("DIV" => "options_tab", "TAB" => "Настройки", "ICON" => "main_settings", "TITLE" => "Настройки"), array("DIV" => "modules_tab", "TAB" => "Связанные модули", "ICON" => "main_settings", "TITLE" => "Связанные модули") ); $tabControl = new CAdminTabControl("tabControl2", $aTabs, true, true); $tabControl->Begin(); ?> <form method="POST" action="<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialchars($mid)?>&lang=<?echo LANG?>"> <?=bitrix_sessid_post()?> <input type="hidden" name="tabControl2_active_tab" value="options_tab"> <?$tabControl->BeginNextTab();?> <tr> <td valign="top" align="right"> <?=GetMessage('DB_LOG');?>