Source for file AdminEditRoom.class.php

Documentation is available at AdminEditRoom.class.php

  1. <?php
  2. /**
  3.  * Class RoomsIndex - Admin area
  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 LangXml object creation
  20.     * @uses LangXml::getLang() parser method
  21.     * @uses ConnectDB::sqlSet()
  22.     * @uses ConnectDB::sqlGet()
  23.     * @uses ConnectDB::close()
  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.         // Sets charset and content-type for index.php
  35.         header('content-type: text/html; charset=utf-8');
  36.         
  37.         // create new LangXml Object
  38.         $langObj = new LangXml();
  39.         $lang=$langObj->getLang()->admin[0]->admin_rooms[0];
  40.         
  41.         
  42.         if ($_SESSION['etchat_'.$this->_prefix.'user_priv']=="admin"){
  43.             
  44.             $feld=$this->dbObj->sqlGet("SELECT etchat_id_room, etchat_roomname, etchat_room_goup, etchat_room_pw, etchat_room_message FROM {$this->_prefix}etchat_rooms WHERE etchat_id_room = ".(int)$_GET['id']);
  45.             $this->dbObj->close();
  46.                         
  47.             // initialize Template
  48.             $this->initTemplate($lang$feld);
  49.             
  50.         }else{
  51.             echo $lang->error[0]->tagData;
  52.             return false;
  53.         }    
  54.     }
  55.     
  56.     /**
  57.     * Initializer for template
  58.     *
  59.     * @param Array $feld
  60.     * @param XMLParser $lang, Obj with the needed lang tag from XML lang-file
  61.     * @return void
  62.     */
  63.     private function initTemplate($lang, $feld){
  64.         // Include Template
  65.         include_once("styles/admin_tpl/editRoom.tpl.html");
  66.     }

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