当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseController::destroySession方法代码示例

本文整理汇总了PHP中BaseController::destroySession方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseController::destroySession方法的具体用法?PHP BaseController::destroySession怎么用?PHP BaseController::destroySession使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseController的用法示例。


在下文中一共展示了BaseController::destroySession方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
        }        
        
    }
开发者ID:gdalvarezr,项目名称:middleware,代码行数:14,代码来源:TransactionController.php

示例2: 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();
        }
    }
开发者ID:gdalvarezr,项目名称:middleware,代码行数:18,代码来源:IndexController.php

示例3: 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();
        }   	        
        
    } 
开发者ID:gdalvarezr,项目名称:middleware,代码行数:21,代码来源:BalanceController.php

示例4: 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();
            }        
    }
开发者ID:gdalvarezr,项目名称:middleware,代码行数:14,代码来源:UserController.php

示例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();
        }        
    }    
开发者ID:gdalvarezr,项目名称:middleware,代码行数:18,代码来源:InboxController.php

示例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("#", "&lt;", $val) . chr(13);
                }

            } else {
                $totalXML = $decoderRes[0];
            }
            
            include('./www/staticForms/DecoderBASE24ResponseForm.php');
        
        }
        else{
            //Deny Hacking Access
            parent::destroySession();
        }        
        
    }
开发者ID:gdalvarezr,项目名称:middleware,代码行数:50,代码来源:ManagementController.php

示例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&oacute;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();
        }   	            
            
    }     
开发者ID:gdalvarezr,项目名称:middleware,代码行数:33,代码来源:AccountController.php

示例8: logout

 function logout(){
     
     //Close Session DB
     $webUserDTO = $this->session->userdata('webUserDTO');
     
     if ($webUserDTO != null){
         $LoginID = $webUserDTO->loginID;
         $this->LoginModel->close_session($LoginID);
         
         //Save Session Start in Log
         $this->AuditModel->validate_object_by_method($webUserDTO->userID, 'Session', 'End', $webUserDTO->sessionID);            
         
     }
     
     //Destroy Session And Redirect
     parent::destroySession();
 }
开发者ID:gdalvarezr,项目名称:middleware,代码行数:17,代码来源:LoginController.php


注:本文中的BaseController::destroySession方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。