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/staticpages/controller/staticpages.module.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/clansuite 
    32  
    3329    * 
    3430    * @version    SVN: $Id: index.module.php 2625 2008-12-09 00:04:43Z vain $ 
     
    3632 
    3733# Security Handler 
    38 if (defined('IN_CS') == false) 
     34if (defined('IN_CS') === false) 
    3935{ 
    4036    die('Clansuite not loaded. Direct Access forbidden.'); 
     
    4541 * 
    4642 */ 
    47 class Clansuite_Module_Staticpages extends Clansuite_Module_Controller implements Clansuite_Module_Interface 
     43class Clansuite_Module_Staticpages extends Clansuite_Module_Controller 
    4844{ 
    4945    /** 
    5046     * Module_Staticpages -> Execute 
    5147     */ 
    52     public function initializeModule(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 
     48    public function initializeModule() 
    5349    { 
    5450        # read module config 
     
    6359    public function action_show() 
    6460    { 
    65         $page = (string) $this->injector->instantiate('Clansuite_HttpRequest')->getParameter('page'); 
     61        $page = (string) $this->request->getParameterFromGet('page'); 
     62 
     63        var_dump($page); 
    6664 
    6765        // if no page is requested, show overview 
     
    7573 
    7674        // get inputfilter class 
    77         #$input = $this->injector->instantiate('Clansuite_Inputfilter'); 
     75        #$input = $this->getInjector()->instantiate('Clansuite_Inputfilter'); 
    7876 
    7977        // check if page was set and is sanitized # and $input->check( $page, 'is_abc|is_int|is_custom', '_\s' ) 
Note: See TracChangeset for help on using the changeset viewer.