Ignore:
Timestamp:
08/27/10 23:01:58 (21 months ago)
Author:
vain
Message:
  • minor change to all security constant checks
  • fixed the non rewrite routing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/templatemanager/controller/templatemanager.admin.php

    r4506 r4599  
    2424    * 
    2525    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    26     * 
    2726    * @author     Jens-André Koch <vain@clansuite.com> 
    2827    * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    3532 
    3633# Security Handler 
    37 if (defined('IN_CS') == false) 
     34if (defined('IN_CS') === false) 
    3835{ 
    3936    die('Clansuite not loaded. Direct Access forbidden.'); 
     
    4744 * @subpackage  Templatemanager 
    4845 */ 
    49 class Clansuite_Module_Templatemanager_Admin extends Clansuite_Module_Controller implements Clansuite_Module_Interface 
     46class Clansuite_Module_Templatemanager_Admin extends Clansuite_Module_Controller 
    5047{ 
    51     public function initializeModule(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 
     48    public function initializeModule() 
    5249    { 
    5350        $this->getModuleConfig(); 
     
    7774        $view->assign('templateeditor_modulename',  $tplmod); 
    7875 
    79         clansuite_xdebug::firebug( ROOT_MOD . $tplmod . DS. 'view' .DS . '*.tpl' ); 
     76        Clansuite_Debug::firebug( ROOT_MOD . $tplmod . DS. 'view' .DS . '*.tpl' ); 
    8077 
    8178        $templates = $this->getTemplatesOfModule($tplmod); 
     
    121118        $file     = $this->getHttpRequest()->getParameter('file', 'G'); 
    122119 
    123         Clansuite_Xdebug::firebug($file); 
     120        Clansuite_Debug::firebug($file); 
    124121 
    125122        # check if we edit a module template or a theme template 
     
    128125            $tplmod = ucfirst(stripslashes($tplmod)); 
    129126            $view->assign('templateeditor_modulename',  $tplmod); 
    130             Clansuite_Xdebug::firebug($tplmod); 
     127            Clansuite_Debug::firebug($tplmod); 
    131128        } 
    132129        elseif(isset($tpltheme)) 
     
    134131            $tpltheme = stripslashes($tpltheme); 
    135132            $view->assign('templateeditor_themename',   $tpltheme); 
    136             Clansuite_Xdebug::firebug($tpltheme); 
     133            Clansuite_Debug::firebug($tpltheme); 
    137134        } 
    138135 
     
    191188    public function action_admin_save() 
    192189    { 
    193         #Clansuite_Xdebug::printR($this->getHttpRequest()); 
     190        #Clansuite_Debug::printR($this->getHttpRequest()); 
    194191 
    195192        $tplfilename    = (string) $this->getHttpRequest()->getParameter('templateeditor_absolute_filename'); 
Note: See TracChangeset for help on using the changeset viewer.