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/guestbook/controller/guestbook.module.php

    r4506 r4599  
    22   /** 
    33    * Clansuite - just an eSports CMS 
    4     * Jens-André Koch © 2005 - onwards 
     4    * Jens-André Koch © 2005 - onwards 
    55    * http://www.clansuite.com/ 
    66    * 
     
    2424    * 
    2525    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    26     * 
    27     * @author     Jens-André Koch   <vain@clansuite.com> 
    28     * @author     Florian Wolf      <xsign.dll@clansuite.com> 
    29     * @copyright  Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 
    30     * 
     26    * @author     Jens-André Koch  <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005 - onwards) 
    3128    * @link       http://www.clansuite.com 
    32     * @link       http://gna.org/projects/clansuite 
    33  
    3429    * 
    3530    * @version    SVN: $Id$ 
     
    3732 
    3833# Security Handler 
    39 if(defined('IN_CS') == false) 
     34if(defined('IN_CS') === false) 
    4035{ 
    4136    die('Clansuite not loaded. Direct Access forbidden.'); 
     
    4540 * This is the Clansuite Module Class - Guestbook 
    4641 * 
    47  * @author     Jens-André Koch <vain@clansuite.com> 
    48  * @copyright  Jens-André Koch (2005 - onwards) 
    49  
     42 * @author     Jens-André Koch <vain@clansuite.com>, Florian Wolf <xsign.dll@clansuite.com> 
     43 * @copyright  Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 
    5044 * 
    5145 * @category    Clansuite 
     
    5347 * @subpackage  Guestbook 
    5448 */ 
    55 class Clansuite_Module_Guestbook extends Clansuite_Module_Controller implements Clansuite_Module_Interface 
     49class Clansuite_Module_Guestbook extends Clansuite_Module_Controller 
    5650{ 
    5751    /** 
    5852     * Module_Guestbook -> Execute 
    5953     */ 
    60     public function initializeModule(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 
     54    public function initializeModule() 
    6155    { 
    6256        parent::initModel('guestbook'); 
     
    7064        # Defining initial variables 
    7165        # Pager Chapter in Doctrine Manual  -> http://www.phpdoctrine.org/documentation/manual/0_10?one-page#utilities 
    72         $currentPage = $this->injector->instantiate('Clansuite_HttpRequest')->getParameter('page'); 
     66        $currentPage = $this->getHttpRequest()->getParameter('page'); 
    7367        $resultsPerPage = 3; 
    7468 
     
    119113            #$SmartyPaginate->assign($tpl); 
    120114 
    121             $bbcode = new Clansuite_Bbcode($this->injector); 
     115            $bbcode = new Clansuite_Bbcode($this->getInjector()); 
    122116 
    123117            // Set 'not specified's 
Note: See TracChangeset for help on using the changeset viewer.