Пример #1
0
 protected function getPageParam($sUrlPath, $strParam = "", $arParamKill = array(), $get_index_page = null)
 {
     $strNavQueryString = DeleteParam($arParamKill);
     if ($strNavQueryString != "" && $strParam != "") {
         $strNavQueryString = "&" . $strNavQueryString;
     }
     if ($strNavQueryString == "" && $strParam == "") {
         return $sUrlPath;
     } else {
         return $sUrlPath . "?" . $strParam . $strNavQueryString;
     }
 }
Пример #2
0
    die;
}
extract($_REQUEST, EXTR_SKIP);
IncludeTemplateLangFile($_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/templates/" . SITE_TEMPLATE_ID . "/main/auth/auth_form.php");
$cur_page = $GLOBALS["APPLICATION"]->GetCurPage();
$str = "";
if (defined("AUTH_404")) {
    $page = SITE_DIR . "auth.php";
    $str = "<input type='hidden' name='backurl' value='" . $GLOBALS["APPLICATION"]->GetCurPage() . "'>";
} else {
    $page = $cur_page;
}
ShowMessage($arAuthResult);
?>
<form class="ishop auth" name="bform" method="post" target="_top" action="<?php 
echo $page . (($s = DeleteParam(array("forgot_password"))) == "" ? "?forgot_password=yes" : "?{$s}&forgot_password=yes");
?>
">
	<?php 
echo $str;
?>
	<input type="hidden" name="AUTH_FORM" value="Y">
	<input type="hidden" name="TYPE" value="SEND_PWD">
	<p><font class="text">
	<?php 
echo GetMessage("AUTH_FORGOT_PASSWORD_1");
?>
	</font></p>

	<label><?php 
echo GetMessage("AUTH_LOGIN");
Пример #3
0
	function ShowTabButtons()
	{
		/** @global CMain $APPLICATION */
		global $APPLICATION;

		$s = '';
		if (!$this->bPublicMode)
		{
			if ($this->bShowSettings)
			{
				$link = DeleteParam(array("mode"));
				$link = $APPLICATION->GetCurPage()."?mode=settings".($link <> ""? "&".$link:"");

				$aAdditionalMenu = array();

				$aAdditionalMenu[] = array(
					"TEXT"=>GetMessage("admin_lib_menu_settings"),
					"TITLE"=>GetMessage("admin_lib_context_sett_title"),
					"ONCLICK"=>$this->name.".ShowSettings('".htmlspecialcharsex(CUtil::JSEscape($link))."')",
					"GLOBAL_ICON"=>"adm-menu-setting"
				);

				if($this->bCustomFields)
				{
					if(is_array($_SESSION["ADMIN_CUSTOM_FIELDS"]) && array_key_exists($this->name, $_SESSION["ADMIN_CUSTOM_FIELDS"]))
					{
						$aAdditionalMenu[] = array(
							"TEXT" => GetMessage("admin_lib_sett_sett_enable_text"),
							"TITLE" => GetMessage("admin_lib_sett_sett_enable"),
							"ONCLICK" => $this->name.'.EnableSettings();',
							"ICON" => 'custom-fields-on',
						);
					}
					else
					{
						$aAdditionalMenu[] = array(
							"TEXT" => GetMessage("admin_lib_sett_sett_disable_text"),
							"TITLE" => GetMessage("admin_lib_sett_sett_disable"),
							"ONCLICK" => $this->name.'.DisableSettings();',
							"ICON" => 'custom-fields-off'
						);

					}
				}

				if (count($aAdditionalMenu) > 1)
				{
					$sMenuUrl = "BX.adminShowMenu(this, ".htmlspecialcharsbx(CAdminPopup::PhpToJavaScript($aAdditionalMenu)).", {active_class: 'bx-settings-btn-active'});";
					$bCustomFieldsOff = is_array($_SESSION["ADMIN_CUSTOM_FIELDS"]) && array_key_exists($this->name, $_SESSION["ADMIN_CUSTOM_FIELDS"]);

					$s .= '<span id="'.$this->name.'_settings_btn" class="adm-detail-settings adm-detail-settings-arrow'.($bCustomFieldsOff ? '' : ' adm-detail-settings-active').'" onclick="'.$sMenuUrl.'"></span>';
				}
				else
				{
					$s .= '<a class="adm-detail-settings" href="javascript:void(0)" onclick="'.$aAdditionalMenu[0]['ONCLICK'].'"></a>';

				}
			}
		}

		return $s.parent::ShowTabButtons();
	}
Пример #4
0
// ************************* Input params***************************************************************
$tplID = 'COMMENT_' . $arParams["ENTITY_TYPE"] . '_';
if (LANGUAGE_ID == 'ru') {
    $path = str_replace(array("\\", "//"), "/", __DIR__ . "/ru/script.php");
    include $path;
}
?>
<div class="feed-wrap">
<div class="feed-comments-block">
	<a name="comments"></a>
<?php 
// *************************/Input params***************************************************************
if (!empty($arResult["MESSAGES"])) {
    $arResult["NAV_STRING"] = GetPagePath(false, false);
    if ($arResult["NAV_RESULT"]) {
        $strNavQueryString = htmlspecialcharsbx(DeleteParam(array("PAGEN_" . $arResult["NAV_RESULT"]->NavNum, "SIZEN_" . $arResult["NAV_RESULT"]->NavNum, "SHOWALL_" . $arResult["NAV_RESULT"]->NavNum, "MID", "result", "PHPSESSID", "clear_cache")));
        if (!!$strNavQueryString) {
            $arResult["NAV_STRING"] .= "?" . $strNavQueryString;
        }
    }
    foreach ($arResult["MESSAGES"] as $res) {
        foreach (GetModuleEvents('forum', 'OnCommentDisplay', true) as $arEvent) {
            $arExt = ExecuteModuleEventEx($arEvent, array($res));
            if ($arExt !== null) {
                foreach ($arExt as $arTpl) {
                    $APPLICATION->AddViewContent(implode('_', array($tplID, 'ID', $res['ID'], $arTpl['DISPLAY'])), $arTpl['TEXT'], $arTpl['SORT']);
                }
            }
        }
    }
}
Пример #5
0
         $componentPage = "test";
     } elseif (isset($arVariables["SELF_TEST_ID"]) && intval($arVariables["SELF_TEST_ID"]) > 0) {
         $componentPage = "test.self";
     } elseif (isset($arVariables["TYPE"]) && $arVariables["TYPE"] == "Y") {
         $componentPage = "course.contents";
     } elseif (isset($arVariables["TEST_LIST"]) && $arVariables["TEST_LIST"] == "Y") {
         $componentPage = "test.list";
     } elseif (isset($arVariables["GRADEBOOK"]) && $arVariables["GRADEBOOK"] == "Y") {
         $componentPage = "gradebook";
     } elseif (isset($arVariables["SEARCH"]) && $arVariables["SEARCH"] == "Y") {
         $componentPage = "search";
     } else {
         $componentPage = "course.detail";
     }
     $currentPage = GetPagePath(false, false);
     $queryString = htmlspecialcharsbx(DeleteParam(array_values($arVariableAliases)));
     $currentPage .= "?";
     $arResult = array("FOLDER" => "", "URL_TEMPLATES" => array("course.detail" => $currentPage . $arVariableAliases["COURSE_ID"] . "=#COURSE_ID#&" . $arVariableAliases["INDEX"] . "=Y", "course.contents" => $currentPage . $arVariableAliases["COURSE_ID"] . "=" . $arParams["COURSE_ID"] . "&" . $arVariableAliases["TYPE"] . "=Y", "lesson.detail" => $currentPage . $arVariableAliases["COURSE_ID"] . "=" . $arParams["COURSE_ID"] . "&" . $arVariableAliases["LESSON_ID"] . "=#LESSON_ID#", "chapter.detail" => $currentPage . $arVariableAliases["COURSE_ID"] . "=" . $arParams["COURSE_ID"] . "&" . $arVariableAliases["CHAPTER_ID"] . "=#CHAPTER_ID#", "test" => $currentPage . $arVariableAliases["COURSE_ID"] . "=#COURSE_ID#&" . $arVariableAliases["TEST_ID"] . "=#TEST_ID#", "test.list" => $currentPage . $arVariableAliases["COURSE_ID"] . "=" . $arParams["COURSE_ID"] . "&" . $arVariableAliases["TEST_LIST"] . "=Y", "test.self" => $currentPage . $arVariableAliases["COURSE_ID"] . "=" . $arParams["COURSE_ID"] . "&" . $arVariableAliases["SELF_TEST_ID"] . "=#LESSON_ID#", "gradebook" => $currentPage . $arVariableAliases["COURSE_ID"] . "=" . $arParams["COURSE_ID"] . "&" . $arVariableAliases["GRADEBOOK"] . "=Y", "search" => $currentPage . $arVariableAliases["COURSE_ID"] . "=" . $arParams["COURSE_ID"] . "&" . $arVariableAliases["SEARCH"] . "=Y"), "VARIABLES" => $arVariables, "ALIASES" => $arVariableAliases);
 }
 //Page properties
 $APPLICATION->SetPageProperty("learning_course_contents_url", str_replace("#COURSE_ID#", $arParams["COURSE_ID"], $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["course.contents"]));
 $APPLICATION->SetPageProperty("learning_test_list_url", str_replace("#COURSE_ID#", $arParams["COURSE_ID"], $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["test.list"]));
 $APPLICATION->SetPageProperty("learning_gradebook_url", str_replace("#COURSE_ID#", $arParams["COURSE_ID"], $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["gradebook"]));
 $arSearchURL = parse_url(str_replace("#COURSE_ID#", $arParams["COURSE_ID"], $arResult["FOLDER"] . $arResult["URL_TEMPLATES"]["search"]));
 $APPLICATION->SetPageProperty("learning_search_url", htmlspecialcharsEx($arSearchURL["path"]));
 $searchParams = "";
 if ($arSearchURL["query"]) {
     foreach (explode("&", $arSearchURL["query"]) as $param) {
         list($name, $value) = explode("=", $param);
         $searchParams .= "<input type=\"hidden\" name=\"" . htmlspecialcharsEx($name) . "\" value=\"" . htmlspecialcharsEx($value) . "\" />";
     }
Пример #6
0
 public function GetNavPrint($title, $show_allways = false, $StyleText = "text", $template_path = false, $arDeleteParam = false)
 {
     $res = '';
     $add_anchor = $this->add_anchor;
     $sBegin = GetMessage("nav_begin");
     $sEnd = GetMessage("nav_end");
     $sNext = GetMessage("nav_next");
     $sPrev = GetMessage("nav_prev");
     $sAll = GetMessage("nav_all");
     $sPaged = GetMessage("nav_paged");
     $nPageWindow = $this->nPageWindow;
     if (!$show_allways) {
         if ($this->NavRecordCount == 0 || $this->NavPageCount == 1 && $this->NavShowAll == false) {
             return '';
         }
     }
     $sUrlPath = GetPagePath();
     $arDel = array("PAGEN_" . $this->NavNum, "SIZEN_" . $this->NavNum, "SHOWALL_" . $this->NavNum, "PHPSESSID");
     if (is_array($arDeleteParam)) {
         $arDel = array_merge($arDel, $arDeleteParam);
     }
     $strNavQueryString = DeleteParam($arDel);
     if ($strNavQueryString != "") {
         $strNavQueryString = htmlspecialcharsbx("&" . $strNavQueryString);
     }
     if ($template_path !== false && !file_exists($template_path) && file_exists($_SERVER["DOCUMENT_ROOT"] . $template_path)) {
         $template_path = $_SERVER["DOCUMENT_ROOT"] . $template_path;
     }
     if ($this->bDescPageNumbering === true) {
         if ($this->NavPageNomer + floor($nPageWindow / 2) >= $this->NavPageCount) {
             $nStartPage = $this->NavPageCount;
         } else {
             if ($this->NavPageNomer + floor($nPageWindow / 2) >= $nPageWindow) {
                 $nStartPage = $this->NavPageNomer + floor($nPageWindow / 2);
             } else {
                 if ($this->NavPageCount >= $nPageWindow) {
                     $nStartPage = $nPageWindow;
                 } else {
                     $nStartPage = $this->NavPageCount;
                 }
             }
         }
         if ($nStartPage - $nPageWindow >= 0) {
             $nEndPage = $nStartPage - $nPageWindow + 1;
         } else {
             $nEndPage = 1;
         }
         //echo "nEndPage = $nEndPage; nStartPage = $nStartPage;";
     } else {
         if ($this->NavPageNomer > floor($nPageWindow / 2) + 1 && $this->NavPageCount > $nPageWindow) {
             $nStartPage = $this->NavPageNomer - floor($nPageWindow / 2);
         } else {
             $nStartPage = 1;
         }
         if ($this->NavPageNomer <= $this->NavPageCount - floor($nPageWindow / 2) && $nStartPage + $nPageWindow - 1 <= $this->NavPageCount) {
             $nEndPage = $nStartPage + $nPageWindow - 1;
         } else {
             $nEndPage = $this->NavPageCount;
             if ($nEndPage - $nPageWindow + 1 >= 1) {
                 $nStartPage = $nEndPage - $nPageWindow + 1;
             }
         }
     }
     $this->nStartPage = $nStartPage;
     $this->nEndPage = $nEndPage;
     if ($template_path !== false && file_exists($template_path)) {
         /*
         			$this->bFirstPrintNav - is first tiem call
         			$this->NavPageNomer - number of current page
         			$this->NavPageCount - total page count
         			$this->NavPageSize - page size
         			$this->NavRecordCount - records count
         			$this->bShowAll - show "all" link
         			$this->NavShowAll - is all shown
         			$this->NavNum - number of navigation
         			$this->bDescPageNumbering - reverse paging
         
         			$this->nStartPage - first page in chain
         			$this->nEndPage - last page in chain
         
         			$strNavQueryString - query string
         			$sUrlPath - current url
         
         			Url for link to the page #PAGE_NUMBER#:
         			$sUrlPath.'?PAGEN_'.$this->NavNum.'='.#PAGE_NUMBER#.$strNavQueryString.'#nav_start"'.$add_anchor
         */
         ob_start();
         include $template_path;
         $res = ob_get_contents();
         ob_end_clean();
         $this->bFirstPrintNav = false;
         return $res;
     }
     if ($this->bFirstPrintNav) {
         $res .= '<a name="nav_start' . $add_anchor . '"></a>';
         $this->bFirstPrintNav = false;
     }
     $res .= '<font class="' . $StyleText . '">' . $title . ' ';
     if ($this->bDescPageNumbering === true) {
         $makeweight = $this->NavRecordCount % $this->NavPageSize;
         $NavFirstRecordShow = 0;
         if ($this->NavPageNomer != $this->NavPageCount) {
             $NavFirstRecordShow += $makeweight;
         }
         $NavFirstRecordShow += ($this->NavPageCount - $this->NavPageNomer) * $this->NavPageSize + 1;
         if ($this->NavPageCount == 1) {
             $NavLastRecordShow = $this->NavRecordCount;
         } else {
             $NavLastRecordShow = $makeweight + ($this->NavPageCount - $this->NavPageNomer + 1) * $this->NavPageSize;
         }
         $res .= $NavFirstRecordShow;
         $res .= ' - ' . $NavLastRecordShow;
         $res .= ' ' . GetMessage("nav_of") . ' ';
         $res .= $this->NavRecordCount;
         $res .= "\n<br>\n</font>";
         $res .= '<font class="' . $StyleText . '">';
         if ($this->NavPageNomer < $this->NavPageCount) {
             $res .= '<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . $this->NavPageCount . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sBegin . '</a>&nbsp;|&nbsp;<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . ($this->NavPageNomer + 1) . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sPrev . '</a>';
         } else {
             $res .= $sBegin . '&nbsp;|&nbsp;' . $sPrev;
         }
         $res .= '&nbsp;|&nbsp;';
         $NavRecordGroup = $nStartPage;
         while ($NavRecordGroup >= $nEndPage) {
             $NavRecordGroupPrint = $this->NavPageCount - $NavRecordGroup + 1;
             if ($NavRecordGroup == $this->NavPageNomer) {
                 $res .= '<b>' . $NavRecordGroupPrint . '</b>&nbsp';
             } else {
                 $res .= '<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . $NavRecordGroup . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $NavRecordGroupPrint . '</a>&nbsp;';
             }
             $NavRecordGroup--;
         }
         $res .= '|&nbsp;';
         if ($this->NavPageNomer > 1) {
             $res .= '<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . ($this->NavPageNomer - 1) . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sNext . '</a>&nbsp;|&nbsp;<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=1' . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sEnd . '</a>&nbsp;';
         } else {
             $res .= $sNext . '&nbsp;|&nbsp;' . $sEnd . '&nbsp;';
         }
     } else {
         $res .= ($this->NavPageNomer - 1) * $this->NavPageSize + 1;
         $res .= ' - ';
         if ($this->NavPageNomer != $this->NavPageCount) {
             $res .= $this->NavPageNomer * $this->NavPageSize;
         } else {
             $res .= $this->NavRecordCount;
         }
         $res .= ' ' . GetMessage("nav_of") . ' ';
         $res .= $this->NavRecordCount;
         $res .= "\n<br>\n</font>";
         $res .= '<font class="' . $StyleText . '">';
         if ($this->NavPageNomer > 1) {
             $res .= '<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=1' . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sBegin . '</a>&nbsp;|&nbsp;<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . ($this->NavPageNomer - 1) . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sPrev . '</a>';
         } else {
             $res .= $sBegin . '&nbsp;|&nbsp;' . $sPrev;
         }
         $res .= '&nbsp;|&nbsp;';
         $NavRecordGroup = $nStartPage;
         while ($NavRecordGroup <= $nEndPage) {
             if ($NavRecordGroup == $this->NavPageNomer) {
                 $res .= '<b>' . $NavRecordGroup . '</b>&nbsp';
             } else {
                 $res .= '<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . $NavRecordGroup . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $NavRecordGroup . '</a>&nbsp;';
             }
             $NavRecordGroup++;
         }
         $res .= '|&nbsp;';
         if ($this->NavPageNomer < $this->NavPageCount) {
             $res .= '<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . ($this->NavPageNomer + 1) . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sNext . '</a>&nbsp;|&nbsp;<a href="' . $sUrlPath . '?PAGEN_' . $this->NavNum . '=' . $this->NavPageCount . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sEnd . '</a>&nbsp;';
         } else {
             $res .= $sNext . '&nbsp;|&nbsp;' . $sEnd . '&nbsp;';
         }
     }
     if ($this->bShowAll) {
         $res .= $this->NavShowAll ? '|&nbsp;<a href="' . $sUrlPath . '?SHOWALL_' . $this->NavNum . '=0' . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sPaged . '</a>&nbsp;' : '|&nbsp;<a href="' . $sUrlPath . '?SHOWALL_' . $this->NavNum . '=1' . $strNavQueryString . '#nav_start' . $add_anchor . '">' . $sAll . '</a>&nbsp;';
     }
     $res .= '</font>';
     return $res;
 }
Пример #7
0
new BX.adminLogin({
	form: 'form_auth',
	start_form: '<?php 
echo CUtil::JSEscape($inc_file);
?>
',
	post_data: '<?php 
echo CUtil::JSEscape($post_data);
?>
',
	popup_alignment: 'popup_alignment',
	login_wrapper: 'login_wrapper',
	window_wrapper: 'window_wrapper',
	auth_form_wrapper: 'auth_form_wrapper',
	login_variants: 'login_variants',
	url: '<?echo CUtil::JSEscape($sDocPath.(($s=DeleteParam(array("logout", "login"))) == ""? "":"?".$s));?>'
});
</script>

<div id="login_variants" style="display: none;">
<?
require('authorize.php');
require('forgot_password.php');
require('change_password.php');
?>

</div>
<?
if ($arAuthResult)
{
	$bOnHit = true;
Пример #8
0
}
foreach ($GLOBALS['_____499363063'][43](___2022025961(595), ___2022025961(596), true) as $_1738617497) {
    ExecuteModuleEventEx($_1738617497);
}
if ((!$GLOBALS['____1709102065'][145](___2022025961(597)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____1709102065'][146](___2022025961(598)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
    $_375381832 = $_1018275010->getScriptFile();
    if (!$GLOBALS[___2022025961(599)]->CanDoFileOperation(___2022025961(600), array(SITE_ID, $_375381832)) || $GLOBALS['____1709102065'][147](___2022025961(601)) && NEED_AUTH && !$GLOBALS[___2022025961(602)]->{$GLOBALS}['_____499363063'][44]()) {
        if ($GLOBALS[___2022025961(603)]->{$GLOBALS}['_____499363063'][45]() && $_1491456351[___2022025961(604)] == ___2022025961(605)) {
            $_1491456351 = array(___2022025961(606) => GetMessage(___2022025961(607)) . ___2022025961(608) . GetMessage(___2022025961(609), array(___2022025961(610) => $_375381832)), ___2022025961(611) => ___2022025961(612));
        }
        if ($GLOBALS['____1709102065'][148](___2022025961(613)) && ADMIN_SECTION == true) {
            if ($_REQUEST[___2022025961(614)] == ___2022025961(615) || $_REQUEST[___2022025961(616)] == ___2022025961(617)) {
                echo ___2022025961(618) . $GLOBALS[___2022025961(619)]->{$GLOBALS}['_____499363063'][46]() . ___2022025961(620) . DeleteParam(array(___2022025961(621))) . ___2022025961(622);
                die;
            } elseif ($_REQUEST[___2022025961(623)] == ___2022025961(624)) {
                echo ___2022025961(625) . $GLOBALS[___2022025961(626)]->{$GLOBALS}['_____499363063'][47]() . ___2022025961(627) . DeleteParam(array(___2022025961(628))) . ___2022025961(629);
                die;
            } elseif ($GLOBALS['____1709102065'][149](___2022025961(630)) && MOBILE_APP_ADMIN == true) {
                echo $GLOBALS['____1709102065'][150](array(___2022025961(631) => ___2022025961(632)));
                die;
            }
        }
        $GLOBALS[___2022025961(633)]->AuthForm($_1491456351);
    }
}
while (!$GLOBALS['____1709102065'][151](___2022025961(634)) || $GLOBALS['____1709102065'][152](OLDSITEEXPIREDATE) <= 958 - 2 * 479 || OLDSITEEXPIREDATE != SITEEXPIREDATE) {
    die(GetMessage(___2022025961(635)));
}
if (isset($_1431840146) && $_1431840146 == round(0 + 404)) {
    if (COption::$GLOBALS['_____499363063'][48](___2022025961(636), ___2022025961(637), ___2022025961(638)) == ___2022025961(639)) {
        CHTTP::SetStatus(___2022025961(640));
Пример #9
0
        echo SITE_DIR . "auth.php?register=yes";
        ?>
" class="smalltext"><?php 
        echo GetMessage("AUTH_REGISTER");
        ?>
</a><br></td>
		</tr>
		<?php 
    }
    ?>
	</table><br>
<?php 
} else {
    ?>
<form action="?logout=yes<?php 
    echo htmlspecialcharsbx(($s = DeleteParam(array("logout", "login"))) == "" ? "" : "&" . $s);
    ?>
">
<div align="center" class="smalltext" style="padding-bottom: 2 px;"><?php 
    echo htmlspecialcharsbx($USER->GetFullName());
    ?>
<br>[<?php 
    echo htmlspecialcharsbx($USER->GetLogin());
    ?>
]<br>
<?php 
    foreach ($_GET as $vname => $vvalue) {
        ?>
<input type="hidden" name="<?php 
        echo htmlspecialcharsbx($vname);
        ?>
Пример #10
0
}
\Bitrix\Main\Page\Frame::shouldBeEnabled();
foreach ($GLOBALS['_____1480315984'][40](___1325703887(527), ___1325703887(528), true) as $_473584920) {
    ExecuteModuleEventEx($_473584920);
}
if ((!$GLOBALS['____291210897'][94](___1325703887(529)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____291210897'][95](___1325703887(530)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
    $_1318012940 = $_1413785542->getScriptFile();
    if (!$GLOBALS[___1325703887(531)]->CanDoFileOperation(___1325703887(532), array(SITE_ID, $_1318012940)) || $GLOBALS['____291210897'][96](___1325703887(533)) && NEED_AUTH && !$GLOBALS[___1325703887(534)]->{$GLOBALS}['_____1480315984'][41]()) {
        if ($GLOBALS[___1325703887(535)]->{$GLOBALS}['_____1480315984'][42]() && $_1118187698[___1325703887(536)] == ___1325703887(537)) {
            $_1118187698 = array(___1325703887(538) => GetMessage(___1325703887(539)) . ___1325703887(540) . GetMessage(___1325703887(541), array(___1325703887(542) => $_1318012940)), ___1325703887(543) => ___1325703887(544));
        }
        if ($GLOBALS['____291210897'][97](___1325703887(545)) && ADMIN_SECTION == true) {
            if ($_REQUEST[___1325703887(546)] == ___1325703887(547) || $_REQUEST[___1325703887(548)] == ___1325703887(549)) {
                echo ___1325703887(550) . $GLOBALS[___1325703887(551)]->{$GLOBALS}['_____1480315984'][43]() . ___1325703887(552) . DeleteParam(array(___1325703887(553))) . ___1325703887(554);
                die;
            } elseif ($_REQUEST[___1325703887(555)] == ___1325703887(556)) {
                echo ___1325703887(557) . $GLOBALS[___1325703887(558)]->{$GLOBALS}['_____1480315984'][44]() . ___1325703887(559) . DeleteParam(array(___1325703887(560))) . ___1325703887(561);
                die;
            } elseif ($GLOBALS['____291210897'][98](___1325703887(562)) && MOBILE_APP_ADMIN == true) {
                echo $GLOBALS['____291210897'][99](array(___1325703887(563) => ___1325703887(564)));
                die;
            }
        }
        $GLOBALS[___1325703887(565)]->AuthForm($_1118187698);
    }
}
if (isset($_1863584006) && $_1863584006 == round(0 + 202 + 202)) {
    if (COption::$GLOBALS['_____1480315984'][45](___1325703887(566), ___1325703887(567), ___1325703887(568)) == ___1325703887(569)) {
        CHTTP::SetStatus(___1325703887(570));
    }
}
Пример #11
0
}
\Bitrix\Main\Page\Frame::shouldBeEnabled();
foreach ($GLOBALS['_____451545984'][40](___253155201(527), ___253155201(528), true) as $_1409658889) {
    ExecuteModuleEventEx($_1409658889);
}
if ((!$GLOBALS['____891427501'][94](___253155201(529)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____891427501'][95](___253155201(530)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
    $_127164535 = $_186062723->getScriptFile();
    if (!$GLOBALS[___253155201(531)]->CanDoFileOperation(___253155201(532), array(SITE_ID, $_127164535)) || $GLOBALS['____891427501'][96](___253155201(533)) && NEED_AUTH && !$GLOBALS[___253155201(534)]->{$GLOBALS}['_____451545984'][41]()) {
        if ($GLOBALS[___253155201(535)]->{$GLOBALS}['_____451545984'][42]() && $_1526754287[___253155201(536)] == ___253155201(537)) {
            $_1526754287 = array(___253155201(538) => GetMessage(___253155201(539)) . ___253155201(540) . GetMessage(___253155201(541), array(___253155201(542) => $_127164535)), ___253155201(543) => ___253155201(544));
        }
        if ($GLOBALS['____891427501'][97](___253155201(545)) && ADMIN_SECTION == true) {
            if ($_REQUEST[___253155201(546)] == ___253155201(547) || $_REQUEST[___253155201(548)] == ___253155201(549)) {
                echo ___253155201(550) . $GLOBALS[___253155201(551)]->{$GLOBALS}['_____451545984'][43]() . ___253155201(552) . DeleteParam(array(___253155201(553))) . ___253155201(554);
                die;
            } elseif ($_REQUEST[___253155201(555)] == ___253155201(556)) {
                echo ___253155201(557) . $GLOBALS[___253155201(558)]->{$GLOBALS}['_____451545984'][44]() . ___253155201(559) . DeleteParam(array(___253155201(560))) . ___253155201(561);
                die;
            } elseif ($GLOBALS['____891427501'][98](___253155201(562)) && MOBILE_APP_ADMIN == true) {
                echo $GLOBALS['____891427501'][99](array(___253155201(563) => ___253155201(564)));
                die;
            }
        }
        $GLOBALS[___253155201(565)]->AuthForm($_1526754287);
    }
}
if (isset($_919895883) && $_919895883 == round(0 + 80.8 + 80.8 + 80.8 + 80.8 + 80.8)) {
    if (COption::$GLOBALS['_____451545984'][45](___253155201(566), ___253155201(567), ___253155201(568)) == ___253155201(569)) {
        CHTTP::SetStatus(___253155201(570));
    }
}
Пример #12
0
    die;
}
extract($_REQUEST, EXTR_SKIP);
IncludeTemplateLangFile($_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/templates/" . SITE_TEMPLATE_ID . "/main/auth/auth_form.php");
$cur_page = $GLOBALS["APPLICATION"]->GetCurPage();
$str = "";
if (defined("AUTH_404")) {
    $page = SITE_DIR . "auth.php";
    $str = "<input type='hidden' name='backurl' value='" . $GLOBALS["APPLICATION"]->GetCurPage() . "'>";
} else {
    $page = $cur_page;
}
ShowMessage($arAuthResult);
?>
<form method="POST" action="<?php 
echo htmlspecialcharsbx($page) . (($s = DeleteParam(array("register"))) == "" ? "?register=yes" : "?{$s}&register=yes");
?>
" name="bform">
<?php 
echo $str;
?>
<input type="hidden" name="AUTH_FORM" value="Y">
<input type="hidden" name="TYPE" value="REGISTRATION">
<table border="0" cellspacing="0" cellpadding="1" class="tableborder">
	<tr> 
		<td> 
			<table border="0" cellspacing="0" cellpadding="4" class="tablebody">
				<tr> 
					<td width="100%" valign="middle" colspan="2" class="tablebody"> 
						<table width="100%%" border="0" cellpadding="3" cellspacing="0">
							<tr> 
Пример #13
0
}
\Bitrix\Main\Page\Frame::shouldBeEnabled();
foreach ($GLOBALS['_____967299403'][40](___1901741453(527), ___1901741453(528), true) as $_146569225) {
    ExecuteModuleEventEx($_146569225);
}
if ((!$GLOBALS['____1514955144'][94](___1901741453(529)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____1514955144'][95](___1901741453(530)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
    $_1165444354 = $_1279707948->getScriptFile();
    if (!$GLOBALS[___1901741453(531)]->CanDoFileOperation(___1901741453(532), array(SITE_ID, $_1165444354)) || $GLOBALS['____1514955144'][96](___1901741453(533)) && NEED_AUTH && !$GLOBALS[___1901741453(534)]->{$GLOBALS}['_____967299403'][41]()) {
        if ($GLOBALS[___1901741453(535)]->{$GLOBALS}['_____967299403'][42]() && $_661475589[___1901741453(536)] == ___1901741453(537)) {
            $_661475589 = array(___1901741453(538) => GetMessage(___1901741453(539)) . ___1901741453(540) . GetMessage(___1901741453(541), array(___1901741453(542) => $_1165444354)), ___1901741453(543) => ___1901741453(544));
        }
        if ($GLOBALS['____1514955144'][97](___1901741453(545)) && ADMIN_SECTION == true) {
            if ($_REQUEST[___1901741453(546)] == ___1901741453(547) || $_REQUEST[___1901741453(548)] == ___1901741453(549)) {
                echo ___1901741453(550) . $GLOBALS[___1901741453(551)]->{$GLOBALS}['_____967299403'][43]() . ___1901741453(552) . DeleteParam(array(___1901741453(553))) . ___1901741453(554);
                die;
            } elseif ($_REQUEST[___1901741453(555)] == ___1901741453(556)) {
                echo ___1901741453(557) . $GLOBALS[___1901741453(558)]->{$GLOBALS}['_____967299403'][44]() . ___1901741453(559) . DeleteParam(array(___1901741453(560))) . ___1901741453(561);
                die;
            } elseif ($GLOBALS['____1514955144'][98](___1901741453(562)) && MOBILE_APP_ADMIN == true) {
                echo $GLOBALS['____1514955144'][99](array(___1901741453(563) => ___1901741453(564)));
                die;
            }
        }
        $GLOBALS[___1901741453(565)]->AuthForm($_661475589);
    }
}
if (isset($_428137582) && $_428137582 == round(0 + 134.66666666667 + 134.66666666667 + 134.66666666667)) {
    if (COption::$GLOBALS['_____967299403'][45](___1901741453(566), ___1901741453(567), ___1901741453(568)) == ___1901741453(569)) {
        CHTTP::SetStatus(___1901741453(570));
    }
}
Пример #14
0
        echo $USER->GetID();
        ?>
" class="adm-header-user-block" id="bx-panel-user"><?php 
        echo $USER->GetFormattedName();
        ?>
</a><?php 
    } else {
        ?>
<span class="adm-header-user-block" id="bx-panel-user"><?php 
        echo htmlspecialcharsbx($USER->GetFullName()) . ' (' . htmlspecialcharsbx($USER->GetLogin());
        ?>
</span><?php 
    }
    ?>
<a hidefocus="true" href="<?php 
    echo htmlspecialcharsbx(defined('BX_ADMIN_SECTION_404') && BX_ADMIN_SECTION_404 == 'Y' ? '/bitrix/admin/' : $APPLICATION->GetCurPage()) . '?logout=yes' . htmlspecialcharsbx(($s = DeleteParam(array("logout"))) == "" ? "" : "&" . $s);
    ?>
" class="adm-header-exit" id="bx-panel-logout" title="<?php 
    echo GetMessage('admin_panel_logout_title');
    ?>
"><?php 
    echo GetMessage("admin_panel_logout");
    ?>
</a><?php 
    $Execs = $hkInstance->GetCodeByClassName("bx-panel-logout", GetMessage('admin_panel_logout'));
    echo $hkInstance->PrintJSExecs($Execs);
}
_showTopPanelButtonsSection($arPanelButtons, $hkInstance, 1);
if ($USER->IsAuthorized()) {
    if ($hkInstance->IsActive()) {
        ?>
Пример #15
0
		$arParams[strToUpper($URL)."_TEMPLATE"] = htmlspecialcharsbx($arParams["~".strToUpper($URL)."_TEMPLATE"]);
	endforeach;
/************** CACHE **********************************************/
	if ($arParams["CACHE_TYPE"] == "Y" || ($arParams["CACHE_TYPE"] == "A" && COption::GetOptionString("main", "component_cache_on", "Y") == "Y"))
		$arParams["CACHE_TIME"] = intval($arParams["CACHE_TIME"]);
	else
		$arParams["CACHE_TIME"] = 0;

	$arParams["ADDITIONAL_CACHE_ID"] = (isset($arParams["ADDITIONAL_CACHE_ID"]) && strlen($arParams["ADDITIONAL_CACHE_ID"]) > 0 ?
		$arParams["ADDITIONAL_CACHE_ID"] : $USER->GetGroups());
/********************************************************************
				/Input params
********************************************************************/
if ($GLOBALS["VOTING_OK"] == "Y"  && ($GLOBALS["VOTING_ID"] == $arParams["VOTE_ID"]))
{
	$strNavQueryString = DeleteParam(array("VOTE_ID", "VOTING_OK", "VOTE_SUCCESSFULL", "view_result", "view_form"));
	$strNavQueryString = ($strNavQueryString <> "" ? "&" : "").$strNavQueryString;
	$delimiter = (strpos($arParams["VOTE_RESULT_TEMPLATE"], "?") === false) ? "?":"&";
	if (strpos($arParams["VOTE_RESULT_TEMPLATE"], "#VOTE_ID#") === false)
	{
		$arParams["VOTE_RESULT_TEMPLATE"] .= $delimiter."VOTE_ID=".$_REQUEST["VOTE_ID"];
		$url = CComponentEngine::MakePathFromTemplate(
			$arParams["VOTE_RESULT_TEMPLATE"]."&VOTE_SUCCESSFULL=Y".$strNavQueryString);
	}
	else
	{
		$url = CComponentEngine::MakePathFromTemplate(
			$arParams["VOTE_RESULT_TEMPLATE"].$delimiter."VOTE_SUCCESSFULL=Y".$strNavQueryString,
			array("VOTE_ID" => $arParams["VOTE_ID"]));
	}
	LocalRedirect($url);
Пример #16
0
    die;
}
extract($_REQUEST, EXTR_SKIP);
IncludeTemplateLangFile($_SERVER["DOCUMENT_ROOT"] . BX_PERSONAL_ROOT . "/templates/" . SITE_TEMPLATE_ID . "/main/auth/auth_form.php");
$cur_page = $GLOBALS["APPLICATION"]->GetCurPage();
$str = "";
if (defined("AUTH_404")) {
    $page = SITE_DIR . "auth.php";
    $str = "<input type='hidden' name='backurl' value='" . $GLOBALS["APPLICATION"]->GetCurPage() . "'>";
} else {
    $page = $cur_page;
}
ShowMessage($arAuthResult);
?>
<form class="ishop auth" method="POST" action="<?php 
echo $page . (($s = DeleteParam(array("change_password"))) == "" ? "?change_password=yes" : "?{$s}&change_password=yes");
?>
" name="bform">
<?php 
echo $str;
?>
<input type="hidden" name="AUTH_FORM" value="Y">
<input type="hidden" name="TYPE" value="CHANGE_PWD">

	<label><?php 
echo GetMessage("AUTH_LOGIN");
?>
<font class="starrequired">*</font></label>
	<input type="text" name="USER_LOGIN" size="30" maxlength="50" value="<?php 
echo strlen($USER_LOGIN) > 0 ? htmlspecialcharsbx($USER_LOGIN) : htmlspecialcharsbx($last_login);
?>
Пример #17
0
</div>
<?

if(defined('NO_LANG_FILES') || (defined('FX_PUBLIC_MODE') && FX_PUBLIC_MODE == true)) 
	return;

?>
<form method="<?php 
echo $_SERVER["REQUEST_METHOD"];
?>
" 
	action="<?
		echo $APPLICATION->GetCurPage();
		if($_SERVER["REQUEST_METHOD"]=="POST")
		{
			$s = DeleteParam(array("srchlngfil", "srchlngfilb"));
			if(strlen($s)>0) echo "?".$s;
		}
		?>"
>
	<?
	if($_SERVER["REQUEST_METHOD"]=="POST")
		$v = $_POST;
	else
		$v = $_GET;
	?>
	<?
	foreach($v as $vname=>$vvalue):
		if($vname=="srchlngfilb" || $vname=="srchlngfil") continue;
	?>
	<input type="hidden" name="<?echo htmlspecialcharsbx($vname)?>" value="<?echo htmlspecialcharsbx($vvalue)?>">
Пример #18
0
}
if ((!$GLOBALS['____787902325'][135](___1149546406(560)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____787902325'][136](___1149546406(561)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
    $_1021365968 = $GLOBALS[___1149546406(562)]->{$GLOBALS}['_____296732968'][42](true);
    if (isset($_SERVER[___1149546406(563)]) && $_SERVER[___1149546406(564)] != ___1149546406(565)) {
        $_1021365968 = $_SERVER[___1149546406(566)];
    }
    if (!$GLOBALS[___1149546406(567)]->CanDoFileOperation(___1149546406(568), array(SITE_ID, $_1021365968)) || $GLOBALS['____787902325'][137](___1149546406(569)) && NEED_AUTH && !$GLOBALS[___1149546406(570)]->{$GLOBALS}['_____296732968'][43]()) {
        if ($GLOBALS[___1149546406(571)]->{$GLOBALS}['_____296732968'][44]() && $_1155945949[___1149546406(572)] == ___1149546406(573)) {
            $_1155945949 = array(___1149546406(574) => GetMessage(___1149546406(575)) . ___1149546406(576) . GetMessage(___1149546406(577), array(___1149546406(578) => $_1021365968)), ___1149546406(579) => ___1149546406(580));
        }
        if ($GLOBALS['____787902325'][138](___1149546406(581)) && ADMIN_SECTION == true) {
            if ($_REQUEST[___1149546406(582)] == ___1149546406(583) || $_REQUEST[___1149546406(584)] == ___1149546406(585)) {
                echo ___1149546406(586) . $GLOBALS[___1149546406(587)]->{$GLOBALS}['_____296732968'][45]() . ___1149546406(588) . DeleteParam(array(___1149546406(589))) . ___1149546406(590);
                die;
            } elseif ($_REQUEST[___1149546406(591)] == ___1149546406(592)) {
                echo ___1149546406(593) . $GLOBALS[___1149546406(594)]->{$GLOBALS}['_____296732968'][46]() . ___1149546406(595) . DeleteParam(array(___1149546406(596))) . ___1149546406(597);
                die;
            } elseif ($GLOBALS['____787902325'][139](___1149546406(598)) && MOBILE_APP_ADMIN == true) {
                echo $GLOBALS['____787902325'][140](array(___1149546406(599) => ___1149546406(600)));
                die;
            }
        }
        $GLOBALS[___1149546406(601)]->AuthForm($_1155945949);
    }
}
while (!$GLOBALS['____787902325'][141](___1149546406(602)) || $GLOBALS['____787902325'][142](OLDSITEEXPIREDATE) <= 250 * 2 - 500 || OLDSITEEXPIREDATE != SITEEXPIREDATE) {
    die(GetMessage(___1149546406(603)));
}
if (isset($_579537375) && $_579537375 == round(0 + 134.66666666667 + 134.66666666667 + 134.66666666667)) {
    if (COption::$GLOBALS['_____296732968'][47](___1149546406(604), ___1149546406(605), ___1149546406(606)) == ___1149546406(607)) {
        CHTTP::SetStatus(___1149546406(608));
Пример #19
0
$aMenu[] = array(
	"TEXT" => GetMessage("SOD_TO_PRINT"),
	"LINK" => "/bitrix/admin/sale_order_print.php?ID=".$ID."&lang=".LANGUAGE_ID.GetFilterParams("filter_"),
);

if (!$boolLocked && ($saleModulePermissions == "W" || $arOrder["PAYED"] != "Y" && $bUserCanDeleteOrder))
{
	$aMenu[] = array(
		"TEXT" => GetMessage("SODN_CONFIRM_DEL"),
		"LINK" => "javascript:if(confirm('".GetMessageJS("SODN_CONFIRM_DEL_MESSAGE")."')) window.location='sale_order.php?ID=".$ID."&action=delete&lang=".LANGUAGE_ID."&".bitrix_sessid_get().urlencode(GetFilterParams("filter_"))."'",
		"WARNING" => "Y",
		"ICON"=>"btn_delete",
	);
}

$link = DeleteParam(array("mode"));
$link = $APPLICATION->GetCurPage()."?mode=settings".($link <> ""? "&".$link:"");

$context = new CAdminContextMenu($aMenu);
$context->Show();

if ($boolLocked)
{
	CAdminMessage::ShowMessage(array(
		'MESSAGE' => $strLockUserInfoExt,
		'TYPE' => 'ERROR',
		'HTML' => true
	));
}

CAdminMessage::ShowMessage($errorMessage);
Пример #20
0
 function GetCurPageParam($strParam = "", $arParamKill = array(), $get_index_page = null)
 {
     $sUrlPath = $this->GetCurPage($get_index_page);
     $strNavQueryString = DeleteParam($arParamKill);
     if ($strNavQueryString != "" && $strParam != "") {
         $strNavQueryString = "&" . $strNavQueryString;
     }
     if ($strNavQueryString == "" && $strParam == "") {
         return $sUrlPath;
     } else {
         return $sUrlPath . "?" . $strParam . $strNavQueryString;
     }
 }
Пример #21
0
	if (isset($_GET["SEF_APPLICATION_CUR_PAGE_URL"])
		&& (
			isset($_SERVER['REDIRECT_STATUS']) && $_SERVER['REDIRECT_STATUS'] == '404'
			|| ($requestUriWithoutParams != "/bitrix/urlrewrite.php")
		)
	)
	{
		$url = $requestUri = $_SERVER["REQUEST_URI"] = $REQUEST_URI = "";
		$_GET = array();
		$_REQUEST = array();
		$_SERVER["QUERY_STRING"] = $QUERY_STRING = "";
	}

	$HTTP_GET_VARS = $_GET;
	$sUrlPath = GetPagePath();
	$strNavQueryString = DeleteParam(array("SEF_APPLICATION_CUR_PAGE_URL"));
	if($strNavQueryString != "")
		$sUrlPath = $sUrlPath."?".$strNavQueryString;
	// define("POST_FORM_ACTION_URI", htmlspecialcharsbx("/bitrix/urlrewrite.php?SEF_APPLICATION_CUR_PAGE_URL=".urlencode($sUrlPath)));
}

if (!CHTTP::isPathTraversalUri($_SERVER["REQUEST_URI"]))
{
	foreach($arUrlRewrite as $val)
	{
		if(preg_match($val["CONDITION"], $requestUri))
		{
			if (strlen($val["RULE"]) > 0)
				$url = preg_replace($val["CONDITION"], (strlen($val["PATH"]) > 0 ? $val["PATH"]."?" : "").$val["RULE"], $requestUri);
			else
				$url = $val["PATH"];
Пример #22
0
    public static function BuildDialogContent($site)
    {
        global $APPLICATION;
        $actUri = $APPLICATION->GetCurPage() . "?search=Y&ssess=" . CFilemanSearch::GetSearchSess();
        $s = DeleteParam(array('search', 'ssess'));
        if ($s != '') {
            $actUri .= '&' . $s;
        }
        $defMask = COption::GetOptionString("fileman", "search_mask", "*.php");
        // Search dialog
        $aTabs[] = array("DIV" => "bx_fm_tab_search", "TAB" => GetMessage("FM_UTIL_FIND"), "ICON" => "", "TITLE" => GetMessage("FM_UTIL_FIND_TITLE"), "ONSELECT" => "window.oFMSearch.SetTab('search');");
        $aTabs[] = array("DIV" => "bx_fm_tab_replace", "TAB" => GetMessage("FM_UTIL_REPLACE"), "ICON" => "", "TITLE" => GetMessage("FM_UTIL_REPLACE_TITLE"), "ONSELECT" => "window.oFMSearch.SetTab('replace');");
        $searchTabControl = new CAdmintabControl("searchTabControl", $aTabs, false, true);
        $searchTabControl->SetPublicMode('oSearchDialog');
        $searchTabControl->Begin();
        ?>
		<?php 
        $searchTabControl->BeginNextTab();
        ?>
		<tr><td>
		<div id="bx_search_cont" class="bxfm-search-cont"><form name="bx_search_form" action="<?php 
        echo $actUri;
        ?>
" method="POST">
		<table  id="bx_fms_tbl" class="bxfm-d-params bxfm-d-params-add-hide">
			<tr id="bx_search_in_res_tr">
				<td class="bxfm-d-label"><input  id="bx_search_in_res" type="checkbox" value="Y" checked="checked" /></td>
				<td class="bxfm-d-value"><label for="bx_search_in_res" style="font-weight: bold;"><?php 
        echo GetMessage("FM_UTIL_IN_SEARCH_RESULT");
        ?>
</label></td>
			</tr>
			<tr title='<?php 
        echo GetMessage("FM_UTIL_FILE_NAME_TITLE");
        ?>
'>
				<td class="bxfm-d-label"><label for="bx_search_file"><?php 
        echo GetMessage("FM_UTIL_FILE_NAME");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_search_file" name="bx_search_file" value="<?php 
        echo $defMask;
        ?>
" style="width: 220px;" type="text"/></td>
			</tr>
			<tr title="<?php 
        echo GetMessage("FM_UTIL_PHRASE_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_phrase"><?php 
        echo GetMessage("FM_UTIL_PHRASE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_search_phrase" name="bx_search_phrase" value="" style="width: 220px;" type="text"/></td>
			</tr>
			<tr class="bxfm-d-only-replace" title="<?php 
        echo GetMessage("FM_UTIL_REPLACE_INP_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_replace_phrase"><?php 
        echo GetMessage("FM_UTIL_REPLACE_INP");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_replace_phrase" name="bx_replace_phrase" value=""  style="width: 220px;" type="text"/></td>
			</tr>

			<tr title="<?php 
        echo GetMessage("FM_UTIL_DIR_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_dir"><?php 
        echo GetMessage("FM_UTIL_DIR");
        ?>
:</label></td>
				<td class="bxfm-d-value"><input id="bx_search_dir" name="bx_search_dir" value="" style="width: 220px;" type="text"/> <input id="bx_search_fd_but" type="button" value="..." title="<?php 
        echo GetMessage('FD_OPEN_DIR');
        ?>
" onclick="FMFD_SearchDirOpen(true, {site: window.oFMSearch.oSiteSel.value, path: window.oFMSearch.pSearchDir.value});" /><span class="bxfm-site-sel" id="bx_search_site_sel"></span></td>
			</tr>
			<tr>
				<td class="bxfm-d-label"><label for="bx_search_subdir"><?php 
        echo GetMessage("FM_UTIL_INCLUDE_SUBFOLDER");
        ?>
</label></td>
				<td class="bxfm-d-value"><input id="bx_search_subdir" name="bx_search_subdir" type="checkbox" value="Y" checked="checked" /></td>
			</tr>
			<tr class="bxfm-d-title">
				<td colSpan="2">
				<a class="bxfm-add-link" id="bx_fms_add_lnk" href="javascript: void(0);"><?php 
        echo GetMessage("FM_UTIL_ADDITIONAL");
        ?>
 <span class="bxfm-d-span-hide">(<?php 
        echo GetMessage("FM_UTIL_HIDE");
        ?>
)</span></a>
				</td>
			</tr>
			<tr class="bxfm-add-hide" title="<?php 
        echo GetMessage("FM_UTIL_DATE_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_date_sel"><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
:</label></td>
				<td class="bxfm-d-value">
					<select id="bx_search_date_sel" name="bx_search_date_sel">
						<option value=""> - <?php 
        echo GetMessage("FM_UTIL_NO_VAL");
        ?>
 - </option>
						<option value="day"><?php 
        echo GetMessage("FM_UTIL_DAY");
        ?>
</option>
						<option value="week"><?php 
        echo GetMessage("FM_UTIL_WEEK");
        ?>
</option>
						<option value="month"><?php 
        echo GetMessage("FM_UTIL_MONTH");
        ?>
</option>
						<option value="year"><?php 
        echo GetMessage("FM_UTIL_YEAR");
        ?>
</option>
						<option value="set"><?php 
        echo GetMessage("FM_UTIL_SET_EXACTLY");
        ?>
</option>
					</select>
					<div id="bx_search_date_div" class="bxfm-d-adjust-div">
					<?php 
        echo GetMessage("FM_UTIL_FROM");
        ?>
: <input name="bx_search_date_from" id="bx_search_date_from" value="" style="width: 90px;" type="text"/><?php 
        echo CAdminCalendar::Calendar("bx_search_date_from", "bx_search_form");
        ?>
					<?php 
        echo GetMessage("FM_UTIL_TO");
        ?>
: <input name="bx_search_date_to" id="bx_search_date_to" value="" style="width: 90px;" type="text"/><?php 
        echo CAdminCalendar::Calendar("bx_search_date_to", "bx_search_form");
        ?>
					</div>
				</td>
			</tr>
			<tr class="bxfm-add-hide" title="<?php 
        echo GetMessage("FM_UTIL_SIZE_TITLE");
        ?>
">
				<td class="bxfm-d-label"><label for="bx_search_size_sel"><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
:</label></td>
				<td class="bxfm-d-value">
				<select id="bx_search_size_sel" name="bx_search_size_sel">
					<option value=""> - <?php 
        echo GetMessage("FM_UTIL_NO_VAL");
        ?>
 - </option>
					<option value="100"><?php 
        echo GetMessage("FM_UTIL_SIZE_100");
        ?>
</option>
					<option value="100_500"><?php 
        echo GetMessage("FM_UTIL_SIZE_100_500");
        ?>
</option>
					<option value="500"><?php 
        echo GetMessage("FM_UTIL_SIZE_500");
        ?>
</option>
					<option value="set"><?php 
        echo GetMessage("FM_UTIL_SET_EXACTLY");
        ?>
</option>
				</select>
				<div id="bx_search_size_div" class="bxfm-d-adjust-div">
				<?php 
        echo GetMessage("FM_UTIL_SIZE_FROM");
        ?>
: <input id="bx_search_size_from" name="bx_search_size_from" value="" style="width: 70px;" type="text"/><?php 
        echo GetMessage("FM_UTIL_KB");
        ?>
 &nbsp;
				<?php 
        echo GetMessage("FM_UTIL_SIZE_TO");
        ?>
: <input id="bx_search_size_to" name="bx_search_size_to" value="" style="width: 70px;" type="text"/><?php 
        echo GetMessage("FM_UTIL_KB");
        ?>
				</div>
				</td>
			</tr>
			<tr class="bxfm-add-hide bxfm-d-only-search">
				<td class="bxfm-d-label"><label for="bx_search_dirs_too"><?php 
        echo GetMessage("FM_UTIL_SEARCH_DIRS");
        ?>
</label></td>
				<td class="bxfm-d-value"><input id="bx_search_dirs_too" name="bx_search_dirs_too" type="checkbox" value="Y" checked="checked" /></td>
			</tr>
			<tr class="bxfm-add-hide-TEMP" style="display: none;">
				<td class="bxfm-d-label"><label for="bx_search_entire"><?php 
        echo GetMessage("FM_UTIL_ENTIRE");
        ?>
</label></td>
				<td class="bxfm-d-value"><input  id="bx_search_entire" type="checkbox" value="Y" /></td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label"><label for="bx_search_case"><?php 
        echo GetMessage("FM_UTIL_CASE_SENS");
        ?>
</td>
				<td class="bxfm-d-value"><input id="bx_search_case" name="bx_search_case" type="checkbox" value="Y" /></label></td>
			</tr>
		</table>
		<input type="hidden" name="search" value="Y" />
		<div id="bx_search_res_cont"></div>
<?php 
        CAdminFileDialog::ShowScript(array("event" => "FMFD_SearchDirOpen", "arResultDest" => array("ELEMENT_ID" => "bx_search_dir"), "arPath" => array("SITE" => $site, "PATH" => "/"), "select" => 'D', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "allowAllFiles" => false, "SaveConfig" => true));
        ?>
		</form></div>
		</td></tr>
		<?php 
        $searchTabControl->BeginNextTab();
        ?>
		<tr><td>
		<div id="bx_replace_cont" class="bxfm-replace-cont"></div>
		</td></tr>
		<?php 
        $searchTabControl->End();
        // ***  Copy / move dialog ***
        ?>
		<div id="bx_copy_dialog" class="bx-copy-cont">
		<table class="bx-copy-cont-tbl bx-copy-cont-tbl-add-hide" id="bx_copy_table" style="width: 470px;">
			<tr>
				<td class="bxfm-d-label"><label for="bx_copy_file_list"><?php 
        echo GetMessage("FM_UTIL_FILE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><div id="bx_copy_file_list" style="margin-top: 2px;"><div></td>
			</tr>
			<tr>
				<td class="bxfm-d-label"><label for="bx_copy_to"><?php 
        echo GetMessage("FM_COPY_TO");
        ?>
:</label></td>
				<td class="bxfm-d-value">
					<div style="width: 340px;">
						<input id="bx_copy_to" style="width: 255px;" value="/" type="text" /><input type="button" value="..." title="<?php 
        echo GetMessage('FD_OPEN_DIR');
        ?>
" onclick="FMFD_CopyMoveOpen(true, {site: window.oBXFMCopy.oSiteSel.value, path: window.oBXFMCopy.oCopyTo.pInput.value});"  />
						<span class="bxfm-site-sel" id="bx_copy_site_sel"></span>
					</div>
				</td>
			</tr>

			<tr class="bx-copy-d-title">
				<td colSpan="2">
				<a class="bx-copy-add-link" id="bx_copy_add_lnk" href="javascript: void(0);"><?php 
        echo GetMessage("FM_UTIL_ADDITIONAL");
        ?>
 <span class="bx-copy-d-span-hide">(<?php 
        echo GetMessage("FM_UTIL_HIDE");
        ?>
)</span></a>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td colSpan="2" style="padding: 5px 0 5px 120px !important;"><?php 
        echo GetMessage("FM_COPY_COINCID");
        ?>
:</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_ask_user" type="radio" name="bx_copy_coincidence" value="ask" checked="checked"/>
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_ask_user"><?php 
        echo GetMessage("FM_COPY_ASK_USER");
        ?>
</label>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_replace" type="radio" name="bx_copy_coincidence" value="replace" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_replace"><?php 
        echo GetMessage("FM_COPY_REPLACE");
        ?>
</label>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_auto_rename" type="radio" name="bx_copy_coincidence" value="auto_rename" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_auto_rename"><?php 
        echo GetMessage("FM_COPY_AUTO_RENAME");
        ?>
</label>
				</td>
			</tr>
			<tr class="bxfm-add-hide">
				<td class="bxfm-d-label">
					<input id="bx_copy_skip" type="radio" name="bx_copy_coincidence" value="skip" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_copy_skip"><?php 
        echo GetMessage("FM_COPY_SKIP");
        ?>
</label>
				</td>
			</tr>
		</table>
<?php 
        CAdminFileDialog::ShowScript(array("event" => "FMFD_CopyMoveOpen", "arResultDest" => array("ELEMENT_ID" => "bx_copy_to"), "arPath" => array("SITE" => $GLOBALS['site'], "PATH" => "/"), "select" => 'D', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "allowAllFiles" => false, "SaveConfig" => true));
        ?>
		</div>
		<div id="bx_copy_ask_dialog" class="bx-copy-cont">
		<div style="margin: 0 70px 0 70px; width: 460px; padding: 10px 0 5px;">
		<?php 
        echo GetMessage("FM_UTIL_FILE_EXIST", array("#NAME#" => "<span id='bx_copy_ask_file_name'>#NAME#</span>", "#FOLDER#" => "<span id='bx_copy_ask_folder'>#FOLDER#</span>"));
        ?>
:
		</div>
		<div style="margin: 0 50px;">
		<table  class="bx-copy-compare-tbl">
			<tr class="bx-copy-title">
				<td><?php 
        echo GetMessage("FM_UTIL_NEW_FILE");
        ?>
:</td>
				<td rowSpan="4" class="bx-copy-sep-td"></td>
				<td><?php 
        echo GetMessage("FM_UTIL_ORIGINAL_FILE");
        ?>
:</td>
			</tr>
			<tr>
				<td>
				<div class="bx-copy-name-cnt">
				<a id="bx_copy_ask_file1" href="javascript:void();">file1</a>
				<div id="bxc_ask_nn_cont1" class="bx-copy-new-name bxcnn-0"></div>
				</div>
				</td>
				<td>
				<div class="bx-copy-name-cnt"><a id="bx_copy_ask_file2" href="javascript:void();">file2</a></div>
				</td>
			</tr>
			<tr id="bx_copy_ask_size_row">
				<td><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
: <span id="bx_copy_ask_size1"></span></td>
				<td><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
: <span id="bx_copy_ask_size2"></span></td>
			</tr>
			<tr class="bx-copy-bottom">
				<td><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
: <span id="bx_copy_ask_date1"></span></td>
				<td><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
: <span id="bx_copy_ask_date2"></span></td>
			</tr>
		</table>
		</div>
		</div>
		<?php 
        $searchTabControl->BeginNextTab();
        // ***  Pack / unpack dialog ***
        ?>
		<div id="bx_pack_dialog" class="bx-pack-cont">
		<table class="bx-pack-cont-tbl bx-pack-cont-tbl-add-hide" id="bx_pack_table" style="width: 470px;">
			<tr>
				<td class="bxfm-d-label"><label for="bx_pack_file_list"><?php 
        echo GetMessage("FM_PACK_FILE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><div id="bx_pack_file_list" style="margin-top: 2px;"><div></td>
			</tr>
			<tr id="bxfm-arctype-line">
				<td class="bxfm-d-label"><label for="bx_pack_arc_type"><?php 
        echo GetMessage("FM_PACK_ARC_TYPE");
        ?>
:</label></td>
				<td class="bxfm-d-value"><div id="bx_pack_arc_type" class="bxfm-arctype-sel" style="margin-top: 4px;"><div></td>
			</tr>
			<tr>
				<!-- if pack "to archive", if not - "to folder" -->
				<td class="bxfm-d-label"><label for="bx_pack_to"><?php 
        echo GetMessage("FM_PACK_TO");
        ?>
:</label></td>
				<td class="bxfm-d-value">
					<div style="width: 340px;">
						<input id="bx_pack_to" style="width: 260px;" value="/" type="text"/>&nbsp;<input type="button" value="..." title="<?php 
        echo GetMessage('FD_OPEN_DIR');
        ?>
" onclick="FMFD_PackUnpackOpen(true, {site: window.oBXFMPack.oSiteSel.value, path: window.oBXFMPack.GetFolderPath(window.oBXFMPack.oPackTo.pInput.value)});"  />
						<span class="bxfm-site-sel" id="bx_pack_site_sel"></span>
					</div>
				</td>
			</tr>
			<tr class="bx-pack-d-title" id="bx-pack-d-title-label">
				<td></td>
				<td><?php 
        echo GetMessage("FM_PACK_ADDITIONAL");
        ?>
</td>
			</tr>
			<!--<tr class="bxfm-add-hide" id="bxfm-pack-option-ask">
				<td class="bxfm-d-label">
					<input id="bx_pack_ask_user" type="radio" name="bx_pack_coincidence" value="ask" checked="checked"/>
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_ask_user"><?php 
        echo GetMessage("FM_PACK_ASK_USER");
        ?>
</label>
				</td>
			</tr>-->
			<tr class="bxfm-add-hide" id="bxfm-pack-option-replace">
				<td class="bxfm-d-label">
					<input id="bx_pack_replace" type="radio" name="bx_pack_coincidence" value="replace" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_replace"><?php 
        echo GetMessage("FM_PACK_REPLACE");
        ?>
</label>
				</td>
			</tr>
			<!--<tr class="bxfm-add-hide" id="bxfm-pack-option-rename">
				<td class="bxfm-d-label">
					<input id="bx_pack_auto_rename" type="radio" name="bx_pack_coincidence" value="auto_rename" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_auto_rename"><?php 
        echo GetMessage("FM_PACK_AUTO_RENAME");
        ?>
</label>
				</td>
			</tr>-->
			<tr class="bxfm-add-hide" id="bxfm-pack-option-skip">
				<td class="bxfm-d-label">
					<input id="bx_pack_skip" type="radio" name="bx_pack_coincidence" value="skip" />
				</td>
				<td class="bxfm-d-value">
					<label for="bx_pack_skip"><?php 
        echo GetMessage("FM_PACK_SKIP");
        ?>
</label>
				</td>
			</tr>
		</table>
<?php 
        CAdminFileDialog::ShowScript(array("event" => "FMFD_PackUnpackOpen", "arResultDest" => array("FUNCTION_NAME" => "MakeArchivePathFromFolderPath"), "arPath" => array("SITE" => $GLOBALS['site'], "PATH" => "/"), "select" => 'D', "operation" => 'O', "showUploadTab" => false, "showAddToMenuTab" => false, "allowAllFiles" => false, "SaveConfig" => true));
        ?>
		</div>
		<script type="text/javascript">
			function MakeArchivePathFromFolderPath(filename, path, site)
			{
				var
					oldArchivePath = BX('bx_pack_to').value,
					newArchivePath,
					archiveName;

				archiveName = oldArchivePath.substr(oldArchivePath.lastIndexOf('/') + 1);
				newArchivePath = "/" + path + "/" + filename + "/" + archiveName;

				newArchivePath = newArchivePath.replace(/[\/]+$/g, "");
				newArchivePath = newArchivePath.replace(/[\/]+/g, '/');
				newArchivePath = newArchivePath.replace(/[\\]+/g, '/');

				if (newArchivePath == '')
					newArchivePath = '/';

				BX('bx_pack_to').value = newArchivePath;
			}
		</script>
		<div id="bx_pack_ask_dialog" class="bx-pack-cont">
		<div style="margin: 0 20px 0 20px; width: 450px; padding: 10px 0 5px;">
		<?php 
        echo GetMessage("FM_UTIL_FILE_EXIST", array("#NAME#" => "<span id='bx_pack_ask_file_name'>#NAME#</span>", "#FOLDER#" => "<span id='bx_pack_ask_folder'>#FOLDER#</span>"));
        ?>
:
		</div>
		<table style="margin: 0 20px 0 20px">
			<tr>
				<td>
					<div class="bx-pack-name-cnt">
					<a id="bx_pack_ask_file2" href="javascript:void('');">file1</a>
					<div id="bxc_ask_nn_cont2" class="bx-pack-new-name bxcnn-0"></div>
					</div>
				</td>
			</tr>
			<tr id="bx_pack_ask_size_row">
				<td><?php 
        echo GetMessage("FM_UTIL_SIZE");
        ?>
: <span id="bx_pack_ask_size2"></span></td>
			</tr>
			<tr class="bx-pack-bottom">
				<td><?php 
        echo GetMessage("FM_UTIL_DATE");
        ?>
: <span id="bx_pack_ask_date2"></span></td>
			</tr>
		</table>
		<br/>
		</div><?php 
    }
Пример #23
0
			"ICON" => "btn_list",
			"TEXT" => GetMessage("SOE_TO_LIST"),
			"LINK" => "/bitrix/admin/sale_order.php?lang=".LANGUAGE_ID.GetFilterParams("filter_")
		)
	);
}

if ($boolLocked && $saleModulePermissions >= 'W')
{
	$aMenu[] = array(
		"TEXT" => GetMessage("SOE_TO_UNLOCK"),
		"LINK" => "/bitrix/admin/sale_order_new.php?ID=".$ID."&unlock=Y&lang=".LANGUAGE_ID.GetFilterParams("filter_"),
	);
}

$link = urlencode(DeleteParam(array("mode")));
$link = urlencode($APPLICATION->GetCurPage())."?mode=settings".($link <> "" ? "&".$link: "");

$bUserCanViewOrder = CSaleOrder::CanUserViewOrder($ID, $arUserGroups, $intUserID);
$bUserCanEditOrder = CSaleOrder::CanUserUpdateOrder($ID, $arUserGroups, $LID);
$bUserCanDeleteOrder = CSaleOrder::CanUserDeleteOrder($ID, $arUserGroups, $intUserID);
$bUserCanCancelOrder = CSaleOrder::CanUserCancelOrder($ID, $arUserGroups, $intUserID);
$bUserCanDeductOrder = CSaleOrder::CanUserChangeOrderFlag($ID, "PERM_DEDUCTION", $arUserGroups);
$bUserCanMarkOrder = CSaleOrder::CanUserMarkOrder($ID, $arUserGroups, $intUserID);
$bUserCanPayOrder = CSaleOrder::CanUserChangeOrderFlag($ID, "P", $arUserGroups);
$bUserCanDeliverOrder = CSaleOrder::CanUserChangeOrderFlag($ID, "D", $arUserGroups);

if ($bUserCanViewOrder && $ID > 0)
{
	$aMenu[] = array(
		"TEXT" => GetMessage("NEWO_DETAIL"),
Пример #24
0
}
if ((!$GLOBALS['____450717392'][129](___1676470017(614)) || NOT_CHECK_PERMISSIONS !== true) && (!$GLOBALS['____450717392'][130](___1676470017(615)) || NOT_CHECK_FILE_PERMISSIONS !== true)) {
    $_1510723558 = $GLOBALS[___1676470017(616)]->{$GLOBALS}['_____769810859'][43](true);
    if (isset($_SERVER[___1676470017(617)]) && $_SERVER[___1676470017(618)] != ___1676470017(619)) {
        $_1510723558 = $_SERVER[___1676470017(620)];
    }
    if (!$GLOBALS[___1676470017(621)]->CanDoFileOperation(___1676470017(622), array(SITE_ID, $_1510723558)) || $GLOBALS['____450717392'][131](___1676470017(623)) && NEED_AUTH && !$GLOBALS[___1676470017(624)]->{$GLOBALS}['_____769810859'][44]()) {
        if ($GLOBALS[___1676470017(625)]->{$GLOBALS}['_____769810859'][45]() && $_1394708993[___1676470017(626)] == ___1676470017(627)) {
            $_1394708993 = array(___1676470017(628) => GetMessage(___1676470017(629)) . ___1676470017(630) . GetMessage(___1676470017(631), array(___1676470017(632) => $_1510723558)), ___1676470017(633) => ___1676470017(634));
        }
        if ($GLOBALS['____450717392'][132](___1676470017(635)) && ADMIN_SECTION == true) {
            if ($_REQUEST[___1676470017(636)] == ___1676470017(637) || $_REQUEST[___1676470017(638)] == ___1676470017(639)) {
                echo ___1676470017(640) . $GLOBALS[___1676470017(641)]->{$GLOBALS}['_____769810859'][46]() . ___1676470017(642) . DeleteParam(array(___1676470017(643))) . ___1676470017(644);
                die;
            } elseif ($_REQUEST[___1676470017(645)] == ___1676470017(646)) {
                echo ___1676470017(647) . $GLOBALS[___1676470017(648)]->{$GLOBALS}['_____769810859'][47]() . ___1676470017(649) . DeleteParam(array(___1676470017(650))) . ___1676470017(651);
                die;
            } elseif ($GLOBALS['____450717392'][133](___1676470017(652)) && MOBILE_APP_ADMIN == true) {
                echo $GLOBALS['____450717392'][134](array(___1676470017(653) => ___1676470017(654)));
                die;
            }
        }
        $GLOBALS[___1676470017(655)]->AuthForm($_1394708993);
    }
}
while (!$GLOBALS['____450717392'][135](___1676470017(656)) || $GLOBALS['____450717392'][136](OLDSITEEXPIREDATE) <= 762 - 2 * 381 || OLDSITEEXPIREDATE != SITEEXPIREDATE) {
    die(GetMessage(___1676470017(657)));
}
if (isset($_525075370) && $_525075370 == round(0 + 404)) {
    if (COption::$GLOBALS['_____769810859'][48](___1676470017(658), ___1676470017(659), ___1676470017(660)) == ___1676470017(661)) {
        CHTTP::SetStatus(___1676470017(662));
Пример #25
0
unset($GLOBALS["HTTP_GET_VARS"]["ACTION"]);
$parser = new forumTextParser(LANGUAGE_ID, $arParams["PATH_TO_SMILE"]);
$parser->MaxStringLen = $arParams["WORD_LENGTH"];
$parser->image_params["width"] = $parser->image_params["height"] = $arParams["IMAGE_SIZE"];
$_REQUEST["FILES"] = is_array($_REQUEST["FILES"]) ? $_REQUEST["FILES"] : array();
$_REQUEST["FILES_TO_UPLOAD"] = is_array($_REQUEST["FILES_TO_UPLOAD"]) ? $_REQUEST["FILES_TO_UPLOAD"] : array();
if (is_set($_REQUEST, "result")) {
    switch (strToLower($_REQUEST["result"])) {
        case "message_add":
        case "mid_add":
        case "reply":
            $arNote[] = array("id" => "message_add", "text" => GetMessage("F_MESS_SUCCESS_ADD"));
            break;
    }
    unset($_GET["result"]);
    DeleteParam(array("result"));
}
$arAllow = forumTextParser::GetFeatures($arResult["FORUM"]);
/********************************************************************
				/Default params # 2
********************************************************************/
ForumSetLastVisit($arParams["FID"], $arParams["TID"]);
ForumSetReadTopic($arParams["FID"], $arParams["TID"]);
/********************************************************************
				Action
********************************************************************/
$dir = dirname(__FILE__);
include str_replace(array("\\", "//"), "/", $dir . "/") . "action.php";
/********************************************************************
				/Action
********************************************************************/
Пример #26
0
    function GetPanelHtml()
    {
        global $USER, $APPLICATION, $adminPage;
        if ($APPLICATION->ShowPanel === false || !$USER->IsAuthorized() && $APPLICATION->ShowPanel !== true) {
            return "";
        }
        CTopPanel::InitPanelIcons();
        $arPanelButtons =& $APPLICATION->arPanelButtons;
        $bShowPanel = false;
        foreach ($arPanelButtons as $arValue) {
            if (trim($arValue["HREF"]) != "" || is_array($arValue["MENU"]) && !empty($arValue["MENU"])) {
                //we have at least one button to show
                $bShowPanel = true;
                break;
            }
        }
        if ($bShowPanel == false) {
            $bShowPanel = self::IsShownForUser();
        }
        if ($bShowPanel == false && $APPLICATION->ShowPanel !== true) {
            return "";
        }
        $APPLICATION->PanelShowed = true;
        if (isset($_GET["back_url_admin"]) && $_GET["back_url_admin"] != "" && strpos($_GET["back_url_admin"], "/") === 0) {
            $_SESSION["BACK_URL_ADMIN"] = $_GET["back_url_admin"];
        }
        $aUserOpt = CUserOptions::GetOption("admin_panel", "settings");
        $aUserOptGlobal = CUserOptions::GetOption("global", "settings");
        $toggleModeSet = false;
        if (isset($_GET["freetrix_include_areas"]) && $_GET["freetrix_include_areas"] != "") {
            $APPLICATION->SetShowIncludeAreas($_GET["freetrix_include_areas"] == "Y");
            $toggleModeSet = true;
        }
        $params = DeleteParam(array("freetrix_include_areas", "freetrix_show_mode", "back_url_admin"));
        $href = $APPLICATION->GetCurPage();
        $hrefEnc = htmlspecialcharsbx($href);
        $toggleModeDynamic = $aUserOptGlobal['panel_dynamic_mode'] == 'Y';
        $toggleMode = $toggleModeDynamic && !$toggleModeSet ? $aUserOpt['edit'] == 'on' : $APPLICATION->GetShowIncludeAreas() == 'Y';
        //Save if changed
        $old_edit = $aUserOpt['edit'];
        $aUserOpt['edit'] = $toggleMode ? 'on' : 'off';
        if ($old_edit !== $aUserOpt['edit']) {
            CUserOptions::SetOption('admin_panel', 'settings', $aUserOpt);
        }
        $toggleModeLink = $hrefEnc . '?freetrix_include_areas=' . ($toggleMode ? 'N' : 'Y') . ($params != "" ? "&amp;" . htmlspecialcharsbx($params) : "");
        $result = CTopPanel::ShowPanelScripts(true);
        $result .= '
	<!--[if lte IE 7]>
	<style type="text/css">#bx-panel {display:none !important;}</style>
	<div id="bx-panel-error">' . GetMessage("top_panel_browser") . '</div><![endif]-->
	<script type="text/javascript">BX.admin.dynamic_mode=' . ($toggleModeDynamic ? 'true' : 'false') . '; BX.admin.dynamic_mode_show_borders = ' . ($toggleMode ? 'true' : 'false') . ';</script>
	<div style="display:none; overflow:hidden;" id="bx-panel-back"></div>
	<div id="bx-panel"' . ($aUserOpt["collapsed"] == "on" ? ' class="bx-panel-folded"' : '') . '>
		<div id="bx-panel-top">
			<div id="bx-panel-top-gutter"></div>
			<div id="bx-panel-tabs">
	';
        $result .= '
				<a id="bx-panel-menu" href="" ' . CTopPanel::AddAttrHint(GetMessage('top_panel_start_menu_tooltip_title'), GetMessage('top_panel_start_menu_tooltip')) . '><span id="bx-panel-menu-icon"></span><span id="bx-panel-menu-text">' . GetMessage("top_panel_menu") . '</span></a><a id="bx-panel-view-tab"><span>' . GetMessage("top_panel_site") . '</span></a><a id="bx-panel-admin-tab" href="' . (isset($_SESSION["BACK_URL_ADMIN"]) && $_SESSION["BACK_URL_ADMIN"] != "" ? htmlspecialcharsbx($_SESSION["BACK_URL_ADMIN"]) . (strpos($_SESSION["BACK_URL_ADMIN"], "?") !== false ? "&amp;" : "?") : '/freetrix/admin/index.php?lang=' . LANGUAGE_ID . '&amp;') . 'back_url_pub=' . urlencode($href . ($params != "" ? "?" . $params : "")) . '"><span>' . GetMessage("top_panel_admin") . '</span></a>';
        $back_url = CUtil::JSUrlEscape(CUtil::addslashes($href . ($params != "" ? "?" . $params : "")));
        $arStartMenuParams = array('DIV' => 'bx-panel-menu', 'ACTIVE_CLASS' => 'bx-pressed', 'MENU_URL' => '/freetrix/admin/get_start_menu.php?lang=' . LANGUAGE_ID . '&back_url_pub=' . urlencode($back_url) . '&' . freetrix_sessid_get(), 'MENU_PRELOAD' => $aUserOptGlobal["start_menu_preload"] == 'Y');
        $result .= '<script type="text/javascript">BX.message({MENU_ENABLE_TOOLTIP: ' . ($aUserOptGlobal['start_menu_title'] != 'N' ? 'true' : 'false') . '}); new BX.COpener(' . CUtil::PhpToJsObject($arStartMenuParams) . ');</script>';
        $hkInstance = CHotKeys::getInstance();
        $Execs = $hkInstance->GetCodeByClassName("top_panel_menu", GetMessage("top_panel_menu"));
        $result .= $hkInstance->PrintJSExecs($Execs);
        $Execs = $hkInstance->GetCodeByClassName("top_panel_admin", GetMessage("top_panel_admin"));
        $result .= $hkInstance->PrintJSExecs($Execs);
        if ($USER->CanDoOperation("cache_control")) {
            $result .= '<a id="bx-panel-clear-cache" href="" onclick="BX.clearCache(); return false;"><span id="bx-panel-clear-cache-icon"></span><span id="bx-panel-clear-cache-text">' . GetMessage("top_panel_cache_new_tooltip_title") . '</span></a>';
        }
        $result .= '
			</div>
			<div id="bx-panel-userinfo">
	';
        $bCanProfile = $USER->CanDoOperation('view_own_profile') || $USER->CanDoOperation('edit_own_profile');
        $userName = CUser::FormatName(CSite::GetNameFormat(false), array("NAME" => $USER->GetFirstName(), "LAST_NAME" => $USER->GetLastName(), "SECOND_NAME" => $USER->GetSecondName(), "LOGIN" => $USER->GetLogin()), $bUseLogin = true, $bHTMLSpec = true);
        if ($bCanProfile) {
            $result .= '<a href="/freetrix/admin/user_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $USER->GetID() . '" id="bx-panel-user" ' . CTopPanel::AddAttrHint(GetMessage('top_panel_profile_tooltip')) . '><span id="bx-panel-user-icon"></span><span id="bx-panel-user-text">' . $userName . '</span></a>';
        } else {
            $result .= '<a id="bx-panel-user"><span id="bx-panel-user-icon"></span><span id="bx-panel-user-text">' . $userName . '</span></a>';
        }
        $result .= '<a href="' . $hrefEnc . '?logout=yes' . htmlspecialcharsbx(($s = DeleteParam(array("logout"))) == "" ? "" : "&" . $s) . '" id="bx-panel-logout" ' . CTopPanel::AddAttrHint(GetMessage('top_panel_logout_tooltip') . $hkInstance->GetTitle("bx-panel-logout", true)) . '>' . GetMessage("top_panel_logout") . '</a>';
        $toggleCaptionOn = '<span id="bx-panel-toggle-caption-mode-on">' . GetMessage("top_panel_on") . '</span>';
        $toggleCaptionOff = '<span id="bx-panel-toggle-caption-mode-off">' . GetMessage("top_panel_off") . '</span>';
        $toggleCaptions = $toggleMode ? $toggleCaptionOn . $toggleCaptionOff : $toggleCaptionOff . $toggleCaptionOn;
        $toogle = '<a href="' . $toggleModeLink . '" id="bx-panel-toggle" class="bx-panel-toggle' . ($toggleMode ? '-on' : '-off') . '"' . ($toggleModeDynamic ? '' : ' ' . CTopPanel::AddAttrHint(GetMessage("top_panel_edit_mode_new_tooltip_title"), GetMessage('top_panel_toggle_tooltip') . $hkInstance->GetTitle("bx-panel-small-toggle", true))) . '><span id="bx-panel-switcher-gutter-left"></span><span id="bx-panel-toggle-indicator"><span id="bx-panel-toggle-icon"></span><span id="bx-panel-toggle-icon-overlay"></span></span><span class="bx-panel-break"></span><span id="bx-panel-toggle-caption">' . GetMessage("top_panel_edit_mode_new") . '</span><span class="bx-panel-break"></span><span id="bx-panel-toggle-caption-mode">' . $toggleCaptions . '</span><span id="bx-panel-switcher-gutter-right"></span></a>';
        if ($aUserOpt["collapsed"] == "on") {
            $result .= $toogle;
        }
        $result .= '<a href="" id="bx-panel-expander" ' . CTopPanel::AddAttrHint(GetMessage("top_panel_expand_tooltip_title"), GetMessage("top_panel_expand_tooltip") . $hkInstance->GetTitle("bx-panel-expander", true)) . '><span id="bx-panel-expander-text">' . GetMessage("top_panel_expand") . '</span><span id="bx-panel-expander-arrow"></span></a>';
        if ($hkInstance->IsActive()) {
            $result .= '<a id="bx-panel-hotkeys" href="javascript:void(0)" onclick="BXHotKeys.ShowSettings();" ' . CTopPanel::AddAttrHint(GetMessage("HK_PANEL_TITLE") . $hkInstance->GetTitle("bx-panel-hotkeys", true)) . '></a>';
        }
        $result .= '<a href="javascript:void(0)" id="bx-panel-pin"' . ($aUserOpt['fix'] == 'on' ? ' class="bx-panel-pin-fixed"' : '') . ' ' . CTopPanel::AddAttrHint(GetMessage('top_panel_pin_tooltip')) . '></a>';
        $Execs = $hkInstance->GetCodeByClassName("bx-panel-logout", GetMessage('top_panel_logout_tooltip'));
        $result .= $hkInstance->PrintJSExecs($Execs);
        $Execs = $hkInstance->GetCodeByClassName("bx-panel-small-toggle", GetMessage("top_panel_edit_mode_new_tooltip_title"), 'location.href="' . $href . '?freetrix_include_areas=' . ($toggleMode ? 'N' : 'Y') . ($params != "" ? "&" . $params : "") . '";');
        $result .= $hkInstance->PrintJSExecs($Execs);
        $Execs = $hkInstance->GetCodeByClassName("bx-panel-expander", GetMessage("top_panel_expand_tooltip_title") . "/" . GetMessage("top_panel_collapse_tooltip_title"));
        $result .= $hkInstance->PrintJSExecs($Execs);
        $result .= '
			</div>
		</div>
	';
        /* BUTTONS */
        $result .= '<div id="bx-panel-site-toolbar"><div id="bx-panel-buttons-gutter"></div><div id="bx-panel-switcher">';
        if ($aUserOpt["collapsed"] != "on") {
            $result .= $toogle;
        }
        $result .= '<a href="" id="bx-panel-hider" ' . CTopPanel::AddAttrHint(GetMessage("top_panel_collapse_tooltip_title"), GetMessage("top_panel_collapse_tooltip") . $hkInstance->GetTitle("bx-panel-expander", true)) . '>' . GetMessage("top_panel_collapse") . '<span id="bx-panel-hider-arrow"></span></a>';
        $result .= '</div><div id="bx-panel-buttons"><div id="bx-panel-buttons-inner">';
        $main_sort = "";
        $last_btn_type = '';
        $last_btn_small_cnt = 0;
        $groupId = -1;
        $result .= '<span class="bx-panel-button-group" data-group-id="' . ++$groupId . '">';
        sortByColumn($arPanelButtons, array("MAIN_SORT" => SORT_ASC, "SORT" => SORT_ASC));
        foreach ($arPanelButtons as $key => $arButton) {
            $result .= $hkInstance->PrintTPButton($arButton);
            if ($main_sort != $arButton["MAIN_SORT"] && $main_sort != "") {
                $result .= '</span><span class="bx-panel-button-separator"></span><span class="bx-panel-button-group" data-group-id="' . ++$groupId . '">';
                $last_btn_small_cnt = 0;
            }
            if (!isset($arButton['TYPE']) || $arButton['TYPE'] != 'BIG') {
                $arButton['TYPE'] = 'SMALL';
            }
            //very old behaviour
            if (is_set($arButton, "SRC_0")) {
                $arButton["SRC"] = $arButton["SRC_0"];
            }
            $arButton['HREF'] = isset($arButton['HREF']) ? trim($arButton['HREF']) : '';
            $bHasAction = $arButton['HREF'] != '';
            if (array_key_exists("RESORT_MENU", $arButton) && $arButton["RESORT_MENU"] === true && is_array($arButton['MENU']) && !empty($arButton['MENU'])) {
                sortByColumn($arButton['MENU'], "SORT", '', PHP_INT_MAX);
            }
            $bHasMenu = is_array($arButton['MENU']) && count($arButton['MENU']) > 0;
            if ($bHasMenu && !$bHasAction) {
                foreach ($arButton['MENU'] as $arItem) {
                    if (isset($arItem['DEFAULT']) && $arItem['DEFAULT']) {
                        $arButton['HREF'] = $arItem['HREF'];
                        $bHasAction = true;
                    }
                }
            }
            if ($last_btn_type != '' && $arButton['TYPE'] != $last_btn_type && $main_sort == $arButton["MAIN_SORT"]) {
                $result .= '</span><span class="bx-panel-button-group" data-group-id="' . ++$groupId . '">';
                $last_btn_small_cnt = 0;
            }
            if ($bHasAction && substr(strtolower($arButton['HREF']), 0, 11) == 'javascript:') {
                $arButton['ONCLICK'] = substr($arButton['HREF'], 11);
                $arButton['HREF'] = 'javascript:void(0)';
            }
            if ($arButton['HINT']) {
                if (isset($arButton['HINT']['ID']) && $arButton['HINT']['ID']) {
                    $hintOptions = CUtil::GetPopupOptions($arButton['HINT']['ID']);
                    if ($hintOptions['display'] == 'off') {
                        unset($arButton['HINT']);
                    }
                }
                if ($arButton['HINT']) {
                    unset($arButton['ALT']);
                }
                if ($bHasMenu && (!isset($arButton['HINT_MENU']) || !$arButton['HINT_MENU'])) {
                    $arButton['HINT']['TARGET'] = 'parent';
                }
            }
            $title = isset($arButton['ALT']) ? htmlspecialcharsbx($arButton['ALT']) : '';
            $onClick = isset($arButton['ONCLICK']) ? htmlspecialcharsbx($arButton['ONCLICK']) : '';
            $onClickJs = isset($arButton['ONCLICK']) ? CUtil::JSEscape($arButton['ONCLICK']) : '';
            $hintMenu = isset($arButton['HINT_MENU']) ? CUtil::PhpToJsObject($arButton['HINT_MENU']) : '';
            switch ($arButton['TYPE']) {
                case 'SMALL':
                    if ($last_btn_small_cnt >= 3 && $main_sort == $arButton["MAIN_SORT"]) {
                        $result .= '</span><span class="bx-panel-button-group" data-group-id="' . ++$groupId . '">';
                        $last_btn_small_cnt = 0;
                    } elseif ($last_btn_small_cnt > 0) {
                        $result .= '<span class="bx-panel-break"></span>';
                    }
                    $result .= '<span class="bx-panel-small-button"><span class="bx-panel-small-button-inner">';
                    $button_icon = '<span class="bx-panel-small-button-icon' . ($arButton['ICON'] ? ' ' . $arButton['ICON'] : '') . '"' . (isset($arButton['SRC']) && $arButton['SRC'] ? ' style="background: scroll transparent url(' . htmlspecialcharsbx($arButton['SRC']) . ') no-repeat center center !important;"' : '') . '></span>';
                    $button_text = '<span class="bx-panel-small-button-text">' . htmlspecialcharsbx($arButton['TEXT']) . '</span>';
                    $button_text_js = CUtil::JSEscape($arButton['TEXT']);
                    if ($bHasAction) {
                        $result .= '<a href="' . htmlspecialcharsbx($arButton['HREF']) . '" onclick="' . $onClick . ';BX.removeClass(this.parentNode.parentNode, \'bx-panel-small-button' . ($bHasMenu ? '-text' : '') . '-active\')" id="bx_topmenu_btn_' . $key . '"' . ($title ? ' title="' . $title . $hkInstance->GetTitle("bx_topmenu_btn_" . $key) . '"' : '"' . $hkInstance->GetTitle("bx_topmenu_btn_" . $key) . '"') . '>' . $button_icon . $button_text . '</a>';
                        $result .= '<script type="text/javascript">BX.admin.panel.RegisterButton({ID: \'bx_topmenu_btn_' . $key . '\', TYPE: \'SMALL\', ACTIVE_CSS: \'bx-panel-small-button' . ($bHasMenu ? '-text' : '') . '-active\', HOVER_CSS: \'bx-panel-small-button' . ($bHasMenu ? '-text' : '') . '-hover\'' . ($arButton['HINT'] ? ', HINT: ' . CUtil::PhpToJsObject($arButton['HINT']) : '') . ', GROUP_ID : ' . $groupId . ', SKIP : ' . ($bHasMenu ? "true" : "false") . ', LINK: "' . CUtil::JSEscape($arButton['HREF']) . '", ACTION : "' . $onClickJs . '",TEXT :  "' . $button_text_js . '" })</script>';
                        if ($bHasMenu) {
                            $result .= '<a href="javascript:void(0)" class="bx-panel-small-button-arrow" id="bx_topmenu_btn_' . $key . '_menu"><span class="bx-panel-small-button-arrow"></span></a>';
                            $result .= '<script type="text/javascript">BX.admin.panel.RegisterButton({ID: \'bx_topmenu_btn_' . $key . '_menu\', TYPE: \'SMALL\', MENU: ' . CUtil::PhpToJsObject($arButton['MENU']) . ', ACTIVE_CSS: \'bx-panel-small-button-arrow-active\', HOVER_CSS: \'bx-panel-small-button-arrow-hover\'' . ($hintMenu ? ', HINT: ' . $hintMenu : '') . ', GROUP_ID : ' . $groupId . ', TEXT :  "' . $button_text_js . '"})</script>';
                        }
                    } elseif ($bHasMenu) {
                        $result .= '<a href="javascript:void(0)" id="bx_topmenu_btn_' . $key . '"' . ($title ? ' title="' . $title . '"' : '') . '>' . $button_icon . $button_text . '<span class="bx-panel-small-single-button-arrow"></span></a>';
                        $result .= '<script type="text/javascript">BX.admin.panel.RegisterButton({ID: \'bx_topmenu_btn_' . $key . '\', TYPE: \'SMALL\', MENU: ' . CUtil::PhpToJsObject($arButton['MENU']) . ', ACTIVE_CSS: \'bx-panel-small-button-active\', HOVER_CSS: \'bx-panel-small-button-hover\'' . ($arButton['HINT'] ? ', HINT: ' . CUtil::PhpToJsObject($arButton['HINT']) : '') . ', GROUP_ID : ' . $groupId . ', TEXT :  "' . $button_text_js . '"})</script>';
                    }
                    $result .= '</span></span>';
                    $last_btn_small_cnt++;
                    break;
                case 'BIG':
                    $last_btn_small_cnt = 0;
                    $result .= '<span class="bx-panel-button"><span class="bx-panel-button-inner">';
                    $button_icon = '<span class="bx-panel-button-icon' . ($arButton['ICON'] ? ' ' . $arButton['ICON'] : '') . '"' . (isset($arButton['SRC']) && $arButton['SRC'] ? ' style="background: scroll transparent url(' . htmlspecialcharsbx($arButton['SRC']) . ') no-repeat center center !important;"' : '') . '></span>';
                    $button_text_js = CUtil::JSEscape(str_replace('#BR#', ' ', $arButton['TEXT']));
                    if ($bHasAction && $bHasMenu) {
                        $button_text = '<span class="bx-panel-button-text">' . str_replace('#BR#', '<span class="bx-panel-break"></span>', $arButton['TEXT']) . '&nbsp;<span class="bx-panel-button-arrow"></span></span>';
                        $result .= '<a href="' . htmlspecialcharsbx($arButton['HREF']) . '" onclick="' . $onClick . ';BX.removeClass(this.parentNode.parentNode, \'bx-panel-button-icon-active\');" id="bx_topmenu_btn_' . $key . '"' . ($title ? ' title="' . $title . '"' : '') . '>' . $button_icon . '</a><a id="bx_topmenu_btn_' . $key . '_menu" href="javascript:void(0)">' . $button_text . '</a>';
                        $result .= '<script type="text/javascript">BX.admin.panel.RegisterButton({ID: \'bx_topmenu_btn_' . $key . '\', TYPE: \'BIG\', ACTIVE_CSS: \'bx-panel-button-icon-active\', HOVER_CSS: \'bx-panel-button-icon-hover\'' . ($arButton['HINT'] ? ', HINT: ' . CUtil::PhpToJsObject($arButton['HINT']) : '') . ', GROUP_ID : ' . $groupId . ', SKIP : true }); BX.admin.panel.RegisterButton({ID: \'bx_topmenu_btn_' . $key . '_menu\', TYPE: \'BIG\', MENU: ' . CUtil::PhpToJsObject($arButton['MENU']) . ', ACTIVE_CSS: \'bx-panel-button-text-active\', HOVER_CSS: \'bx-panel-button-text-hover\'' . ($hintMenu ? ', HINT: ' . $hintMenu : '') . ', GROUP_ID : ' . $groupId . ', TEXT :  "' . $button_text_js . '"})</script>';
                    } else {
                        if ($bHasAction) {
                            $button_text = '<span class="bx-panel-button-text">' . str_replace('#BR#', '<span class="bx-panel-break"></span>', $arButton['TEXT']) . '</span>';
                            $result .= '<a href="' . htmlspecialcharsbx($arButton['HREF']) . '" onclick="' . $onClick . ';BX.removeClass(this.parentNode.parentNode, \'bx-panel-button-active\');" id="bx_topmenu_btn_' . $key . '"' . ($title ? ' title="' . $title . '"' : '') . '>' . $button_icon . $button_text . '</a>';
                            $result .= '<script type="text/javascript">BX.admin.panel.RegisterButton({ID: \'bx_topmenu_btn_' . $key . '\', TYPE: \'BIG\', ACTIVE_CSS: \'bx-panel-button-active\', HOVER_CSS: \'bx-panel-button-hover\'' . ($arButton['HINT'] ? ', HINT: ' . CUtil::PhpToJsObject($arButton['HINT']) : '') . ', GROUP_ID : ' . $groupId . ', LINK: "' . CUtil::JSEscape($arButton['HREF']) . '", ACTION : "' . $onClickJs . '", TEXT :  "' . $button_text_js . '"});</script>';
                        } else {
                            $button_text = '<span class="bx-panel-button-text">' . str_replace('#BR#', '<span class="bx-panel-break"></span>', $arButton['TEXT']) . '&nbsp;<span class="bx-panel-button-arrow"></span></span>';
                            $result .= '<a href="javascript:void(0)" id="bx_topmenu_btn_' . $key . '_menu">' . $button_icon . $button_text . '</a>';
                            $result .= '<script type="text/javascript">BX.admin.panel.RegisterButton({ID: \'bx_topmenu_btn_' . $key . '_menu\', TYPE: \'BIG\', MENU: ' . CUtil::PhpToJsObject($arButton['MENU']) . ', ACTIVE_CSS: \'bx-panel-button-active\', HOVER_CSS: \'bx-panel-button-hover\'' . ($arButton['HINT'] ? ', HINT: ' . CUtil::PhpToJsObject($arButton['HINT']) : '') . ', GROUP_ID : ' . $groupId . ', TEXT :  "' . $button_text_js . '"});</script>';
                        }
                    }
                    $result .= '</span></span>';
                    break;
            }
            $main_sort = $arButton["MAIN_SORT"];
            $last_btn_type = $arButton['TYPE'];
        }
        $result .= '</span>';
        $result .= '</div>
			</div>
		</div>';
        if ($USER->IsAdmin()) {
            $result .= CAdminNotify::GetHtml();
        }
        $result .= '
	</div>
	';
        $result .= '<script type="text/javascript">
		BX.admin.panel.state = {
			fixed: ' . ($aUserOpt["fix"] == "on" ? 'true' : 'false') . ',
			collapsed: ' . ($aUserOpt["collapsed"] == "on" ? 'true' : 'false') . '
		}
		BX.admin.moreButton.init({ buttonTitle : "' . GetMessageJS("top_panel_more_button_title") . '"});
		</script>';
        //start menu preload
        // if($aUserOptGlobal["start_menu_preload"] == 'Y')
        // 	$result .= '<script type="text/javascript">BX.ready(function(){jsStartMenu.PreloadMenu(\''.CUtil::JSEscape($href.($params<>""? "?".$params:"")).'\');});</script>';
        //show script to play sound
        $result .= $adminPage->ShowSound();
        return $result;
    }
 static function ShowMenu()
 {
     global $APPLICATION;
     $aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("MAIN_ADMIN_MENU_LIST"), "LINK" => self::LIST_URL . "?lang=" . LANG . GetFilterParams("filter_"), "TITLE" => GetMessage("MAIN_ADMIN_MENU_LIST")));
     if (!self::$notSaved) {
         $aContext[] = array("ICON" => "btn_delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "LINK" => "javascript:if(confirm('" . GetMessage("SUP_CONFIRM_DEL_MESSAGE") . "'))window.location='" . LIST_URL . "?lang=" . LANG . "&action=delete&ID=" . self::$holidaysFields->ID . "&" . bitrix_sessid_get() . urlencode(GetFilterParams("filter_", false)) . "';");
     }
     if (self::SHOW_FORM_SETTINGS) {
         $link = DeleteParam(array("mode"));
         $link = $APPLICATION->GetCurPage() . "?mode=settings" . ($link != "" ? "&" . $link : "");
         $aContext[] = array("TEXT" => GetMessage("SUP_FORM_SETTINGS"), "TITLE" => GetMessage("SUP_FORM_SETTINGS_EX"), "LINK" => "javascript:" . self::$objCAdminForm->GetName() . ".ShowSettings('" . urlencode($link) . "')", "ICON" => "btn_settings");
     }
     $context = new CAdminContextMenu($aContext);
     $context->Show();
 }
Пример #28
0
	<div class="login-popup">
		<div class="login-popup-title"><?php 
echo GetMessage('AUTH_FORGOT_PASSWORD');
?>
</div>
		<div class="login-popup-title-description"><?php 
echo GetMessage("AUTH_GET_CHECK_STRING_SENT");
?>
</div>
		<div class="login-popup-message-wrap">
			<div class="adm-info-message-wrap adm-info-message-green">
				<div class="adm-info-message" id="forgot_password_message_inner"></div>
			</div>
		</div>
		<a class="login-popup-forget-pas" href="javascript:void(0)" onclick="BX.adminLogin.toggleAuthForm('change_password')"><?php 
echo GetMessage('AUTH_GOTO_CHANGE_FORM');
?>
</a>
	</div>
</div>

<script type="text/javascript">
var obForgMsg = new BX.authFormForgotPasswordMessage('forgot_password_message', {url:''}),
	obForg = new BX.authFormForgotPassword('forgot_password', {
		url: '<?echo CUtil::JSEscape($sDocPath."?forgot_password=yes".(($s=DeleteParam(array("forgot_password"))) == ""? "":"&".$s))?>',
		message: obForgMsg
});
BX.adminLogin.registerForm(obForg);
BX.adminLogin.registerForm(obForgMsg);
</script>
Пример #29
0
    ShowError(GetMessage("LEARNING_MODULE_NOT_FOUND"));
    return;
}
//Params
$arParams["TEST_DETAIL_TEMPLATE"] = strlen($arParams["TEST_DETAIL_TEMPLATE"]) > 0 ? htmlspecialcharsbx($arParams["TEST_DETAIL_TEMPLATE"]) : "course/test.php?TEST_ID=#TEST_ID#";
$arParams["COURSE_DETAIL_TEMPLATE"] = strlen($arParams["COURSE_DETAIL_TEMPLATE"]) > 0 ? htmlspecialcharsbx($arParams["COURSE_DETAIL_TEMPLATE"]) : "course/index.php?COURSE_ID=#COURSE_ID#";
if (strlen($arParams["TEST_ID_VARIABLE"]) <= 0 || !preg_match("#^[A-Za-z_][A-Za-z01-9_]*\$#", $arParams["TEST_ID_VARIABLE"])) {
    $arParams["TEST_ID_VARIABLE"] = "TEST_ID";
}
//Set Title
$arParams["SET_TITLE"] = $arParams["SET_TITLE"] == "N" ? "N" : "Y";
if ($arParams["SET_TITLE"] == "Y") {
    $APPLICATION->SetTitle(GetMessage("LEARNING_PROFILE_TITLE"));
}
$currentPage = GetPagePath(false, false);
$queryString = htmlspecialcharsbx(DeleteParam(array($arParams["TEST_ID_VARIABLE"])));
$arResult = array("RECORDS" => array(), "ATTEMPTS" => array(), "CURRENT_PAGE" => $currentPage . ($queryString == "" ? "" : "?") . $queryString);
//GradeBook
$rsGradebook = CGradeBook::GetList(array("ID" => "DESC"), array("STUDENT_ID" => intval($USER->GetID()), "SITE_ID" => LANG, "TEST_ID" => array_key_exists($arParams["TEST_ID_VARIABLE"], $_REQUEST) ? intval($_REQUEST[$arParams["TEST_ID_VARIABLE"]]) : ""));
// Collection of tests' ids
$arTestsIds = array();
while ($arGradebook = $rsGradebook->GetNext()) {
    //Test Url
    $arGradebook["TEST_DETAIL_URL"] = CComponentEngine::MakePathFromTemplate($arParams["TEST_DETAIL_TEMPLATE"], array("TEST_ID" => $arGradebook["TEST_ID"], "COURSE_ID" => $arGradebook["COURSE_ID"]));
    $arGradebook['APPROVED'] = $arGradebook['TEST_APPROVED'];
    //Course Url
    $arGradebook["COURSE_DETAIL_URL"] = CComponentEngine::MakePathFromTemplate($arParams["COURSE_DETAIL_TEMPLATE"], array("COURSE_ID" => $arGradebook["COURSE_ID"]));
    $arGradebook["ATTEMPT_DETAIL_URL"] = $arResult["CURRENT_PAGE"] . ($queryString == "" ? "?" : "&") . $arParams["TEST_ID_VARIABLE"] . "=" . $arGradebook["TEST_ID"];
    $arResult["RECORDS"][] = $arGradebook;
    // collect tests' ids
    if (!in_array($arGradebook['TEST_ID'], $arTestsIds)) {
Пример #30
0
 public function AddAdminContextMenu($aContext = array(), $bShowExcel = true, $bShowSettings = true)
 {
     /** @global CMain $APPLICATION */
     global $APPLICATION;
     $aAdditionalMenu = array();
     if ($bShowSettings) {
         $link = DeleteParam(array("mode"));
         $link = $APPLICATION->GetCurPage() . "?mode=settings" . ($link != "" ? "&" . $link : "");
         $aAdditionalMenu[] = array("TEXT" => GetMessage("admin_lib_context_sett"), "TITLE" => GetMessage("admin_lib_context_sett_title"), "ONCLICK" => $this->table_id . ".ShowSettings('" . CUtil::JSEscape($link) . "')", "GLOBAL_ICON" => "adm-menu-setting");
     }
     if ($bShowExcel) {
         $link = DeleteParam(array("mode"));
         $link = $APPLICATION->GetCurPage() . "?mode=excel" . ($link != "" ? "&" . $link : "");
         $aAdditionalMenu[] = array("TEXT" => "Excel", "TITLE" => GetMessage("admin_lib_excel"), "ONCLICK" => "javascript:exportData('excel');", "GLOBAL_ICON" => "adm-menu-excel");
     }
     if (count($aContext) > 0 || count($aAdditionalMenu) > 0) {
         $this->context = new CAdminContextMenuList($aContext, $aAdditionalMenu);
     }
 }