<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } if (!CModule::IncludeModule("iblock")) { return; } if (!CModule::IncludeModule("video")) { return; } //if(!WIZARD_IS_RERUN) //{ WizardServices::CopyFile(WIZARD_SERVICE_RELATIVE_PATH . "/public/" . LANGUAGE_ID . "/video", WIZARD_SITE_DIR . "services/video"); $arMenuItem = array(GetMessage("VMENUIT"), WIZARD_SITE_DIR . "services/video/", array(), array(), ""); WizardServices::AddMenuItem(WIZARD_SITE_DIR . "services/.left.menu.php", $arMenuItem, WIZARD_SITE_ID, 11); //} $iblockCode = "video-meeting_" . WIZARD_SITE_ID; $iblockType = "events"; $dbIblockType = CIBlockType::GetList(array(), array("=ID" => $iblockType)); if (!$dbIblockType->Fetch()) { $obBlocktype = new CIBlockType(); $arFields = array("ID" => $iblockType, "SORT" => 500, "IN_RSS" => "N", "SECTIONS" => "Y"); $arFields["LANG"][LANGUAGE_ID] = array("NAME" => GetMessage("VI_IBLOCK_NAME")); $res = $obBlocktype->Add($arFields); } $rsIBlock = CIBlock::GetList(array(), array("XML_ID" => $iblockCode, "TYPE" => $iblockType)); $iblockID = false; if ($arIBlock = $rsIBlock->Fetch()) { $iblockID = $arIBlock["ID"]; }
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } //if (WIZARD_IS_RERUN) //return; if (!CModule::IncludeModule("support")) { return; } WizardServices::CopyFile(WIZARD_SERVICE_RELATIVE_PATH . "/public/" . LANGUAGE_ID . "/support.php", WIZARD_SITE_DIR . "services/support.php"); $arCategories = array(array('NAME' => GetMessage('CATEGORY_CORP_QUESTION'), 'arrSITE' => array(WIZARD_SITE_ID), 'C_TYPE' => 'C', 'C_SORT' => 100, 'EVENT1' => 'ticket'), array('NAME' => GetMessage('CATEGORY_COMPUTER_QUESTION'), 'arrSITE' => array(WIZARD_SITE_ID), 'C_TYPE' => 'C', 'C_SORT' => 100, 'EVENT1' => 'ticket')); $newCategoryID = array(); foreach ($arCategories as $arCategory) { $categoryID = (int) CTicketDictionary::Add($arCategory); $newCategoryID[] = $categoryID; } $dbCategory = CTicketDictionary::GetList($by = "s_id", $order = "asc", array("TYPE" => "C", "TYPE_EXACT_MATCH" => "Y"), $is_filtered); while ($arCategory = $dbCategory->Fetch()) { if (!in_array($arCategory["ID"], $newCategoryID)) { CTicketDictionary::Delete($arCategory["ID"]); } } $APPLICATION->SetGroupRight("support", WIZARD_EMPLOYEES_GROUP, "R"); $APPLICATION->SetGroupRight("support", WIZARD_SUPPORT_GROUP, "W"); COption::SetOptionString("support", "SUPPORT_MAX_FILESIZE", "10000");