Example #1
0
 function InstallDB($arParams = array())
 {
     global $DB, $DBType, $APPLICATION;
     $this->errors = false;
     // Database tables creation
     if (!$DB->Query("SELECT 'x' FROM b_sec_iprule WHERE 1=0", true)) {
         $this->errors = $DB->RunSQLBatch($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/security/install/db/" . strtolower($DB->type) . "/install.sql");
     }
     if ($this->errors !== false) {
         $APPLICATION->ThrowException(implode("<br>", $this->errors));
         return false;
     } else {
         $this->InstallTasks();
         RegisterModule("security");
         RegisterModuleDependences("main", "OnUserDelete", "security", "CSecurityUser", "OnUserDelete");
         RegisterModuleDependences("main", "OnEventLogGetAuditTypes", "security", "CSecurityFilter", "GetAuditTypes");
         RegisterModuleDependences("main", "OnEventLogGetAuditTypes", "security", "CSecurityAntiVirus", "GetAuditTypes");
         RegisterModuleDependences("main", "OnAdminInformerInsertItems", "security", "CSecurityFilter", "OnAdminInformerInsertItems");
         RegisterModuleDependences("main", "OnAdminInformerInsertItems", "security", "CSecuritySiteChecker", "OnAdminInformerInsertItems");
         CModule::IncludeModule("security");
         //agents
         CAgent::RemoveAgent("CSecuritySession::CleanUpAgent();", "security");
         CAgent::Add(array("NAME" => "CSecuritySession::CleanUpAgent();", "MODULE_ID" => "security", "ACTIVE" => "Y", "AGENT_INTERVAL" => 1800, "IS_PERIOD" => "N"));
         CAgent::RemoveAgent("CSecurityIPRule::CleanUpAgent();", "security");
         CAgent::Add(array("NAME" => "CSecurityIPRule::CleanUpAgent();", "MODULE_ID" => "security", "ACTIVE" => "Y", "AGENT_INTERVAL" => 3600, "IS_PERIOD" => "N"));
         if (!COption::GetOptionString("security", "ipcheck_disable_file")) {
             COption::SetOptionString("security", "ipcheck_disable_file", "/bitrix/modules/ipcheck_disable_" . md5(mt_rand()));
         }
         CAgent::RemoveAgent("CSecurityFilter::ClearTmpFiles();", "security");
         CSecurityFilter::SetActive(true);
         CSecurityAntiVirus::SetActive(true);
         return true;
     }
 }
Example #2
0
 function PHPShutdown()
 {
     if (defined("BX_SECURITY_AV_AFTER_EPILOG")) {
         $content = ob_get_contents();
         if (strlen($content)) {
             ob_end_clean();
             if (substr($content, 0, 6) == "<html>" && preg_match("#</html>\\s*\$#is", $content)) {
                 $Antivirus = new CSecurityAntiVirus("body");
             } else {
                 $Antivirus = new CSecurityAntiVirus("post");
             }
             $Antivirus->Analyze($content);
             echo $content;
         }
     }
 }
Example #3
0
$data['high']['ITEMS'][] = array("IS_OK" => $bIPProtection && $msgStopListDisabled === false, "KPI_NAME" => GetMessage("SEC_PANEL_IPBLOCK_NAME"), "KPI_VALUE" => $bIPProtection && $msgStopListDisabled === false ? GetMessage("SEC_PANEL_IPBLOCK_VALUE_ON") : GetMessage("SEC_PANEL_IPBLOCK_VALUE_OFF"), "KPI_RECOMMENDATION" => $bIPProtection ? $msgStopListDisabled === false ? '&nbsp;' : $msgStopListDisabled->Show() : ($USER->CanDoOperation('security_iprule_admin_settings_write') ? '<a href="security_iprule_admin.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '">' . GetMessage("SEC_PANEL_IPBLOCK_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_IPBLOCK_RECOMMENDATION")));
$bSessionsDB = COption::GetOptionString("security", "session") == "Y";
$data['high']['ITEMS'][] = array("IS_OK" => $bSessionsDB, "KPI_NAME" => GetMessage("SEC_PANEL_SESSDB_NAME"), "KPI_VALUE" => $bSessionsDB ? GetMessage("SEC_PANEL_SESSDB_VALUE_ON") : GetMessage("SEC_PANEL_SESSDB_VALUE_OFF"), "KPI_RECOMMENDATION" => $bSessionsDB ? '&nbsp;' : ($USER->CanDoOperation('security_session_settings_write') ? '<a href="security_session.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '&amp;tabControl_active_tab=savedb">' . GetMessage("SEC_PANEL_SESSDB_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_SESSDB_RECOMMENDATION")));
$bSessionTTL = COption::GetOptionString("main", "use_session_id_ttl", "N") == "Y" && COption::GetOptionInt("main", "session_id_ttl", 0) > 0;
$data['high']['ITEMS'][] = array("IS_OK" => $bSessionTTL, "KPI_NAME" => GetMessage("SEC_PANEL_SESSID_NAME"), "KPI_VALUE" => $bSessionTTL ? GetMessage("SEC_PANEL_SESSID_VALUE_ON") : GetMessage("SEC_PANEL_SESSID_VALUE_OFF"), "KPI_RECOMMENDATION" => $bSessionTTL ? '&nbsp;' : ($USER->CanDoOperation('security_session_settings_write') ? '<a href="security_session.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '&amp;tabControl_active_tab=sessid">' . GetMessage("SEC_PANEL_SESSID_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_SESSID_RECOMMENDATION")));
$bRedirect = CSecurityRedirect::IsActive();
$data['high']['ITEMS'][] = array("IS_OK" => $bRedirect, "KPI_NAME" => GetMessage("SEC_PANEL_ANTIFISHING_NAME"), "KPI_VALUE" => $bRedirect ? GetMessage("SEC_PANEL_ANTIFISHING_VALUE_ON") : GetMessage("SEC_PANEL_ANTIFISHING_VALUE_OFF"), "KPI_RECOMMENDATION" => $bRedirect ? '&nbsp;' : ($USER->CanDoOperation('security_redirect_settings_write') ? '<a href="security_redirect.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '">' . GetMessage("SEC_PANEL_ANTIFISHING_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_ANTIFISHING_RECOMMENDATION")));
$bOTP = CSecurityUser::isActive();
$data['very_high']['ITEMS'][] = array("IS_OK" => $bOTP, "KPI_NAME" => GetMessage("SEC_PANEL_OTP_NAME"), "KPI_VALUE" => $bOTP ? GetMessage("SEC_PANEL_OTP_VALUE_ON") : GetMessage("SEC_PANEL_OTP_VALUE_OFF"), "KPI_RECOMMENDATION" => $bOTP ? '&nbsp;' : ($USER->CanDoOperation('security_otp_settings_write') ? '<a href="security_otp.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '">' . GetMessage("SEC_PANEL_OTP_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_OTP_RECOMMENDATION")));
$timeFC = COption::GetOptionInt("security", "last_files_check", -1);
$data['very_high']['ITEMS'][] = array("IS_OK" => $timeFC > 1 && time() - $timeFC < 7 * 24 * 3600, "KPI_NAME" => GetMessage("SEC_PANEL_FILES_NAME"), "KPI_VALUE" => $timeFC < 0 ? GetMessage("SEC_PANEL_FILES_VALUE_NEVER") : (time() - $timeFC > 24 * 3600 ? GetMessage("SEC_PANEL_FILES_VALUE_LONGTIMEAGO") : GetMessage("SEC_PANEL_FILES_VALUE_ACTUAL")), "KPI_RECOMMENDATION" => $timeFC > 1 && time() - $timeFC < 7 * 24 * 3600 ? '&nbsp;' : ($USER->CanDoOperation('security_file_verifier_verify') ? '<a href="security_file_verifier.php?lang=' . LANGUAGE_ID . '">' . GetMessage("SEC_PANEL_FILES_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_FILES_RECOMMENDATION")));
$bSecurityAV = CSecurityAntiVirus::IsActive();
$data['very_high']['ITEMS'][] = array("IS_OK" => $bSecurityAV, "KPI_NAME" => GetMessage("SEC_PANEL_ANTIVIRUS_NAME"), "KPI_VALUE" => $bSecurityAV ? GetMessage("SEC_PANEL_ANTIVIRUS_VALUE_ON") : GetMessage("SEC_PANEL_ANTIVIRUS_VALUE_OFF"), "KPI_RECOMMENDATION" => $bSecurityAV ? '&nbsp;' : ($USER->CanDoOperation('security_antivirus_settings_write') ? '<a href="security_antivirus.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '">' . GetMessage("SEC_PANEL_ANTIVIRUS_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_ANTIVIRUS_RECOMMENDATION")));
$strSecurityAVAction = COption::GetOptionString("security", "antivirus_action");
$data['very_high']['ITEMS'][] = array("IS_OK" => $strSecurityAVAction !== "notify_only", "KPI_NAME" => GetMessage("SEC_PANEL_AV_ACTION_NAME"), "KPI_VALUE" => $strSecurityAVAction === "notify_only" ? GetMessage("SEC_PANEL_AV_ACTION_VALUE_NOTIFY") : GetMessage("SEC_PANEL_AV_ACTION_VALUE_ACT"), "KPI_RECOMMENDATION" => $strSecurityAVAction !== "notify_only" ? '&nbsp;' : ($USER->CanDoOperation('security_antivirus_settings_write') ? '<a href="security_antivirus.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '&amp;tabControl_active_tab=params">' . GetMessage("SEC_PANEL_AV_ACTION_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_AV_ACTION_RECOMMENDATION")));
$rsSecurityWhiteList = CSecurityAntiVirus::GetWhiteList();
if ($rsSecurityWhiteList->Fetch()) {
    $bSecurityWhiteList = true;
} else {
    $bSecurityWhiteList = false;
}
$data['very_high']['ITEMS'][] = array("IS_OK" => !$bSecurityWhiteList, "KPI_NAME" => GetMessage("SEC_PANEL_AV_WHITE_LIST_NAME"), "KPI_VALUE" => $bSecurityWhiteList ? GetMessage("SEC_PANEL_AV_WHITE_LIST_VALUE_ON") : GetMessage("SEC_PANEL_AV_WHITE_LIST_VALUE_OFF"), "KPI_RECOMMENDATION" => !$bSecurityWhiteList ? '&nbsp;' : ($USER->CanDoOperation('security_antivirus_settings_write') ? '<a href="security_antivirus.php?lang=' . LANGUAGE_ID . '&amp;return_url=' . urlencode('security_panel.php?lang=' . LANGUAGE_ID) . '&amp;tabControl_active_tab=exceptions">' . GetMessage("SEC_PANEL_AV_WHITE_LIST_RECOMMENDATION") . '</a>' : GetMessage("SEC_PANEL_AV_WHITE_LIST_RECOMMENDATION")));
$days = COption::GetOptionInt("main", "event_log_cleanup_days", 7);
if ($days > 7) {
    $days = 7;
}
$cntLog = 0;
$rsLog = CEventLog::GetList(array(), array("TIMESTAMP_X_1" => ConvertTimeStamp(time() - $days * 24 * 3600 + CTimeZone::GetOffset(), "FULL"), "AUDIT_TYPE_ID" => "SECURITY_VIRUS"));
while ($rsLog->Fetch()) {
    $cntLog++;
}
Example #4
0
COption::SetOptionString("main", 'CAPTCHA_arTTFFiles', 'bitrix_captcha.ttf');
RegisterModuleDependences("main", "OnBeforeProlog", "main", "CWizardSolPanelIntranet", "ShowPanel", 100, "/modules/intranet/panel_button.php");
WizardServices::SetUserOption("global", "settings", array("start_menu_preload" => "Y", "start_menu_title" => "N"), $common = true);
$links = GetMessage('MAIN_OPT_DEF_LINKS');
//desktop on index page
$sOptions = 'a:1:{s:7:"GADGETS";a:11:{s:13:"BIRTHDAY@5438";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:0;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:11:"HONOUR@8771";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:1;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:19:"NEW_EMPLOYEES@11193";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:2;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:14:"OFFICIAL@13359";a:3:{s:6:"COLUMN";i:1;s:3:"ROW";i:0;s:4:"HIDE";s:1:"N";}s:10:"LIFE@14720";a:4:{s:6:"COLUMN";i:1;s:3:"ROW";i:1;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:10:"VIDEO@8095";a:4:{s:6:"COLUMN";i:1;s:3:"ROW";i:2;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:12:"PHOTOS@11262";a:4:{s:6:"COLUMN";i:1;s:3:"ROW";i:3;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:15:"desktop-actions";a:3:{s:6:"COLUMN";i:2;s:3:"ROW";i:0;s:4:"HIDE";s:1:"N";}s:9:"VOTE@4378";a:3:{s:6:"COLUMN";i:2;s:3:"ROW";i:1;s:4:"HIDE";s:1:"N";}s:22:"COMPANY_CALENDAR@20319";a:4:{s:6:"COLUMN";i:2;s:3:"ROW";i:2;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:17:"SHARED_DOCS@14908";a:4:{s:6:"COLUMN";i:2;s:3:"ROW";i:3;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}}}';
$arOptions = unserialize($sOptions);
WizardServices::SetUserOption('intranet', '~gadgets_mainpage', $arOptions, $common = true);
//personal desktop
$sOptions = 'a:1:{s:7:"GADGETS";a:9:{s:13:"BIRTHDAY@8298";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:0;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:14:"HTML_AREA@8623";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:1;s:8:"USERDATA";a:1:{s:7:"content";s:1:" ";}s:4:"HIDE";s:1:"N";}s:13:"UPDATES@17676";a:4:{s:6:"COLUMN";i:1;s:3:"ROW";i:0;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:11:"TASKS@11589";a:4:{s:6:"COLUMN";i:1;s:3:"ROW";i:1;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:9:"BLOG@8601";a:4:{s:6:"COLUMN";i:1;s:3:"ROW";i:2;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:15:"desktop-actions";a:3:{s:6:"COLUMN";i:2;s:3:"ROW";i:0;s:4:"HIDE";s:1:"N";}s:14:"CALENDAR@22972";a:4:{s:6:"COLUMN";i:2;s:3:"ROW";i:1;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:13:"WEATHER@21928";a:4:{s:6:"COLUMN";i:2;s:3:"ROW";i:2;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:12:"PROBKI@25675";a:4:{s:6:"COLUMN";i:2;s:3:"ROW";i:3;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}}}';
$arOptions = unserialize($sOptions);
$arOptions['GADGETS']['HTML_AREA@8623']['USERDATA']['content'] = $links;
WizardServices::SetUserOption('intranet', '~gadgets_dashboard', $arOptions, $common = true);
//groups desktop
$sOptions = 'a:1:{s:7:"GADGETS";a:8:{s:18:"SONET_GROUP_DESC@1";a:3:{s:6:"COLUMN";i:0;s:3:"ROW";i:0;s:4:"HIDE";s:1:"N";}s:17:"UPDATES_ENTITY@10";a:3:{s:6:"COLUMN";i:0;s:3:"ROW";i:1;s:4:"HIDE";s:1:"N";}s:7:"TASKS@4";a:3:{s:6:"COLUMN";i:0;s:3:"ROW";i:4;s:4:"HIDE";s:1:"N";}s:18:"SONET_GROUP_TAGS@5";a:3:{s:6:"COLUMN";i:0;s:3:"ROW";i:5;s:4:"HIDE";s:1:"N";}s:18:"SONET_GROUP_WIKI@6";a:3:{s:6:"COLUMN";i:0;s:3:"ROW";i:6;s:4:"HIDE";s:1:"N";}s:19:"SONET_GROUP_LINKS@7";a:3:{s:6:"COLUMN";i:1;s:3:"ROW";i:0;s:4:"HIDE";s:1:"N";}s:19:"SONET_GROUP_USERS@8";a:3:{s:6:"COLUMN";i:1;s:3:"ROW";i:1;s:4:"HIDE";s:1:"N";}s:18:"SONET_GROUP_MODS@9";a:3:{s:6:"COLUMN";i:1;s:3:"ROW";i:2;s:4:"HIDE";s:1:"N";}}}';
$arOptions = unserialize($sOptions);
WizardServices::SetUserOption('intranet', '~gadgets_sonet_group', $arOptions, $common = false, 0);
//users desktop
$sOptions = 'a:1:{s:7:"GADGETS";a:7:{s:22:"SONET_USER_LINKS@23750";a:3:{s:6:"COLUMN";i:0;s:3:"ROW";i:0;s:4:"HIDE";s:1:"N";}s:19:"SONET_USER_GROUPS@4";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:1;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:20:"SONET_USER_ABSENCE@7";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:2;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:19:"SONET_USER_HONOUR@6";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:3;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:17:"SONET_USER_DESC@8";a:4:{s:6:"COLUMN";i:1;s:3:"ROW";i:0;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}s:25:"SONET_USER_ACTIVITY@31041";a:3:{s:6:"COLUMN";i:1;s:3:"ROW";i:1;s:4:"HIDE";s:1:"N";}s:7:"TASKS@9";a:3:{s:6:"COLUMN";i:1;s:3:"ROW";i:2;s:4:"HIDE";s:1:"N";}}}';
$arOptions = unserialize($sOptions);
WizardServices::SetUserOption('intranet', '~gadgets_sonet_user', $arOptions, $common = false, 0);
//rss news desktop
WizardServices::SetUserOption('intranet', '~gadgets_business_news', unserialize('a:1:{s:7:"GADGETS";a:1:{s:14:"RSSREADER@7338";a:4:{s:6:"COLUMN";i:0;s:3:"ROW";i:1;s:8:"USERDATA";N;s:4:"HIDE";s:1:"N";}}}'), $common = true);
//user edit form customization
WizardServices::SetUserOption("form", "user_edit", array("tabs" => "edit1--#--" . GetMessage("main_opt_user_user") . "--,--LAST_UPDATE--#--  " . GetMessage("main_opt_user_upd") . "--,--LAST_LOGIN--#--  " . GetMessage("main_opt_user_last") . "--,--NAME--#--  " . GetMessage("main_opt_user_name") . "--,--LAST_NAME--#--  " . GetMessage("main_opt_user_lastname") . "--,--SECOND_NAME--#--  " . GetMessage("main_opt_user_secondname") . "--,--EMAIL--#--*E-Mail--,--LOGIN--#--*" . GetMessage("main_opt_user_login") . "--,--PASSWORD--#--*" . GetMessage("main_opt_user_pass") . "--,--edit1_csection1--#----" . GetMessage("main_opt_user_str") . "--,--UF_DEPARTMENT--#--  " . GetMessage("main_opt_user_dep") . "--;--edit2--#--" . GetMessage("main_opt_user_group") . "--,--GROUP_ID--#--  " . GetMessage("main_opt_user_group_user") . "--;--edit3--#--" . GetMessage("main_opt_user_pers") . "--,--PERSONAL_GENDER--#--  " . GetMessage("main_opt_user_sex") . "--,--PERSONAL_BIRTHDAY--#--  " . GetMessage("main_opt_user_bith") . "--,--PERSONAL_PHOTO--#--  " . GetMessage("main_opt_user_photo") . "--,--PERSONAL_PROFESSION--#--  " . GetMessage("main_opt_user_spec") . "--,--UF_INN--#--  " . GetMessage("main_opt_user_inn") . "--,--PERSONAL_WWW--#--  " . GetMessage("main_opt_user_www") . "--,--PERSONAL_ICQ--#--  ICQ--,--USER_PHONES--#----" . GetMessage("main_opt_user_ph") . "--,--PERSONAL_PHONE--#--  " . GetMessage("main_opt_user_ph1") . "--,--PERSONAL_FAX--#--  " . GetMessage("main_opt_user_fax") . "--,--PERSONAL_MOBILE--#--  " . GetMessage("main_opt_user_mobile") . "--,--UF_SKYPE--#--  " . GetMessage("main_opt_user_skype") . "--,--USER_POST_ADDRESS--#----" . GetMessage("main_opt_user_addr") . "--,--PERSONAL_COUNTRY--#--  " . GetMessage("main_opt_user_country") . "--,--PERSONAL_STATE--#--  " . GetMessage("main_opt_user_reg") . "--,--PERSONAL_CITY--#--  " . GetMessage("main_opt_user_city") . "--,--PERSONAL_ZIP--#--  " . GetMessage("main_opt_user_zip") . "--,--UF_DISTRICT--#--  " . GetMessage("main_opt_user_distr") . "--,--PERSONAL_STREET--#--  " . GetMessage("main_opt_user_street") . "--,--PERSONAL_MAILBOX--#--  " . GetMessage("main_opt_user_pb") . "--,--PERSONAL_NOTES--#--  " . GetMessage("main_opt_user_notes") . "--;--edit4--#--" . GetMessage("main_opt_user_work") . "--,--edit4_csection2--#----" . GetMessage("main_opt_user_work_title") . "--,--WORK_DEPARTMENT--#--  " . GetMessage("main_opt_user_work_dep") . "--,--WORK_POSITION--#--  " . GetMessage("main_opt_user_work_title1") . "--,--WORK_PROFILE--#--  " . GetMessage("main_opt_user_work_desc") . "--,--USER_WORK_PHONES--#----" . GetMessage("main_opt_user_ph") . "--,--WORK_PHONE--#--  " . GetMessage("main_opt_user_ph1") . "--,--UF_PHONE_INNER--#--  " . GetMessage("main_opt_user_internal_ph") . "--,--WORK_FAX--#--  " . GetMessage("main_opt_user_fax") . "--,--edit4_csection1--#----" . GetMessage("main_opt_user_comp") . "--,--WORK_COMPANY--#--  " . GetMessage("main_opt_user_comp_name") . "--,--WORK_WWW--#--  " . GetMessage("main_opt_user_www") . "--,--WORK_LOGO--#--  " . GetMessage("main_opt_user_comp_logo") . "--,--USER_WORK_POST_ADDRESS--#----" . GetMessage("main_opt_user_addr") . "--,--WORK_COUNTRY--#--  " . GetMessage("main_opt_user_country") . "--,--WORK_STATE--#--  " . GetMessage("main_opt_user_reg") . "--,--WORK_CITY--#--  " . GetMessage("main_opt_user_city") . "--,--WORK_ZIP--#--  " . GetMessage("main_opt_user_zip") . "--,--WORK_STREET--#--  " . GetMessage("main_opt_user_street") . "--,--WORK_MAILBOX--#--  " . GetMessage("main_opt_user_pb") . "--,--WORK_NOTES--#--  " . GetMessage("main_opt_user_notes") . "--;--edit5--#--" . GetMessage("main_opt_user_blog") . "--,--MODULE_TAB_blog--#--  " . GetMessage("main_opt_user_blog") . "--;--edit6--#--" . GetMessage("main_opt_user_forum") . "--,--MODULE_TAB_forum--#--  " . GetMessage("main_opt_user_forum") . "--;--edit7--#--" . GetMessage("main_opt_user_learning") . "--,--MODULE_TAB_learning--#--  " . GetMessage("main_opt_user_learning") . "--;--user_fields_tab--#--" . GetMessage("main_opt_user_addit") . "--,--ACTIVE--#--  " . GetMessage("main_opt_user_active") . "--,--user_fields_tab_csection2--#----" . GetMessage("main_opt_user_userprop") . "--,--USER_FIELDS_ADD--#--  " . GetMessage("main_opt_user_userprop_add") . "--,--UF_1C--#--  " . GetMessage("main_opt_user_userprop_1c") . "--,--user_fields_tab_csection3--#----" . GetMessage("main_opt_user_notify") . "--,--LID--#--  " . GetMessage("main_opt_user_notify_site") . "--,--user_info_event--#--  " . GetMessage("main_opt_user_notify_do") . "--,--user_fields_tab_csection1--#----" . GetMessage("main_opt_user_admin") . "--,--ADMIN_NOTES--#--  " . GetMessage("main_opt_user_admin") . "--;--"), $common = true);
if (!strlen(COption::GetOptionString("main", "show_panel_for_users", ""))) {
    COption::SetOptionString("main", "show_panel_for_users", serialize(array("G" . WIZARD_ADMIN_SECTION_GROUP)));
}
if (CModule::IncludeModule("security")) {
    CSecurityAntiVirus::SetActive(false);
}