Source for file AdminCreateNewSmilies.class.php

Documentation is available at AdminCreateNewSmilies.class.php

  1. <?php
  2. /**
  3.  * Class AdminCreateNewSmilies - 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.     * @return void 
  22.     */
  23.     public function __construct ()
  24.         
  25.         // call parent Constructor from class EtChatConfig
  26.         parent::__construct()
  27.  
  28.         session_start();
  29.  
  30.         header('Cache-Control: no-store, no-cache, must-revalidate, pre-check=0, post-check=0, max-age=0');
  31.         
  32.         // create new LangXml Object
  33.         $langObj = new LangXml();
  34.         $lang=$langObj->getLang()->admin[0]->admin_smilies[0];
  35.         
  36.         
  37.         if ($_SESSION['etchat_'.$this->_prefix.'user_priv']=="admin"){
  38.             
  39.             // initialize Template
  40.             $this->initTemplate($lang);
  41.             
  42.         }else{
  43.             echo $lang->error[0]->tagData;
  44.             return false;
  45.         }
  46.         
  47.     }
  48.     
  49.     /**
  50.     * Initializer for template
  51.     *
  52.     * @param  XMLParser $lang, Obj with the needed lang tag from XML lang-file
  53.     * @return void 
  54.     */
  55.     private function initTemplate($lang){
  56.         // Include Template
  57.         include_once("styles/admin_tpl/createNewSmilies.tpl.html");
  58.     }
  59. }

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