Source for file AdminIndex.class.php

Documentation is available at AdminIndex.class.php

  1. <?php
  2. /**
  3.  * Class AdminIndex
  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. class AdminIndex extends EtChatConfig
  15. {
  16.  
  17.     /**
  18.     * Constructor
  19.     *
  20.     * @uses LangXml object creation
  21.     * @uses LangXml::getLang() parser method
  22.     * @return void 
  23.     */
  24.     public function __construct ()
  25.         
  26.         // call parent Constructor from class EtChatConfig
  27.         parent::__construct()
  28.  
  29.         session_start();
  30.  
  31.         header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');
  32.         
  33.         // create new LangXml Object
  34.         $langObj = new LangXml();
  35.         $lang=$langObj->getLang()->admin[0]->index_php[0];
  36.         
  37.         
  38.         if ($_SESSION['etchat_'.$this->_prefix.'user_priv']=="admin"){
  39.             // initialize template
  40.             $this->initTemplate($lang);
  41.         }else{
  42.             header("Location: ./");
  43.         }
  44.         
  45.     }
  46.     
  47.     /**
  48.     * Initializer for template
  49.     *
  50.     * @return void 
  51.     */
  52.     private function initTemplate($lang){
  53.         // Include Template
  54.         include_once("styles/admin_tpl/index.tpl.html");
  55.     }
  56. }

Documentation generated on Tue, 22 Dec 2009 09:42:42 +0100 by phpDocumentor 1.4.1