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/menu/controller/menu.admin.php

    r4506 r4599  
    2222    * 
    2323    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    24     * 
    2524    * @author     Jens-André Koch <vain@clansuite.com> 
    26     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    27     * 
     25    * @copyright  Jens-André Koch (2005 - onwards) 
    2826    * @link       http://www.clansuite.com 
    29     * @link       http://gna.org/projects/ 
    3027    * 
    3128    * @version    SVN: $Id: menueditor.module.php 2248 2008-07-12 01:48:54Z vain $ 
     
    3330 
    3431# Security Handler 
    35 if (defined('IN_CS') == false) 
     32if (defined('IN_CS') === false) 
    3633{ 
    3734    die('Clansuite not loaded. Direct Access forbidden.'); 
     
    4542 * @subpackage  Menu 
    4643 */ 
    47 class Clansuite_Module_Menu_Admin extends Clansuite_Module_Controller implements Clansuite_Module_Interface 
     44class Clansuite_Module_Menu_Admin extends Clansuite_Module_Controller 
    4845{ 
    49     public function initializeModule(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 
     46    public function initializeModule() 
    5047    { 
    5148        parent::initModel('menu'); 
     
    126123        Clansuite_Breadcrumb::add( _('About Clansuite'), '/index.php?mod=menu&amp;sub=admin&amp;action=menueditor2'); 
    127124 
    128         #clansuite_xdebug::printR($treeObject); 
     125        #Clansuite_Debug::printR($treeObject); 
    129126 
    130127 
     
    159156        #$tree = $treeObject->fetchRoots(); 
    160157 
    161         Clansuite_Xdebug::firebug($this->getTree('CsAdminmenuShortcuts')); 
     158        Clansuite_Debug::firebug($this->getTree('CsAdminmenuShortcuts')); 
    162159 
    163160        $treeObject = Doctrine::getTable('CsAdminmenuShortcuts')->getTree(); 
     
    176173            foreach($treeObject->fetchTree($options) as $node) 
    177174            { 
    178                 Clansuite_Xdebug::firebug($node->toArray()); 
     175                Clansuite_Debug::firebug($node->toArray()); 
    179176 
    180177                # If we are on the item of the same level, closing <li> tag before printing item 
     
    207204        $html .= "</ul>"; 
    208205 
    209         Clansuite_Xdebug::firebug($html); 
     206        Clansuite_Debug::firebug($html); 
    210207 
    211208        # assign the html of the tree to the view 
     
    229226         */ 
    230227        # initalize request 
    231         $request = $this->injector->instantiate('Clansuite_HttpRequest'); 
     228        $request = $this->getHttpRequest(); 
    232229        # fetch the container variable from post 
    233         $menu    = $request->getParameter('container','POST'); 
     230        $menu    = $this->request->getParameter('container','POST'); 
    234231 
    235232        # Check if we have some $menu values to insert 
     
    270267        foreach ( $menu as $key => $value ) 
    271268        { 
    272             #clansuite_xdebug::printR($value); 
     269            #Clansuite_Debug::printR($value); 
    273270 
    274271            # fetch activerecord of the adminmenu 
     
    743740                                    ->execute(); 
    744741 
    745             #clansuite_xdebug::printR($result); 
     742            #Clansuite_Debug::printR($result); 
    746743        } 
    747744 
Note: See TracChangeset for help on using the changeset viewer.