2##############################################
4# Copyright (c) 2002-2012 Bitrix #
6# mailto:admin@bitrixsoft.com #
7##############################################
9use \Bitrix\Main\Localization\Loc;
10Loc::loadMessages(__FILE__);
11Loc::loadMessages(
$_SERVER[
'DOCUMENT_ROOT'].
BX_ROOT.
'/modules/main/options.php');
16CModule::IncludeModule(
'iblock');
22 Array(
'allow_html', Loc::getMessage(
'WIKI_OPTIONS_ALLOW_HTML'),
'Y', Array(
'checkbox')),
23 Array(
'image_max_width', Loc::getMessage(
'WIKI_OPTIONS_IMAGE_MAX_WIDTH'),
'600', Array(
'text')),
24 Array(
'image_max_height', Loc::getMessage(
'WIKI_OPTIONS_IMAGE_MAX_HEIGHT'),
'600', Array(
'text')),
25 Array(
'note' => Loc::getMessage(
'WIKI_OPTIONS_IMAGE_DESCR'))
30 if(!CModule::IncludeModule(
'forum'))
34 $arForumList = Array();
37 while($arForum=$rsForum->Fetch())
38 $arForumList[$arForum[
'ID']]=$arForum[
'NAME'];
40 $socnet_message_per_page = isset($_POST[
'socnet_message_per_page']) ? $_POST[
'socnet_message_per_page'] : COption::GetOptionString(
'wiki',
'socnet_message_per_page',
'20');
42 $arForumOptions = Array(
43 array(
'socnet_use_review', Loc::getMessage(
'WIKI_OPTIONS_SOCNET_USE_REVIEW'),
'Y', Array(
'checkbox')),
44 array(
'socnet_forum_id', Loc::getMessage(
'WIKI_OPTIONS_SOCNET_FORUM_ID'),
'', Array(
'selectbox', $arForumList)),
45 array(
'socnet_message_per_page', Loc::getMessage(
'WIKI_OPTIONS_SOCNET_MESSAGE_PER_PAGE'), $socnet_message_per_page, Array(
'text')),
46 array(
'socnet_use_captcha', Loc::getMessage(
'WIKI_OPTIONS_SOCNET_USE_CAPTCHA'),
'Y', Array(
'checkbox'))
56 while(
$zr =
$z->Fetch())
78 if(
$option[3][0] ==
'multiselectbox')
80 if (
$name ==
'image_max_width' ||
$name ==
'image_max_height')
98$aTabs[] =
array(
'DIV' =>
'set',
'TAB' => Loc::getMessage(
'MAIN_TAB_SET'),
'ICON' =>
'wiki_settings',
'TITLE' => Loc::getMessage(
'MAIN_TAB_TITLE_SET'));
104 'TAB' => Loc::getMessage(
'WIKI_TAB_SOCNET'),
105 'TITLE' => Loc::getMessage(
'WIKI_TAB_TITLE_SOCNET'),
106 'ICON' =>
'wiki_settings'
109$aTabs[] =
array(
'DIV' =>
'rights',
'TAB' => Loc::getMessage(
'MAIN_TAB_RIGHTS'),
'ICON' =>
'wiki_settings',
'TITLE' => Loc::getMessage(
'MAIN_TAB_TITLE_RIGHTS'));
117table.edit-table td.field-name {
118 width: 40% !important;
121<form method=
"POST" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialcharsbx($mid)?>&lang=<?=LANGUAGE_ID?>" name=
"wiki_settings">
131 __AdmSettingsDrawRow(
'wiki',
array(
'socnet_enable', Loc::getMessage(
'WIKI_OPTIONS_SOCNET_ENABLE'), $socnet_enable, Array(
'checkbox')))
134 <td><?echo Loc::getMessage(
'WIKI_OPTIONS_SOCNET_IBLOCK_ID')?></td>
135 <td><?echo
GetIBlockDropDownList($socnet_iblock_id,
'socnet_iblock_type_id',
'socnet_iblock_id',
false,
'class="adm-detail-iblock-types"',
'class="adm-detail-iblock-list"');?></td>
140 __AdmSettingsDrawList(
'wiki', $arForumOptions);
144<?require_once(
$_SERVER[
'DOCUMENT_ROOT'].
'/bitrix/modules/main/admin/group_rights.php');?>
147function RestoreDefaults()
149 if(confirm(
'<?echo AddSlashes(Loc::getMessage('MAIN_HINT_RESTORE_DEFAULTS_WARNING
'))?>'))
150 window.location =
"<?echo $APPLICATION->GetCurPage()?>?RestoreDefaults=Y&lang=<?echo LANG?>&mid=<?echo rawurlencode($mid)."&
".bitrix_sessid_get();?>";
153<input type=
"submit" name=
"Update" <?
if (
$MOD_RIGHT<
'W') echo
"disabled" ?> value=
"<?echo Loc::getMessage('MAIN_SAVE')?>">
154<input type=
"reset" name=
"reset" value=
"<?echo Loc::getMessage('MAIN_RESET')?>">
155<input type=
"hidden" name=
"Update" value=
"Y">
157<input type=
"button" <?
if (
$MOD_RIGHT<
'W') echo
"disabled" ?>
title=
"<?echo Loc::getMessage('MAIN_HINT_RESTORE_DEFAULTS')?>" OnClick=
"RestoreDefaults();" value=
"<?echo Loc::getMessage('MAIN_RESTORE_DEFAULTS')?>">
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
static GetList($arOrder=Array("SORT"=>"ASC"), $arFilter=Array(), $arAddParams=array())
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
static RemoveOption($module_id, $name="", $site=false)
static SetOptionString($module_id, $name, $value="", $desc=false, $site="")
static EnableSocnet($bActive=false)
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
GetIBlockDropDownList($IBLOCK_ID, $strTypeName, $strIBlockName, $arFilter=false, $strAddType='', $strAddIBlock='')
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
IsModuleInstalled($module_id)
<? endif;?> window document title