PHP Classes

File: commands/logout.php

Recommend this page to a friend!
  Classes of Andoitz Jordan Marmolejo  >  PHP Query Terminal  >  commands/logout.php  >  Download  
File: commands/logout.php
Role: Example script
Content type: text/plain
Description: Class example for command
Class: PHP Query Terminal
Run command classes from an interactive console
Author: By
Last change: PHPQuery 0.1

PHPQuery Terminal is a PHP terminal that works with Ajax and PHP
Classes. Really easy to use. Write a command and the class with the same
name will be executed. Also, you can send it a few commands that will be
used as parameters.
Date: 14 days ago
Size: 407 bytes
 

Contents

Class file image Download
<?php
Class logout extends Command{
    public function
__construct(){
       
parent::__construct();
    }
    public function
init($params){
       
session_unset();
       
$this->abort("La sesiĆ³n se ha cerrado correctamente.");
    }
    private function
abort($message,$header=array()){
       
$result = array("data" => "\n [[ib;#FFF;<BACKGROUND>]".$message."]\n",
                       
"header" => $header);
        echo
json_encode($result);
        die();
    }
}
?>

For more information send a message to info at phpclasses dot org.