本文整理汇总了PHP中MiscLib::baseUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP MiscLib::baseUrl方法的具体用法?PHP MiscLib::baseUrl怎么用?PHP MiscLib::baseUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MiscLib
的用法示例。
在下文中一共展示了MiscLib::baseUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: preprocess
function preprocess()
{
if (isset($_REQUEST["selectlist"])) {
$parser = new PaycardDatacapParser();
switch ($_REQUEST['selectlist']) {
case 'CAADMIN':
$this->change_page('PaycardEmvCaAdmin.php');
return false;
case 'CC':
$json = $parser->parse('DATACAPCC');
$this->change_page($json['main_frame']);
return false;
case 'DC':
$json = $parser->parse('DATACAPDC');
$this->change_page($json['main_frame']);
return false;
case 'EMV':
$json = $parser->parse('DATACAPEMV');
$this->change_page($json['main_frame']);
return false;
case 'EF':
$json = $parser->parse('DATACAPEF');
$this->change_page($json['main_frame']);
return false;
case 'EC':
$json = $parser->parse('DATACAPEC');
$this->change_page($json['main_frame']);
return false;
case 'GD':
$json = $parser->parse('DATACAPGD');
$this->change_page($json['main_frame']);
return false;
case 'PVEF':
$json = $parser->parse('PVDATACAPEF');
$this->change_page($json['main_frame']);
return false;
case 'PVEC':
$json = $parser->parse('PVDATACAPEC');
$this->change_page($json['main_frame']);
return false;
case 'PVGD':
$json = $parser->parse('PVDATACAPGD');
$this->change_page($json['main_frame']);
return false;
case 'ACGD':
$json = $parser->parse('ACDATACAPGD');
$this->change_page($json['main_frame']);
return false;
case 'AVGD':
$json = $parser->parse('AVDATACAPGD');
$this->change_page($json['main_frame']);
return false;
case 'EBT':
$this->menu = array('EF' => 'Food Sale', 'EC' => 'Cash Sale', 'PVEF' => 'Food Balance', 'PVEC' => 'Cash Balance');
$this->clear_to_home = 0;
break;
case 'GIFT':
$this->menu = array('GD' => 'Gift Sale', 'ACGD' => 'Activate Card', 'AVGD' => 'Reload Card', 'PVGD' => 'Check Balance');
$this->clear_to_home = 0;
break;
case 'CL':
default:
if (isset($_REQUEST['clear-to-home']) && $_REQUEST['clear-to-home']) {
$this->change_page(MiscLib::baseUrl() . 'gui-modules/pos2.php');
return false;
}
break;
}
}
if (!isset($_REQUEST['selectlist']) || $_REQUEST['selectlist'] == 'CL' || $_REQUEST['selectlist'] === '') {
if (CoreLocal::get('PaycardsDatacapMode') == 1) {
$this->menu = array('EMV' => 'EMV Credit/Debit', 'EBT' => 'EBT', 'GIFT' => 'Gift');
} elseif (CoreLocal::get('PaycardsDatacapMode') == 2 || CoreLocal::get('PaycardsDatacapMode') == 3) {
$this->menu = array('EMV' => 'EMV Credit/Debit', 'CAADMIN' => 'Admin Functions');
}
}
return true;
}