10CModule::IncludeModule(
'blog');
14 COption::RemoveOption(
"blog");
16 while(
$zr =
$z->Fetch())
21 array(
"avatar_max_size",
GetMessage(
"BLO_AVATAR_MAX_SIZE"),
"1000000", Array(
"text", 10)),
24 array(
"image_max_width",
GetMessage(
"BLO_IMAGE_MAX_WIDTH"),
"800", Array(
"text", 10)),
25 array(
"image_max_height",
GetMessage(
"BLO_IMAGE_MAX_HEIGHT"),
"1000", Array(
"text", 10)),
26 array(
"image_max_size",
GetMessage(
"BLO_IMAGE_MAX_SIZE"),
"5000000", Array(
"text", 10)),
27 array(
"allow_alias",
GetMessage(
"BLO_ALLOW_ALIAS"),
"Y", Array(
"checkbox")),
28 array(
"block_url_change",
GetMessage(
"BLOG_URL_BLOCK"),
"N", Array(
"checkbox")),
30 array(
"enable_trackback",
GetMessage(
"BLOG_ENABLE_TRACKBACK"),
"Y", Array(
"checkbox")),
31 array(
"allow_video",
GetMessage(
"BLOG_ALLOW_VIDEO"),
"Y", Array(
"checkbox")),
32 array(
"parser_nofollow",
GetMessage(
"BLOG_PARSER_NOFOLLOW"),
"N", Array(
"checkbox")),
33 array(
"use_autosave",
GetMessage(
"BLOG_USE_AUTOSAVE"),
"Y", Array(
"checkbox")),
34 array(
"use_image_perm",
GetMessage(
"BLOG_USE_IMAGE_PERM"),
"N", Array(
"checkbox")),
35 array(
"captcha_choice",
GetMessage(
"BLOG_CAPTCHA_CHOICE"),
"U", Array(
"selectbox"), Array(
"U" =>
GetMessage(
"BLOG_CAPTCHA_CHOICE_U"),
"A" =>
GetMessage(
"BLOG_CAPTCHA_CHOICE_A"),
"D" =>
GetMessage(
"BLOG_CAPTCHA_CHOICE_D"))),
36 array(
"send_blog_ping",
GetMessage(
"BLOG_SEND_BLOG_PING"),
"N", Array(
"checkbox")),
37 array(
"send_blog_ping_address",
GetMessage(
"BLOG_SEND_BLOG_PING_ADDRESS"),
"http://ping.blogs.yandex.ru/RPC2\r\nhttp://rpc.weblogs.com/RPC2", Array(
"textarea", 5, 40)),
38 array(
"post_everyone_max_rights",
GetMessage(
"BLOG_POST_EVERYONE_MAX_RIGHTS"),
"I", Array(
"selectbox"),
$GLOBALS[
"AR_BLOG_PERMS_EVERYONE"]),
39 array(
"comment_everyone_max_rights",
GetMessage(
"BLOG_COMMENT_EVERYONE_MAX_RIGHTS"),
"P", Array(
"selectbox"),
$GLOBALS[
"AR_BLOG_PERMS"]),
40 array(
"post_auth_user_max_rights",
GetMessage(
"BLOG_POST_AUTH_USER_MAX_RIGHTS"),
"I", Array(
"selectbox"),
$GLOBALS[
"AR_BLOG_PERMS"]),
41 array(
"comment_auth_user_max_rights",
GetMessage(
"BLOG_COMMENT_AUTH_USER_MAX_RIGHTS"),
"P", Array(
"selectbox"),
$GLOBALS[
"AR_BLOG_PERMS"]),
42 array(
"post_group_user_max_rights",
GetMessage(
"BLOG_POST_GROUP_USER_MAX_RIGHTS"),
"W", Array(
"selectbox"),
$GLOBALS[
"AR_BLOG_PERMS"]),
43 array(
"comment_group_user_max_rights",
GetMessage(
"BLOG_COMMENT_GROUP_USER_MAX_RIGHTS"),
"W", Array(
"selectbox"),
$GLOBALS[
"AR_BLOG_PERMS"]),
44 array(
"smile_gallery_id",
GetMessage(
"BLOG_OPTIONS_SMILE_GALLERY_ID"), 0, Array(
"selectbox"), CSmileGallery::getListForForm()),
60 $arPathsNullType =
array();
70 $arType =
array(
"B",
"P",
"U",
"G",
"H");
83 foreach($arType as
$type)
87 if (${
"SITE_PATH_".$arSite[
"LID"].
"_".
$type} <>
'')
96 "SITE_ID" => $arSite[
"LID"],
97 "PATH" => ${
"SITE_PATH_".$arSite[
"LID"].
"_".
$type},
105 if(${
"SITE_PATH_".$arSite[
"LID"]} <>
'')
106 ${
"SITE_PATH_".$arSite[
"LID"]} =
"/".trim(str_replace(
"\\",
"/", ${
"SITE_PATH_".$arSite[
"LID"]}),
"/");
107 if (array_key_exists($arSite[
"LID"], $arPathsNullType))
109 if (${
"SITE_PATH_".$arSite[
"LID"]} <>
'')
118 "SITE_ID" => $arSite[
"LID"],
119 "PATH" => ${
"SITE_PATH_".$arSite[
"LID"]}
123 unset($arPathsNullType[$arSite[
"LID"]]);
136 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"BLO_TAB_SET"),
"ICON" =>
"blog_settings",
"TITLE" =>
GetMessage(
"BLO_TAB_SET_ALT")),
137 array(
"DIV" =>
"edit3",
"TAB" =>
GetMessage(
"BLO_SITE_PATH3"),
"ICON" =>
"blog_path",
"TITLE" =>
GetMessage(
"BLO_SITE_PATH3")),
138 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"BLO_TAB_RIGHTS"),
"ICON" =>
"blog_settings",
"TITLE" =>
GetMessage(
"BLO_TAB_RIGHTS_ALT")),
145?><form method=
"POST" action=
"<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialcharsbx($mid)?>&lang=<?=LANGUAGE_ID?>"><?
155 <td valign=
"top" width=
"50%"><?
156 if (
$type[0]==
"checkbox")
157 echo
"<label for=\"".htmlspecialcharsbx(
$Option[0]).
"\">".
$Option[1].
"</label>";
161 <td valign=
"middle" width=
"50%">
162 <?
if(
$type[0]==
"checkbox"):?>
163 <input type=
"checkbox" name=
"<?echo htmlspecialcharsbx($Option[0])?>" id=
"<?echo htmlspecialcharsbx($Option[0])?>" value=
"Y"<?
if(
$val==
"Y")echo
" checked";?>>
165 <input type=
"text" size=
"<?echo $type[1]?>" value=
"<?echo htmlspecialcharsbx($val)?>" name=
"<?echo htmlspecialcharsbx($Option[0])?>">
167 <textarea rows=
"<?echo $type[1]?>" cols=
"<?echo $type[2]?>" name=
"<?echo htmlspecialcharsbx($Option[0])?>"><?echo
htmlspecialcharsbx(
$val)?></textarea>
169 <
select name=
"<?echo htmlspecialcharsbx($Option[0])?>" id=
"<?echo htmlspecialcharsbx($Option[0])?>">
172 ?><option value=
"<?=$v?>"<?
if(
$val==$v)echo
" selected";?>><?=
$k?></option><?
184 <td colspan=
"2"><?=
GetMessage(
"BLO_SITE_PATH2")?></td>
197 <td valign=
"top" colspan=
"2" align=
"center"><?= str_replace(
"#SITE#", $arSite[
"LID"],
GetMessage(
"BLO_SITE_PATH_SITE")) ?>:</td>
200 <td
align=
"center" colspan=
"2">
201 <table cellspacing=
"2" width=
"100%">
204 <td
width=
"50%"><input type=
"text" size=
"40" value=
"<?echo htmlspecialcharsbx($arPaths[$arSite["LID
"]]["B
"])?>" name=
"SITE_PATH_<?= $arSite["LID
"] ?>_B"></td>
208 <td><input type=
"text" size=
"40" value=
"<?echo htmlspecialcharsbx($arPaths[$arSite["LID
"]]["P
"])?>" name=
"SITE_PATH_<?= $arSite["LID
"] ?>_P"></td>
212 <td><input type=
"text" size=
"40" value=
"<?echo htmlspecialcharsbx($arPaths[$arSite["LID
"]]["U
"])?>" name=
"SITE_PATH_<?= $arSite["LID
"] ?>_U"></td>
215 <td
align=
"right"><?=
GetMessage(
"BLO_SITE_PATH_SITE_GROUP_BLOG")?>:</td>
216 <td><input type=
"text" size=
"40" value=
"<?echo htmlspecialcharsbx($arPaths[$arSite["LID
"]]["G
"])?>" name=
"SITE_PATH_<?= $arSite["LID
"] ?>_G"></td>
219 <td
align=
"right"><?=
GetMessage(
"BLO_SITE_PATH_SITE_GROUP_POST")?>:</td>
220 <td><input type=
"text" size=
"40" value=
"<?echo htmlspecialcharsbx($arPaths[$arSite["LID
"]]["H
"])?>" name=
"SITE_PATH_<?= $arSite["LID
"] ?>_H"></td>
229 <td valign=
"top" align=
"center" colspan=
"2"><?=
GetMessage(
"BLO_PATH_EXAMPLE")?>:</td>
232 <td colspan=
"2" align=
"center">
233 <table cellspacing=
"2" width=
"0%">
236 <td>/blog/#blog#/</td>
240 <td>/blog/#blog#/#post_id#.php</td>
244 <td>/blog/user/#user_id#.php</td>
250 <td colspan=
"2"><?=
GetMessage(
"BLO_SITE_PATH")?></td>
261 $dbSites = CSite::GetList(
'',
'', Array(
"ACTIVE" =>
"Y"));
266 <td valign=
"top" width=
"50%">
267 <?= str_replace(
"#SITE#", $arSite[
"LID"],
GetMessage(
"BLO_SITE_PATH_SITE")) ?>:</td>
268 <td valign=
"middle" width=
"50%">
269 <input type=
"text" size=
"40" value=
"<?echo htmlspecialcharsbx($arPaths[$arSite["LID
"]])?>" name=
"SITE_PATH_<?= $arSite["LID
"] ?>">
278 <?require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/main/admin/group_rights.php");?>
281function RestoreDefaults()
283 if (confirm(
'<?echo AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING"))?>'))
284 window.location =
"<?echo $APPLICATION->GetCurPage()?>?RestoreDefaults=Y&lang=<?echo LANG?>&mid=<?echo urlencode($mid)."&
".bitrix_sessid_get();?>";
288<input type=
"submit" <?
if (
$BLOG_RIGHT<
"W") echo
"disabled" ?> name=
"Update" value=
"<?echo GetMessage("MAIN_SAVE
")?>">
289<input type=
"hidden" name=
"Update" value=
"Y">
290<input type=
"reset" name=
"reset" value=
"<?echo GetMessage("MAIN_RESET
")?>">
291<input type=
"button" <?
if (
$BLOG_RIGHT<
"W") echo
"disabled" ?>
title=
"<?echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
")?>" OnClick=
"RestoreDefaults();" value=
"<?echo GetMessage("MAIN_RESTORE_DEFAULTS
")?>">
if($canUseYandexMarket) $strWarning
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
static ShowMessage($message)
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
static GetList($by="sort", $order="asc", $arFilter=[])
static GetList($arOrder=Array("ID"=> "DESC"), $arFilter=Array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
static Update($ID, $arFields)
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)
foreach( $arCellTemplates as $key=> $value) foreach( $arCellTemplates as $key=> $value)
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
BXClearCache($full=false, $initdir='')
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
if(empty($signedUserToken)) $key
$GLOBALS['_____370096793']