本文整理汇总了PHP中BaseController::allowAccess方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseController::allowAccess方法的具体用法?PHP BaseController::allowAccess怎么用?PHP BaseController::allowAccess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseController
的用法示例。
在下文中一共展示了BaseController::allowAccess方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getData
public function getData(){
///Validate if the user has been loggen in
if (parent::allowAccess()){
echo $this->TransactionModel->get_data_paged();
}
else{
//Deny Hacking Access
parent::destroySession();
}
}
示例2: getUpdateForm
public function getUpdateForm($user_id = null){
///Validate if the user has been loggen in
if (parent::allowAccess()){
$userData = $this->UserModel->get_user($user_id);
//En este archivo PHP (usado como Template), se encuentran mapeados los campos
//Con la variable $userData
include('./www/staticForms/UserUpdateForm.php');
}
else{
//Deny Hacking Access
parent::destroySession();
}
}
示例3: index
function index(){
///Validate if the user has been loggen in
if (parent::allowAccess()){
parent::prepareHTMLData("Panel de Control",
"Panel de Control - Transacciones Recientes (10 min.)",
array("<script src='js/ConredPack/Conred_IndexView.js.php'></script>"));
///Load Content
$this->template->write_view('content', 'Index/IndexView');
$this->template->render();
}
else{
//Deny Hacking Access
parent::destroySession();
}
}
示例4: getBalance
function getBalance(){
///Validate if the user has been loggen in
if (parent::allowAccess()){
$webUserDTO = $this->session->userdata('webUserDTO');
sleep(1); //Ejemplo para Carga de Datos Ajax
$balance = number_format($this->UserModel->get_balance($webUserDTO->userID), 2, ',', '.');
include('./www/staticForms/GetBalanceForm.php');
}
else{
//Deny Hacking Access
parent::destroySession();
}
}
示例5: updateMessageStatus
function updateMessageStatus($messageID = null){
///Validate if the user has been loggen in
if (parent::allowAccess()){
$webUserDTO = $this->session->userdata('webUserDTO');
//Set User Message as Read
$userSetMessageRead = $this->InboxModel->set_message_read($webUserDTO->userID, $messageID);
//Update Message Unread Counter
echo $this->updateMessagesCounter();
}
else{
//Deny Hacking Access
parent::destroySession();
}
}
示例6: explode
function decodeBase24Trx(){
///Validate if the user has been loggen in
if (parent::allowAccess()){
$totalXML = '';
$msg_arrT = '';
//Form Data
$msg_arr = $this->input->get('decoder_trx');
$bytes_shifted = $this->input->get('decoder_bytes');
/*//Con espacios en modo HEX
$msg_arr = explode(" ", $msg_arr);
for($i=$bytes_shifted; $i < count($msg_arr); $i++){
$msg_arrT .= $msg_arr[$i];
if ($i != count($msg_arr) - 1)
$msg_arrT .= " ";
}
*/
///Execute Path
$exePath = $this->config->item('Base24Decoder_path');
//Execute Transaction Decoder
exec( $exePath . " " . "\"" . $msg_arr . "\"" . " " . "\"" . $bytes_shifted . "\"", $decoderRes);
if (count($decoderRes) > 1){
foreach($decoderRes as $key => $val){
if (strlen($val) > 1)
$totalXML .= str_replace("#", "<", $val) . chr(13);
}
} else {
$totalXML = $decoderRes[0];
}
include('./www/staticForms/DecoderBASE24ResponseForm.php');
}
else{
//Deny Hacking Access
parent::destroySession();
}
}
示例7: changePWDAccount
public function changePWDAccount(){
$message1 = "";
$message2 = "";
///Validate if the user has been loggen in
if (parent::allowAccess()){
$webUserDTO = $this->session->userdata('webUserDTO');
$status = $this->UserModel->update_user_password($webUserDTO->userID);
if ($status == 1){
$message1 = "Clave de usuario actualizada.";
$this->saveLog($message1, $message2);
echo "OK";
} else if ($status == 0){
$message1 = "Error actualizando clave de usuario.";
$this->saveLog($message1, $message2);
echo "Error actualizando clave. Clave actual errónea";
} else if ($status == 2){
$message1 = "Error actualizando clave de usuario.";
$this->saveLog($message1, $message2);
echo "Error actualizando clave. Clave utilizada anteriormente, por favor ingrese una clave diferente.";
}
}
else{
//Deny Hacking Access
parent::destroySession();
}
}