예제 #1
0
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/product/#', 'RULE' => '', 'ID' => 'bitrix:crm.product', 'PATH' => WIZARD_SITE_DIR . 'crm/product/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/configs/currency/#', 'RULE' => '', 'ID' => 'bitrix:crm.currency', 'PATH' => WIZARD_SITE_DIR . 'crm/configs/currency/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/configs/tax/#', 'RULE' => '', 'ID' => 'bitrix:crm.config.tax', 'PATH' => WIZARD_SITE_DIR . 'crm/configs/tax/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/configs/locations/#', 'RULE' => '', 'ID' => 'bitrix:crm.config.locations', 'PATH' => WIZARD_SITE_DIR . 'crm/configs/locations/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/configs/ps/#', 'RULE' => '', 'ID' => 'bitrix:crm.config.ps', 'PATH' => WIZARD_SITE_DIR . 'crm/configs/ps/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/reports/report/#', 'RULE' => '', 'ID' => 'bitrix:crm.report', 'PATH' => WIZARD_SITE_DIR . 'crm/reports/report/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/configs/mailtemplate/#', 'RULE' => '', 'ID' => 'bitrix:crm.mail_template', 'PATH' => WIZARD_SITE_DIR . 'crm/configs/mailtemplate/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/configs/exch1c/#', 'RULE' => '', 'ID' => 'bitrix:crm.config.exch1c', 'PATH' => WIZARD_SITE_DIR . 'crm/configs/exch1c/index.php'));
    CUrlRewriter::Add(array('CONDITION' => '#^' . WIZARD_SITE_DIR . 'crm/quote/#', 'RULE' => '', 'ID' => 'bitrix:crm.quote', 'PATH' => WIZARD_SITE_DIR . 'crm/quote/index.php'));
    CUrlRewriter::Add(array("CONDITION" => '#^' . WIZARD_SITE_DIR . 'crm/configs/measure/#', "RULE" => '', "ID" => 'bitrix:crm.config.measure', "PATH" => WIZARD_SITE_DIR . 'crm/configs/measure/index.php'));
    CUrlRewriter::Add(array("CONDITION" => '#^' . WIZARD_SITE_DIR . 'crm/configs/productprops/#', "RULE" => '', "ID" => "bitrix:crm.config.productprops", "PATH" => WIZARD_SITE_DIR . 'crm/configs/productprops/index.php'));
}
if (!WIZARD_IS_RERUN || COption::GetOptionString("crm", "form_features") == "Y") {
    // desktop on CRM index page
    $arOptions["GADGETS"] = array("CRM_MY_ACTIVITIES@1494" => array("COLUMN" => "0", "HIDE" => "N", "SETTINGS" => array("TITLE_STD" => GetMessage('CRM_GADGET_MY_ACTIVITY'), "SORT_BY" => "DESC", "ITEM_COUNT" => "5")), "CRM_DEAL_LIST@9562" => array("COLUMN" => "1", "ROW" => "0", "HIDE" => "N", "SETTINGS" => array("TITLE_STD" => GetMessage('CRM_GADGET_MY_DEAL_TITLE'), "STAGE_ID" => "WON", "ONLY_MY" => "N", "SORT" => "DATE_MODIFY", "SORT_BY" => "DESC", "DEAL_COUNT" => "3")), "CRM_LEAD_LIST@27424" => array("COLUMN" => "1", "ROW" => "2", "HIDE" => "N", "SETTINGS" => array("TITLE_STD" => GetMessage('CRM_GADGET_MY_LEAD_TITLE'), "STATUS_ID" => array("NEW", "ASSIGNED", "DETAILS", "CANNOT_CONTACT", "IN_PROCESS", "ON_HOLD", "RESTORED", "JUNK"), "ONLY_MY" => "N", "DATE_CREATE", "SORT_BY" => "DESC", "LEAD_COUNT" => "3")), "desktop-actions" => array("COLUMN" => 2, "ROW" => 0, "HIDE" => "N"));
    WizardServices::SetUserOption('intranet', '~gadgets_crm', $arOptions, $common = true);
}
if (WIZARD_INSTALL_DEMO_DATA && WIZARD_SITE_ID == "s1") {
    $CCrmRole = new CCrmRole();
    $arRoles = array('adm' => array('NAME' => GetMessage('CRM_ROLE_ADMIN'), 'RELATION' => array('LEAD' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'DEAL' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'CONTACT' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'COMPANY' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'QUOTE' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'INVOICE' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'CONFIG' => array('WRITE' => array('-' => 'X')))), 'dir' => array('NAME' => GetMessage('CRM_ROLE_DIRECTOR'), 'RELATION' => array('LEAD' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'DEAL' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'CONTACT' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'COMPANY' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'QUOTE' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'INVOICE' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')))), 'chif' => array('NAME' => GetMessage('CRM_ROLE_CHIF'), 'RELATION' => array('LEAD' => array('READ' => array('-' => 'D'), 'EXPORT' => array('-' => 'D'), 'IMPORT' => array('-' => 'D'), 'ADD' => array('-' => 'D'), 'WRITE' => array('-' => 'D'), 'DELETE' => array('-' => 'D')), 'DEAL' => array('READ' => array('-' => 'D'), 'EXPORT' => array('-' => 'D'), 'IMPORT' => array('-' => 'D'), 'ADD' => array('-' => 'D'), 'WRITE' => array('-' => 'D'), 'DELETE' => array('-' => 'D')), 'CONTACT' => array('READ' => array('-' => 'D'), 'EXPORT' => array('-' => 'D'), 'IMPORT' => array('-' => 'D'), 'ADD' => array('-' => 'D'), 'WRITE' => array('-' => 'D'), 'DELETE' => array('-' => 'D')), 'COMPANY' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'QUOTE' => array('READ' => array('-' => 'D'), 'EXPORT' => array('-' => 'D'), 'IMPORT' => array('-' => 'D'), 'ADD' => array('-' => 'D'), 'WRITE' => array('-' => 'D'), 'DELETE' => array('-' => 'D')), 'INVOICE' => array('READ' => array('-' => 'D'), 'EXPORT' => array('-' => 'D'), 'IMPORT' => array('-' => 'D'), 'ADD' => array('-' => 'D'), 'WRITE' => array('-' => 'D'), 'DELETE' => array('-' => 'D')))), 'man' => array('NAME' => GetMessage('CRM_ROLE_MAN'), 'RELATION' => array('LEAD' => array('READ' => array('-' => 'A'), 'EXPORT' => array('-' => 'A'), 'IMPORT' => array('-' => 'A'), 'ADD' => array('-' => 'A'), 'WRITE' => array('-' => 'A'), 'DELETE' => array('-' => 'A')), 'DEAL' => array('READ' => array('-' => 'A'), 'EXPORT' => array('-' => 'A'), 'IMPORT' => array('-' => 'A'), 'ADD' => array('-' => 'A'), 'WRITE' => array('-' => 'A'), 'DELETE' => array('-' => 'A')), 'CONTACT' => array('READ' => array('-' => 'A'), 'EXPORT' => array('-' => 'A'), 'IMPORT' => array('-' => 'A'), 'ADD' => array('-' => 'A'), 'WRITE' => array('-' => 'A'), 'DELETE' => array('-' => 'A')), 'COMPANY' => array('READ' => array('-' => 'X'), 'EXPORT' => array('-' => 'X'), 'IMPORT' => array('-' => 'X'), 'ADD' => array('-' => 'X'), 'WRITE' => array('-' => 'X'), 'DELETE' => array('-' => 'X')), 'QUOTE' => array('READ' => array('-' => 'A'), 'EXPORT' => array('-' => 'A'), 'IMPORT' => array('-' => 'A'), 'ADD' => array('-' => 'A'), 'WRITE' => array('-' => 'A'), 'DELETE' => array('-' => 'A')), 'INVOICE' => array('READ' => array('-' => 'A'), 'EXPORT' => array('-' => 'A'), 'IMPORT' => array('-' => 'A'), 'ADD' => array('-' => 'A'), 'WRITE' => array('-' => 'A'), 'DELETE' => array('-' => 'A')))));
    $iRoleIDAdm = $iRoleIDDir = $iRoleIDChif = $iRoleIDMan = 0;
    $obRole = CCrmRole::GetList(array(), array());
    while ($arRole = $obRole->Fetch()) {
        if ($arRole['NAME'] == GetMessage('CRM_ROLE_ADMIN')) {
            $iRoleIDAdm = $arRole['ID'];
        } else {
            if ($arRole['NAME'] == GetMessage('CRM_ROLE_DIRECTOR')) {
                $iRoleIDDir = $arRole['ID'];
            } else {
                if ($arRole['NAME'] == GetMessage('CRM_ROLE_CHIF')) {
                    $iRoleIDChif = $arRole['ID'];
예제 #2
0
        return;
    }
    $arLabelNames = array();
    $rsLanguage = CLanguage::GetList($by, $order, array());
    while ($arLanguage = $rsLanguage->Fetch()) {
        $languageID = $arLanguage["LID"];
        WizardServices::IncludeServiceLang("property_names.php", $languageID);
        $arLabelNames[$languageID] = GetMessage($arProperty["FIELD_NAME"]);
    }
    $arProperty["EDIT_FORM_LABEL"] = $arLabelNames;
    $arProperty["LIST_COLUMN_LABEL"] = $arLabelNames;
    $arProperty["LIST_FILTER_LABEL"] = $arLabelNames;
    $userType = new CUserTypeEntity();
    $success = (bool) $userType->Add($arProperty);
    //edit form customization
    WizardServices::SetUserOption("form", "form_section_" . $iblockID, array("tabs" => "edit1--#--" . GetMessage("iblock_dep_dep") . "--,--ID--#--  ID--,--DATE_CREATE--#--  " . GetMessage("iblock_dep_created") . "--,--TIMESTAMP_X--#--  " . GetMessage("iblock_dep_changed") . "--,--NAME--#--*" . GetMessage("iblock_dep_name") . "--,--IBLOCK_SECTION_ID--#--  " . GetMessage("iblock_dep_parent") . "--,--UF_HEAD--#--  " . GetMessage("iblock_dep_chief") . "--,--PICTURE--#--  " . GetMessage("iblock_dep_pict") . "--,--DESCRIPTION--#--  " . GetMessage("iblock_dep_desc") . "--;--edit2--#--" . GetMessage("iblock_dep_addit") . "--,--ACTIVE--#--  " . GetMessage("iblock_dep_act") . "--,--SORT--#--  " . GetMessage("iblock_dep_sort") . "--,--CODE--#--  " . GetMessage("iblock_dep_code") . "--,--DETAIL_PICTURE--#--  " . GetMessage("iblock_dep_det_pict") . "--,--edit2_csection1--#----" . GetMessage("iblock_dep_userprop") . "--,--USER_FIELDS_ADD--#--  " . GetMessage("iblock_dep_userprop_add") . "--;--"), $common = true);
    //IBlock fields
    $iblock = new CIBlock();
    $arFields = array("CODE" => $iblockCode, "XML_ID" => $iblockCode);
    $iblock->Update($iblockID, $arFields);
} else {
    $arSites = array();
    $db_res = CIBlock::GetSite($iblockID);
    while ($res = $db_res->Fetch()) {
        $arSites[] = $res["LID"];
    }
    if (!in_array(WIZARD_SITE_ID, $arSites)) {
        $arSites[] = WIZARD_SITE_ID;
        $iblock = new CIBlock();
        $iblock->Update($iblockID, array("LID" => $arSites));
    }
예제 #3
0
$iblockXMLFile = WIZARD_SERVICE_RELATIVE_PATH . "/xml/" . LANGUAGE_ID . "/idea.xml";
$iblockCode = "idea_" . WIZARD_SITE_ID;
$iblockType = "services";
$rsIBlock = CIBlock::GetList(array(), array("CODE" => $iblockCode, "TYPE" => $iblockType));
$iblockID = false;
if ($arIBlock = $rsIBlock->Fetch()) {
    $iblockID = $arIBlock["ID"];
}
if ($iblockID == false) {
    $iblockID = WizardServices::ImportIBlockFromXML($iblockXMLFile, 'idea', $iblockType, WIZARD_SITE_ID, $permissions = array("1" => "X", "2" => "R", WIZARD_PORTAL_ADMINISTRATION_GROUP => "X", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "W"));
    if ($iblockID < 1) {
        return;
    }
    //Iblock Section form settings
    $aFormOptions = array('tabs' => "edit1--#--" . GetMessage("IDEA_CATEGORY_EDIT_FORM_TAB_TITLE") . "--,--ID--#--ID--,--ACTIVE--#--" . GetMessage("IDEA_CATEGORY_EDIT_FORM_P_ACTIVE") . "--,--NAME--#--" . GetMessage("IDEA_CATEGORY_EDIT_FORM_P_NAME") . "--,--CODE--#--" . GetMessage("IDEA_CATEGORY_EDIT_FORM_P_CODE") . "--,--IBLOCK_SECTION_ID--#--" . GetMessage("IDEA_CATEGORY_EDIT_FORM_P_IBLOCK_SECTION_ID") . "--,--SORT--#--" . GetMessage("IDEA_CATEGORY_EDIT_FORM_P_SORT") . "--;--");
    WizardServices::SetUserOption("form", "form_section_" . $iblockID, $aFormOptions, $common = true);
    WizardServices::SetIBlockFormSettings($iblockID, $aFormOptions);
    //IBlock fields settings
    $iblock = new CIBlock();
    $arFields = array("ACTIVE" => "Y", "FIELDS" => array("SECTION_CODE" => array("IS_REQUIRED" => "Y", "DEFAULT_VALUE" => array("UNIQUE" => "Y", "TRANSLITERATION" => "Y", "TRANS_LEN" => 50, "TRANS_CASE" => "L", "TRANS_SPACE" => "_", "TRANS_OTHER" => "_", "TRANS_EAT" => "Y", "USE_GOOGLE" => "Y"))), "CODE" => $iblockCode, "XML_ID" => $iblockCode);
    $iblock->Update($iblockID, $arFields);
} else {
    $arSites = array();
    $db_res = CIBlock::GetSite($iblockID);
    while ($res = $db_res->Fetch()) {
        $arSites[] = $res["LID"];
    }
    if (!in_array(WIZARD_SITE_ID, $arSites)) {
        $arSites[] = WIZARD_SITE_ID;
        $iblock = new CIBlock();
        $iblock->Update($iblockID, array("LID" => $arSites));
예제 #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);
}