Cheetah
r.php
Go to the documentation of this file.
1 <?php
2 
8 require_once( '../inc/header.inc.php' );
9 require_once( CH_DIRECTORY_PATH_INC . 'design.inc.php' );
10 require_once( CH_DIRECTORY_PATH_INC . 'utils.inc.php' );
11 require_once( CH_DIRECTORY_PATH_ROOT . 'xmlrpc/ChWsbXMLRPCUtil.php' );
12 
13 $sUser = ch_get('user');
14 $sPwd = ch_get('pwd');
15 $sUrl = rawurldecode(ch_get('url'));
17 
18 if ($iId) {
19  ch_login($iId);
20  header("HTTP/1.1 301 Moved Permanently");
21  header("Location: " . CH_WSB_URL_ROOT . $sUrl);
22  exit;
23 } else {
24  $GLOBALS['oSysTemplate']->addCss('mobile.css');
25  $aVars = array ('content' => $_page_cont[$_ni]['page_main_code']);
26  $sOutput = $GLOBALS['oSysTemplate']->parseHtmlByName('mobile_box.html', $aVars);
28  $_page['name_index'] = $iNameIndex;
29  $_page_cont[$iNameIndex]['page_main_code'] = '<div style="text-align:center;" class="ch-sys-mobile-padding">Access Denied</div>';
30 }
31 
32 PageCode();
33 
$sUrl
$sUrl
Definition: r.php:15
header
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
Definition: URI.MungeResources.txt:10
$_page
$_page['name_index']
Definition: r.php:28
$iId
$iId
Definition: r.php:16
ch_login
ch_login($iId, $bRememberMe=false, $bAlert=true)
Definition: profiles.inc.php:514
$_ni
$_ni
Definition: about_us.php:23
ch_get
ch_get($sName)
Definition: utils.inc.php:1664
$iNameIndex
$iNameIndex
Definition: r.php:27
php
$_page_cont
$_page_cont[$iNameIndex]['page_main_code']
Definition: r.php:29
$sPwd
$sPwd
Definition: r.php:14
exit
exit
Definition: cart.php:21
PageCode
PageCode($oTemplate=null)
Definition: design.inc.php:91
$sOutput
$sOutput
Definition: r.php:26
ChWsbXMLRPCUtil\checkLogin
static checkLogin($sUser, $sPwd)
Definition: ChWsbXMLRPCUtil.php:239
$aVars
$aVars
Definition: r.php:25
$GLOBALS
$GLOBALS['iAdminPage']
Definition: advanced_settings.php:10
$sUser
$sUser
Definition: r.php:13