本文整理汇总了PHP中GetRequestUri函数的典型用法代码示例。如果您正苦于以下问题:PHP GetRequestUri函数的具体用法?PHP GetRequestUri怎么用?PHP GetRequestUri使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了GetRequestUri函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Check
/**
* Ensure that there is an active session.
*
* If there isn't an active session, send the user to the SignIn Url
*
* @param Context $Context
*/
function Check(&$Context)
{
if ($this->UserID == 0 && !$Context->Configuration['PUBLIC_BROWSING'] || $this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN) {
if ($this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN) {
$this->End($Context->Authenticator);
}
$Url = AppendUrlParameters($Context->Configuration['SAFE_REDIRECT'], 'ReturnUrl=' . urlencode(GetRequestUri()));
Redirect($Url);
}
}
示例2: Check
function Check(&$Context)
{
if ($this->UserID == 0 && !$Context->Configuration['PUBLIC_BROWSING'] || $this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN) {
if ($this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN) {
$this->End($Context->Authenticator);
}
header('location: ' . AppendUrlParameters($Context->Configuration['SAFE_REDIRECT'], 'ReturnUrl=' . GetRequestUri()));
die;
}
}
示例3: Check
function Check(&$Context)
{
// if (($this->UserID == 0 && !$Context->Configuration['PUBLIC_BROWSING']) || ($this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN)) {
if ($this->UserID == 0 && $Context->SelfUrl == 'index.php' && ForceIncomingInt('CategoryID', 0) == 0 || $this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN) {
if ($this->UserID > 0 && !$this->User->PERMISSION_SIGN_IN) {
$this->End($Context->Authenticator);
}
$Url = AppendUrlParameters($Context->Configuration['SAFE_REDIRECT'], 'ReturnUrl=' . urlencode(GetRequestUri()));
Redirect($Url);
}
}
示例4: str_replace
<?php
// Note: This file is included from the library/Vanilla/Vanilla.Control.Menu.php class.
$this->CallDelegate('PreHeadRender');
echo '
<div id="Header">
<div id="Session">
';
if ($this->Context->Session->UserID > 0) {
echo str_replace('//1', $this->Context->Session->User->Name, $this->Context->GetDefinition('SignedInAsX')) . ' (<a href="' . FormatStringForDisplay(AppendUrlParameters($this->Context->Configuration['SIGNOUT_URL'], 'FormPostBackKey=' . $this->Context->Session->GetCsrfValidationKey())) . '">' . $this->Context->GetDefinition('SignOut') . '</a>)';
} else {
echo $this->Context->GetDefinition('NotSignedIn') . ' (<a href="' . FormatStringForDisplay(AppendUrlParameters($this->Context->Configuration['SIGNIN_URL'], 'ReturnUrl=' . urlencode(GetRequestUri(0)))) . '">' . $this->Context->GetDefinition('SignIn') . '</a> or
<a href="' . FormatStringForDisplay(AppendUrlParameters($this->Context->Configuration['REGISTRATION_URL'], 'ReturnUrl=' . urlencode(GetRequestUri(0)))) . '">' . $this->Context->GetDefinition('Register') . '</a>)';
}
echo '
</div>
<a name="pgtop"></a>
<h1>
' . $this->Context->Configuration['BANNER_TITLE'] . '
</h1>
<ul>
';
while (list($Key, $Tab) = each($this->Tabs)) {
echo '<li' . $this->TabClass($this->CurrentTab, $Tab['Value']) . '><a href="' . $Tab['Url'] . '" ' . $Tab['Attributes'] . '>' . $Tab['Text'] . '</a></li>';
}
echo '
</ul>
</div>
';
$this->CallDelegate('PreBodyRender');
echo '<div id="Body">';
示例5: array
$_GET += $vars;
$_REQUEST += $vars;
if (ini_get_bool("register_globals")) {
$GLOBALS += $vars;
}
$_SERVER["QUERY_STRING"] = $QUERY_STRING = $params;
}
}
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;
$uriPath = GetRequestUri();
define("POST_FORM_ACTION_URI", htmlspecialcharsbx("/bitrix/urlrewrite.php?SEF_APPLICATION_CUR_PAGE_URL=" . urlencode($uriPath)));
}
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"];
}
if (($pos = strpos($url, "?")) !== false) {
$params = substr($url, $pos + 1);
parse_str($params, $vars);
unset($vars["SEF_APPLICATION_CUR_PAGE_URL"]);
$_GET += $vars;
示例6: ThemeFilePath
$Discussion = $this->Context->ObjectFactory->NewContextObject($this->Context, 'Discussion');
$FirstRow = 1;
$CurrentUserJumpToLastCommentPref = $this->Context->Session->User->Preference('JumpToLastReadComment');
$DiscussionList = '';
$ThemeFilePath = ThemeFilePath($this->Context->Configuration, 'discussion.php');
$Alternate = 0;
while ($Row = $this->Context->Database->GetRow($this->DiscussionData)) {
$Discussion->Clear();
$Discussion->GetPropertiesFromDataSet($Row, $this->Context->Configuration);
$Discussion->FormatPropertiesForDisplay();
// Prefix the discussion name with the whispered-to username if this is a whisper
if ($Discussion->WhisperUserID > 0) {
$Discussion->Name = @$Discussion->WhisperUsername . ': ' . $Discussion->Name;
}
// Discussion search results are identical to regular discussion listings, so include the discussion search results template here.
include $ThemeFilePath;
$FirstRow = 0;
$Alternate = FlipBool($Alternate);
}
echo $DiscussionList . '
</ol>
</div>';
if ($this->DiscussionDataCount > 0) {
echo '<div class="ContentInfo Bottom">
<div class="PageInfo">
<p>' . $pl->GetPageDetails($this->Context) . '</p>
' . $PageList . '
</div>
<a id="TopOfPage" href="' . GetRequestUri() . '#pgtop">' . $this->Context->GetDefinition('TopOfPage') . '</a>
</div>';
}
示例7: htmlspecialcharsbx
$GLOBALS['____891427501'][13](___253155201(33), $_1219037646[___253155201(34)]);
$GLOBALS['____891427501'][14](___253155201(35), $_1219037646[___253155201(36)]);
$GLOBALS['____891427501'][15](___253155201(37), $_1219037646[___253155201(38)]);
$GLOBALS['____891427501'][16](___253155201(39), $_1219037646[___253155201(40)]);
$GLOBALS['____891427501'][17](___253155201(41), $_1219037646[___253155201(42)]);
$_1963566382 = $_53366795->getContext();
$_186062723 = $_1963566382->getRequest();
if (!$_186062723->isAdminSection()) {
$_1963566382->setSite(SITE_ID);
}
$_1963566382->setLanguage(LANGUAGE_ID);
$_1963566382->setCulture(new \Bitrix\Main\Context\Culture($_1219037646));
$_53366795->start();
$GLOBALS[___253155201(43)]->reinitPath();
if (!$GLOBALS['____891427501'][18](___253155201(44))) {
$GLOBALS['____891427501'][19](___253155201(45), htmlspecialcharsbx(GetRequestUri()));
}
$GLOBALS[___253155201(46)] = array();
$GLOBALS[___253155201(47)] = array();
$GLOBALS['_____451545984'][3]($_SERVER[___253155201(48)] . BX_ROOT . ___253155201(49));
$GLOBALS['_____451545984'][4]($_SERVER[___253155201(50)] . BX_ROOT . ___253155201(51));
$GLOBALS['_____451545984'][5]($_SERVER[___253155201(52)] . BX_ROOT . ___253155201(53));
$GLOBALS['_____451545984'][6](__FILE__);
$GLOBALS['____891427501'][20](COption::$GLOBALS['_____451545984'][7](___253155201(54), ___253155201(55), E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_PARSE) & ~E_STRICT);
if (!$GLOBALS['____891427501'][21](___253155201(56)) && COption::$GLOBALS['_____451545984'][8](___253155201(57), ___253155201(58), ___253155201(59)) != ___253155201(60)) {
$GLOBALS['____891427501'][22](___253155201(61), true);
}
require_once $_SERVER[___253155201(62)] . BX_ROOT . ___253155201(63);
require_once $_SERVER[___253155201(64)] . BX_ROOT . ___253155201(65);
$GLOBALS['____891427501'][23](___253155201(66), ___253155201(67));
class CBXFeatures
示例8: zbp_index_redirect_install
<?php
/**
* Z-Blog with PHP
* @author
* @copyright (C) RainbowSoft Studio
* @version
*/
require './zb_system/function/c_system_base.php';
zbp_index_redirect_install();
$zbp->Load();
foreach ($GLOBALS['Filter_Plugin_Index_Begin'] as $fpname => &$fpsignal) {
$fpname();
}
$url = GetRequestUri();
if ($url == $cookiespath || $url == $cookiespath . 'index.php') {
ViewList(null, null, null, null, null);
} elseif (isset($_GET['id']) || isset($_GET['alias'])) {
ViewPost(GetVars('id', 'GET'), GetVars('alias', 'GET'));
} elseif (isset($_GET['page']) || isset($_GET['cate']) || isset($_GET['auth']) || isset($_GET['date']) || isset($_GET['tags'])) {
ViewList(GetVars('page', 'GET'), GetVars('cate', 'GET'), GetVars('auth', 'GET'), GetVars('date', 'GET'), GetVars('tags', 'GET'));
} else {
ViewAuto($url);
}
foreach ($GLOBALS['Filter_Plugin_Index_End'] as $fpname => &$fpsignal) {
$fpname();
}
RunTime();
示例9: _stripslashes
_stripslashes($_GET);
_stripslashes($_POST);
_stripslashes($_COOKIE);
_stripslashes($_REQUEST);
}
/**
* 定义系统全局变量
*/
/**
* 当前动作命令
*/
$GLOBALS['action'] = '';
/**
* 当前请求路径
*/
$GLOBALS['currenturl'] = GetRequestUri();
/**
* 语言包
*/
$GLOBALS['lang'] = array();
/**
* 系统根路径
*/
$GLOBALS['blogpath'] = ZBP_PATH;
/**
* 用户路径
*/
$GLOBALS['usersdir'] = ZBP_PATH . 'zb_users/';
/**
* 已激活插件列表
*/
示例10: str_replace
<?php
// Note: This file is included from the library/Vanilla/Vanilla.Control.Menu.php class.
echo '<div id="Session">';
if ($this->Context->Session->UserID > 0) {
echo str_replace('//1', $this->Context->Session->User->Name, $this->Context->GetDefinition('SignedInAsX')) . ' (<a href="' . $this->Context->Configuration['SIGNOUT_URL'] . '">' . $this->Context->GetDefinition('SignOut') . '</a>)';
} else {
echo $this->Context->GetDefinition('NotSignedIn') . ' (<a href="' . AppendUrlParameters($this->Context->Configuration['SIGNIN_URL'], 'ReturnUrl=' . GetRequestUri()) . '">' . $this->Context->GetDefinition('SignIn') . '</a>)';
}
echo '</div>';
$this->CallDelegate('PreHeadRender');
echo '<div id="Header">
<a name="pgtop"></a>
<h1>
' . $this->Context->Configuration['BANNER_TITLE'] . '
</h1>
<ul>';
while (list($Key, $Tab) = each($this->Tabs)) {
echo '<li' . $this->TabClass($this->CurrentTab, $Tab['Value']) . '><a href="' . $Tab['Url'] . '" ' . $Tab['Attributes'] . '>' . $Tab['Text'] . '</a></li>';
}
echo '</ul>
</div>';
$this->CallDelegate('PreBodyRender');
echo '<div id="Body">';
示例11: str_replace
<?php
// Note: This file is included from the library/Vanilla/Vanilla.Control.Menu.php class.
echo '<div id="Session">';
if ($this->Context->Session->UserID > 0) {
echo str_replace('//1', $this->Context->Session->User->Name, $this->Context->GetDefinition('SignedInAsX')) . ' (<a href="' . FormatStringForDisplay(AppendUrlParameters($this->Context->Configuration['SIGNOUT_URL'], 'FormPostBackKey=' . $this->Context->Session->GetCsrfValidationKey())) . '">' . $this->Context->GetDefinition('SignOut') . '</a>)';
} else {
echo $this->Context->GetDefinition('NotSignedIn') . ' (<a href="' . FormatStringForDisplay(AppendUrlParameters($this->Context->Configuration['SIGNIN_URL'], 'ReturnUrl=' . urlencode(GetRequestUri(0)))) . '">' . $this->Context->GetDefinition('SignIn') . '</a>)';
}
echo '</div>';
$this->CallDelegate('PreHeadRender');
echo '<div id="Header">
<a name="pgtop"></a>
<h1>
' . $this->Context->Configuration['BANNER_TITLE'] . '
</h1>
<ul>';
while (list($Key, $Tab) = each($this->Tabs)) {
echo '<li' . $this->TabClass($this->CurrentTab, $Tab['Value']) . '><a href="' . $Tab['Url'] . '" ' . $Tab['Attributes'] . '>' . $Tab['Text'] . '</a></li>';
}
echo '</ul>
</div>';
$this->CallDelegate('PreBodyRender');
echo '<div id="Body">';
示例12: htmlspecialcharsbx
$GLOBALS['____967106059'][14](___1507790831(36), $_1293078348[___1507790831(37)]);
$GLOBALS['____967106059'][15](___1507790831(38), $_1293078348[___1507790831(39)]);
$GLOBALS['____967106059'][16](___1507790831(40), $_1293078348[___1507790831(41)]);
$GLOBALS['____967106059'][17](___1507790831(42), $_1293078348[___1507790831(43)]);
$GLOBALS['____967106059'][18](___1507790831(44), $_1293078348[___1507790831(45)]);
$_1490198839 = $_1628814470->getContext();
$_1490198839->setLanguage(LANGUAGE_ID);
$_1490198839->setCulture(new \Bitrix\Main\Context\Culture($_1293078348));
$_446732962 = $_1490198839->getRequest();
if (!$_446732962->isAdminSection()) {
$_1490198839->setSite(SITE_ID);
}
$_1628814470->start();
$GLOBALS[___1507790831(46)]->reinitPath();
if (!$GLOBALS['____967106059'][19](___1507790831(47))) {
$GLOBALS['____967106059'][20](___1507790831(48), htmlspecialcharsbx(GetRequestUri()));
}
$GLOBALS[___1507790831(49)] = array();
$GLOBALS[___1507790831(50)] = array();
$GLOBALS['_____707901553'][3]($_SERVER[___1507790831(51)] . BX_ROOT . ___1507790831(52));
$GLOBALS['_____707901553'][4]($_SERVER[___1507790831(53)] . BX_ROOT . ___1507790831(54));
$GLOBALS['_____707901553'][5]($_SERVER[___1507790831(55)] . BX_ROOT . ___1507790831(56));
$GLOBALS['_____707901553'][6](__FILE__);
$GLOBALS['____967106059'][21](COption::$GLOBALS['_____707901553'][7](___1507790831(57), ___1507790831(58), E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_PARSE) & ~E_STRICT & ~E_DEPRECATED);
if (!$GLOBALS['____967106059'][22](___1507790831(59)) && COption::$GLOBALS['_____707901553'][8](___1507790831(60), ___1507790831(61), ___1507790831(62)) != ___1507790831(63)) {
$GLOBALS['____967106059'][23](___1507790831(64), true);
}
require_once $_SERVER[___1507790831(65)] . BX_ROOT . ___1507790831(66);
require_once $_SERVER[___1507790831(67)] . BX_ROOT . ___1507790831(68);
class CBXFeatures
{
示例13: htmlspecialcharsbx
$GLOBALS['____445116793'][14](___47739928(36), $_1626688501[___47739928(37)]);
$GLOBALS['____445116793'][15](___47739928(38), $_1626688501[___47739928(39)]);
$GLOBALS['____445116793'][16](___47739928(40), $_1626688501[___47739928(41)]);
$GLOBALS['____445116793'][17](___47739928(42), $_1626688501[___47739928(43)]);
$GLOBALS['____445116793'][18](___47739928(44), $_1626688501[___47739928(45)]);
$_1364034730 = $_359196812->getContext();
$_1364034730->setLanguage(LANGUAGE_ID);
$_1364034730->setCulture(new \Bitrix\Main\Context\Culture($_1626688501));
$_936033440 = $_1364034730->getRequest();
if (!$_936033440->isAdminSection()) {
$_1364034730->setSite(SITE_ID);
}
$_359196812->start();
$GLOBALS[___47739928(46)]->reinitPath();
if (!$GLOBALS['____445116793'][19](___47739928(47))) {
$GLOBALS['____445116793'][20](___47739928(48), htmlspecialcharsbx(GetRequestUri()));
}
$GLOBALS[___47739928(49)] = array();
$GLOBALS[___47739928(50)] = array();
$GLOBALS['_____578075656'][3]($_SERVER[___47739928(51)] . BX_ROOT . ___47739928(52));
$GLOBALS['_____578075656'][4]($_SERVER[___47739928(53)] . BX_ROOT . ___47739928(54));
$GLOBALS['_____578075656'][5]($_SERVER[___47739928(55)] . BX_ROOT . ___47739928(56));
$GLOBALS['_____578075656'][6](__FILE__);
$GLOBALS['____445116793'][21](COption::$GLOBALS['_____578075656'][7](___47739928(57), ___47739928(58), E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_PARSE) & ~E_STRICT & ~E_DEPRECATED);
if (!$GLOBALS['____445116793'][22](___47739928(59)) && COption::$GLOBALS['_____578075656'][8](___47739928(60), ___47739928(61), ___47739928(62)) != ___47739928(63)) {
$GLOBALS['____445116793'][23](___47739928(64), true);
}
require_once $_SERVER[___47739928(65)] . BX_ROOT . ___47739928(66);
require_once $_SERVER[___47739928(67)] . BX_ROOT . ___47739928(68);
$GLOBALS['____445116793'][24](___47739928(69), ___47739928(70));
class CBXFeatures
示例14: htmlspecialcharsbx
$GLOBALS['____1580035060'][14](___1197454902(36), $_1324471753[___1197454902(37)]);
$GLOBALS['____1580035060'][15](___1197454902(38), $_1324471753[___1197454902(39)]);
$GLOBALS['____1580035060'][16](___1197454902(40), $_1324471753[___1197454902(41)]);
$GLOBALS['____1580035060'][17](___1197454902(42), $_1324471753[___1197454902(43)]);
$GLOBALS['____1580035060'][18](___1197454902(44), $_1324471753[___1197454902(45)]);
$_2036466064 = $_287855657->getContext();
$_2036466064->setLanguage(LANGUAGE_ID);
$_2036466064->setCulture(new \Bitrix\Main\Context\Culture($_1324471753));
$_1850355670 = $_2036466064->getRequest();
if (!$_1850355670->isAdminSection()) {
$_2036466064->setSite(SITE_ID);
}
$_287855657->start();
$GLOBALS[___1197454902(46)]->reinitPath();
if (!$GLOBALS['____1580035060'][19](___1197454902(47))) {
$GLOBALS['____1580035060'][20](___1197454902(48), htmlspecialcharsbx(GetRequestUri()));
}
$GLOBALS[___1197454902(49)] = array();
$GLOBALS[___1197454902(50)] = array();
$GLOBALS['_____392502543'][3]($_SERVER[___1197454902(51)] . BX_ROOT . ___1197454902(52));
$GLOBALS['_____392502543'][4]($_SERVER[___1197454902(53)] . BX_ROOT . ___1197454902(54));
$GLOBALS['_____392502543'][5]($_SERVER[___1197454902(55)] . BX_ROOT . ___1197454902(56));
$GLOBALS['_____392502543'][6](__FILE__);
$GLOBALS['____1580035060'][21](COption::$GLOBALS['_____392502543'][7](___1197454902(57), ___1197454902(58), E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_PARSE) & ~E_STRICT & ~E_DEPRECATED);
if (!$GLOBALS['____1580035060'][22](___1197454902(59)) && COption::$GLOBALS['_____392502543'][8](___1197454902(60), ___1197454902(61), ___1197454902(62)) != ___1197454902(63)) {
$GLOBALS['____1580035060'][23](___1197454902(64), true);
}
require_once $_SERVER[___1197454902(65)] . BX_ROOT . ___1197454902(66);
require_once $_SERVER[___1197454902(67)] . BX_ROOT . ___1197454902(68);
class CBXFeatures
{
示例15: htmlspecialcharsbx
$GLOBALS['____1906789210'][13](___252317271(33), $_1847964657[___252317271(34)]);
$GLOBALS['____1906789210'][14](___252317271(35), $_1847964657[___252317271(36)]);
$GLOBALS['____1906789210'][15](___252317271(37), $_1847964657[___252317271(38)]);
$GLOBALS['____1906789210'][16](___252317271(39), $_1847964657[___252317271(40)]);
$GLOBALS['____1906789210'][17](___252317271(41), $_1847964657[___252317271(42)]);
$_1930557329 = $_1404379993->getContext();
$_2068170702 = $_1930557329->getRequest();
if (!$_2068170702->isAdminSection()) {
$_1930557329->setSite(SITE_ID);
}
$_1930557329->setLanguage(LANGUAGE_ID);
$_1930557329->setCulture(new \Bitrix\Main\Context\Culture($_1847964657));
$_1404379993->start();
$GLOBALS[___252317271(43)]->reinitPath();
if (!$GLOBALS['____1906789210'][18](___252317271(44))) {
$GLOBALS['____1906789210'][19](___252317271(45), htmlspecialcharsbx(GetRequestUri()));
}
$GLOBALS[___252317271(46)] = array();
$GLOBALS[___252317271(47)] = array();
$GLOBALS['_____410201624'][3]($_SERVER[___252317271(48)] . BX_ROOT . ___252317271(49));
$GLOBALS['_____410201624'][4]($_SERVER[___252317271(50)] . BX_ROOT . ___252317271(51));
$GLOBALS['_____410201624'][5]($_SERVER[___252317271(52)] . BX_ROOT . ___252317271(53));
$GLOBALS['_____410201624'][6](__FILE__);
$GLOBALS['____1906789210'][20](COption::$GLOBALS['_____410201624'][7](___252317271(54), ___252317271(55), E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR | E_PARSE) & ~E_STRICT);
if (!$GLOBALS['____1906789210'][21](___252317271(56)) && COption::$GLOBALS['_____410201624'][8](___252317271(57), ___252317271(58), ___252317271(59)) != ___252317271(60)) {
$GLOBALS['____1906789210'][22](___252317271(61), true);
}
require_once $_SERVER[___252317271(62)] . BX_ROOT . ___252317271(63);
require_once $_SERVER[___252317271(64)] . BX_ROOT . ___252317271(65);
class CBXFeatures
{