Source for file AfterKicklistInsertion.class.php

Documentation is available at AfterKicklistInsertion.class.php

  1. <?php
  2. /**
  3.  * Class AfterKicklistInsertion, shows the page after the user was kicked
  4.  *
  5.  * LICENSE: CREATIVE COMMONS PUBLIC LICENSE  "Namensnennung — Nicht-kommerziell 2.0"
  6.  *
  7.  * @copyright  2009 <SEDesign />
  8.  * @license    http://creativecommons.org/licenses/by-nc/2.0/de/
  9.  * @version    $3.0.6$
  10.  * @link       http://www.sedesign.de/de_produkte_chat-v3.html
  11.  * @since      File available since Alpha 1.0
  12.  */
  13.  
  14. {
  15.  
  16.     /**
  17.     * Constructor
  18.     *
  19.     * @uses ConnectDB::sqlSet()
  20.     * @uses ConnectDB::close()
  21.     * @uses LangXml object creation
  22.     * @uses LangXml::getLang() parser method
  23.     * @uses LangXml::getLang() parser method
  24.     * @return void 
  25.     */
  26.     public function __construct ()
  27.         
  28.         // call parent Constructor from class DbConectionMaker
  29.         parent::__construct()
  30.  
  31.         session_start();
  32.  
  33.         header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');
  34.         
  35.         $this->dbObj->sqlSet("DELETE FROM {$this->_prefix}etchat_useronline WHERE etchat_onlineuser_fid = ".$_SESSION['etchat_'.$this->_prefix.'user_id']);
  36.         $this->dbObj->close();
  37.         
  38.         // create new LangXml Object
  39.         $langObj = new LangXml();
  40.         $lang=$langObj->getLang()->admin[0]->kick[0];
  41.         
  42.         // initialize template
  43.         $this->initTemplate($lang);
  44.         
  45.         @session_unset();
  46.         @session_destroy();
  47.         
  48.     }
  49.     
  50.     /**
  51.     * Initializer for template
  52.     *
  53.     * @return void
  54.     */
  55.     private function initTemplate($lang){
  56.         // Include Template
  57.         include_once("styles/".$_SESSION['etchat_'.$this->_prefix.'style']."/kicked.tpl.html");
  58.     }

Documentation generated on Thu, 05 May 2011 14:05:54 +0000 by phpDocumentor 1.4.3