Changeset 4578


Ignore:
Timestamp:
08/15/10 18:45:12 (18 months ago)
Author:
vain
Message:
  • several changes to copyright, router, bootstrap, frontcontroller and various other files
Location:
trunk
Files:
1 deleted
198 edited

Legend:

Unmodified
Added
Removed
  • trunk/configuration/clansuite.config.php

    r4493 r4578  
    66; This file was generated on 12-05-2010 23:55 
    77; 
    8  
    98 
    109;---------------------------------------- 
     
    133132[error] 
    134133development = 1 
    135 debug = 1 
     134debug =1 
    136135xdebug = 1 
    137136webdebug = 0 
  • trunk/configuration/events.config.php

    r4365 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/acm.class.php

    r4376 r4578  
    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     * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
  • trunk/core/bbcode.core.php

    r4365 r4578  
    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 
    3329    * 
    3430    * @version    SVN: $Id$ 
  • trunk/core/bootstrap/clansuite.application.php

    r4568 r4578  
    2828    * 
    2929    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    30     * 
    3130    * @author     Jens-André Koch <vain@clansuite.com> 
    3231    * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 
    33     * 
    3432    * @link       http://www.clansuite.com 
    35     * @link       http://gna.org/projects/clansuite 
    36     * 
     33    *  
    3734    * @version    SVN: $Id$ 
    3835    */ 
     
    7774         * @var STARTTIME shows Application Starttime 
    7875         */ 
    79         define('STARTTIME', microtime(1)); 
     76        define('STARTTIME', microtime(1), false); 
    8077 
    8178        self::initialize_Loader(); 
     
    8582        self::initialize_Debug(); 
    8683        self::initialize_Version(); 
    87         self::initialize_Locale(); 
     84        self::initialize_Timezone(); 
    8885        self::initialize_Eventdispatcher(); 
    8986        self::initialize_Errorhandling(); 
     
    110107        if(version_compare(PHP_VERSION, $REQUIRED_PHP_VERSION, '<') === true) 
    111108        { 
    112             die('Your PHP Version is <b><font color="#FF0000">' . PHP_VERSION . '</font></b>! Clansuite requires PHP Version <b><font color="#4CC417">' . $REQUIRED_PHP_VERSION . '</font></b>!'); 
     109            die('Your PHP Version is <b><font color="#FF0000">' . PHP_VERSION . '</font></b>! 
     110                 Clansuite requires PHP Version <b><font color="#4CC417">' . $REQUIRED_PHP_VERSION . '</font></b>!'); 
    113111        } 
    114112        unset($REQUIRED_PHP_VERSION); 
     
    169167         *  ================================================ 
    170168         */ 
    171         ini_set('short_open_tag',               'off'); 
    172         ini_set('arg_separator.input',          '&amp;'); 
    173         ini_set('arg_separator.output',         '&amp;'); 
     169        ini_set('short_open_tag', 'off'); 
     170        ini_set('arg_separator.input', '&amp;'); 
     171        ini_set('arg_separator.output', '&amp;'); 
    174172 
    175173        if(extension_loaded('mbstring') == true) 
     
    187185        if(intval(ini_get('memory_limit')) < 16) 
    188186        { 
    189             ini_set('memory_limit',             '16M' ); 
     187            ini_set('memory_limit', '16M'); 
    190188        } 
    191189    } 
     
    213211         * @var DS is a shorthand for DIRECTORY_SEPARATOR 
    214212         */ 
    215         define('DS', DIRECTORY_SEPARATOR); 
     213        define('DS', DIRECTORY_SEPARATOR, false); 
    216214 
    217215        /** 
    218216         * @var PS is a shorthand for PATH_SEPARATOR 
    219217         */ 
    220         define('PS', PATH_SEPARATOR); 
     218        define('PS', PATH_SEPARATOR, false); 
    221219 
    222220        /** 
    223221         * @var HTML Break + Carriage Return "<br />\r\n" 
    224222         */ 
    225         define('NL', "<br />\r\n"); 
     223        define('NL', "<br />\r\n", false); 
    226224 
    227225        /** 
    228226         * @var Carriage Return "\n" 
    229227         */ 
    230         define('CR', "\n"); 
     228        define('CR', "\n", false); 
    231229 
    232230        /** 
    233231         * @var Carriage Return and Tabulator "\n\t" 
    234232         */ 
    235         define('CRT', "\n\t"); 
     233        define('CRT', "\n\t", false); 
    236234 
    237235        /** 
     
    244242         * @var Purpose of ROOT is to provide the absolute path to the current working dir of clansuite 
    245243         */ 
    246         define('ROOT', getcwd() . DS); 
     244        define('ROOT', getcwd() . DS, false); 
    247245        #define('ROOT',  realpath('../')); 
    248246 
     
    250248         * @var ROOT_MOD Root path of the modules directory (with trailing slash) 
    251249         */ 
    252         define('ROOT_MOD', ROOT . self::$config['paths']['mod_folder'] . DS); 
     250        define('ROOT_MOD', ROOT . self::$config['paths']['mod_folder'] . DS, false); 
    253251 
    254252        /** 
    255253         * @var Root path of the themes directory (with trailing slash) 
    256254         */ 
    257         define('ROOT_THEMES', ROOT . self::$config['paths']['themes_folder'] . DS); 
     255        define('ROOT_THEMES', ROOT . self::$config['paths']['themes_folder'] . DS, false); 
    258256 
    259257        /** 
    260258         * @var Root path of the languages directory (with trailing slash) 
    261259         */ 
    262         define('ROOT_LANGUAGES', ROOT . self::$config['paths']['language_folder'] . DS); 
     260        define('ROOT_LANGUAGES', ROOT . self::$config['paths']['language_folder'] . DS, false); 
    263261 
    264262        /** 
    265263         * @var Root path of the core directory (with trailing slash) 
    266264         */ 
    267         define('ROOT_CORE', ROOT . self::$config['paths']['core_folder'] . DS); 
     265        define('ROOT_CORE', ROOT . self::$config['paths']['core_folder'] . DS, false); 
    268266 
    269267        /** 
    270268         * @var Root path of the libraries directory (with trailing slash) 
    271269         */ 
    272         define('ROOT_LIBRARIES', ROOT . self::$config['paths']['libraries_folder'] . DS); 
     270        define('ROOT_LIBRARIES', ROOT . self::$config['paths']['libraries_folder'] . DS, false); 
    273271 
    274272        /** 
    275273         * @var Root path of the upload directory (with trailing slash) 
    276274         */ 
    277         define('ROOT_UPLOAD', ROOT . self::$config['paths']['upload_folder'] . DS); 
     275        define('ROOT_UPLOAD', ROOT . self::$config['paths']['upload_folder'] . DS, false); 
    278276 
    279277        /** 
    280278         * @var Root path of the logs directory (with trailing slash) 
    281279         */ 
    282         define('ROOT_LOGS', ROOT . self::$config['paths']['logfiles_folder'] . DS); 
     280        define('ROOT_LOGS', ROOT . self::$config['paths']['logfiles_folder'] . DS, false); 
    283281 
    284282        /** 
    285283         * @var Root path of the cache directory (with trailing slash) 
    286284         */ 
    287         define('ROOT_CACHE', ROOT . 'cache' . DS); 
     285        define('ROOT_CACHE', ROOT . 'cache' . DS, false); 
    288286 
    289287        /** 
    290288         * @var Root path of the config directory (with trailing slash) 
    291289         */ 
    292         define('ROOT_CONFIG', ROOT . 'configuration' . DS); 
     290        define('ROOT_CONFIG', ROOT . 'configuration' . DS, false); 
    293291 
    294292        /** 
     
    297295        if(isset($_SERVER['HTTPS']) and mb_strtolower($_SERVER['HTTPS']) == 'on') 
    298296        { 
    299             define('PROTOCOL', 'https://'); 
     297            define('PROTOCOL', 'https://', false); 
    300298        } 
    301299        else 
    302300        { 
    303301 
    304             define('PROTOCOL', 'http://'); 
     302            define('PROTOCOL', 'http://', false); 
    305303        } 
    306304 
     
    308306         * @var SERVER_URL 
    309307         */ 
    310         define('SERVER_URL', PROTOCOL . $_SERVER['SERVER_NAME']); 
     308        define('SERVER_URL', PROTOCOL . $_SERVER['SERVER_NAME'], false); 
    311309 
    312310        /** 
     
    315313        if(dirname($_SERVER['PHP_SELF']) == '\\') 
    316314        { 
    317             define('WWW_ROOT', SERVER_URL); 
     315            define('WWW_ROOT', SERVER_URL, false); 
    318316        } 
    319317        else 
    320318        { 
    321             define('WWW_ROOT', SERVER_URL . dirname($_SERVER['PHP_SELF'])); 
     319            define('WWW_ROOT', SERVER_URL . dirname($_SERVER['PHP_SELF']), false); 
    322320        } 
    323321 
     
    325323         * @var WWW_ROOT_THEMES defines the themes folder 
    326324         */ 
    327         define('WWW_ROOT_THEMES', WWW_ROOT . '/' . self::$config['paths']['themes_folder']); 
     325        define('WWW_ROOT_THEMES', WWW_ROOT . '/' . self::$config['paths']['themes_folder'], false); 
    328326 
    329327        /** 
    330328         * @var WWW_ROOT_THEMES defines the themes/core folder 
    331329         */ 
    332         define('WWW_ROOT_THEMES_CORE', WWW_ROOT . '/' . self::$config['paths']['themes_folder'] . '/core'); 
     330        define('WWW_ROOT_THEMES_CORE', WWW_ROOT . '/' . self::$config['paths']['themes_folder'] . '/core', false); 
    333331 
    334332        /** 
     
    345343            ROOT_LIBRARIES . 'PEAR' . DS 
    346344        ); 
    347         set_include_path(implode($paths, PATH_SEPARATOR) . PATH_SEPARATOR . get_include_path()); # attach original include paths 
     345 
     346        # attach original include paths 
     347        set_include_path(implode($paths, PS) . PS . get_include_path()); 
    348348        unset($paths); 
    349349    } 
     
    368368         * @var Debug-Mode Constant is set via config setting ['error']['debug'] 
    369369         */ 
    370         define('DEBUG', (bool) self::$config['error']['debug']); 
     370        define('DEBUG', (bool) self::$config['error']['debug'], false); 
    371371 
    372372        # If Debug is enabled, set FULL error_reporting, else DISABLE it completely 
     
    381381             * @var Development-Mode is set via config setting ['error']['development'] 
    382382             */ 
    383             define('DEVELOPMENT', (bool) self::$config['error']['development']); 
     383            define('DEVELOPMENT', (bool) self::$config['error']['development'], false); 
    384384 
    385385            /** 
     
    395395             * @var XDebug and set it's value via the config setting ['error']['xdebug'] 
    396396             */ 
    397             define('XDEBUG', (bool) self::$config['error']['xdebug']); 
     397            define('XDEBUG', (bool) self::$config['error']['xdebug'], false); 
    398398 
    399399            # If XDebug is enabled, load xdebug helpers and start the debug/tracing 
     
    401401            { 
    402402                include ROOT_CORE . 'debug/xdebug.core.php'; 
    403                 Clansuite_XDebug::start_Xdebug(); 
     403                Clansuite_XDebug::start_xdebug(); 
    404404            } 
    405405        } 
    406406        else # application is in live/production mode. errors are not shown, but logged to file! 
    407407        { 
    408             ini_set('log_errors', true);        # enable error_logging 
    409             ini_set('display_errors', false); # do not display errors in the browser 
     408            # enable error_logging 
     409            ini_set('log_errors', true); 
     410            # do not display errors in the browser 
     411            ini_set('display_errors', false); 
     412            # log only certain errors 
    410413            error_reporting(E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_ERROR | E_CORE_ERROR); 
    411             #error_reporting(0);                 # do not report errors 
    412             ini_set('error_log', ROOT_LOGS . 'clansuite_errorlog.txt'); # write to errorlog 
     414            # do not report any errors 
     415            #error_reporting(0); 
     416            # write to errorlog 
     417            ini_set('error_log', ROOT_LOGS . 'clansuite_errorlog.txt'); 
     418            # @todo use logger instead of error_log() 
    413419        } 
    414420    } 
     
    454460    private static function initialize_DependecyInjection() 
    455461    { 
    456         # Setup Phemto 
    457         include ROOT_LIBRARIES.'phemto/phemto.php'; 
     462        include ROOT_LIBRARIES . 'phemto/phemto.php'; 
    458463        self::$injector = new Phemto(); 
    459464    } 
     
    474479                              'Clansuite_Inputfilter', 
    475480                              'Clansuite_Localization', 
    476                               'Clansuite_User' 
     481                              'Clansuite_User', 
     482                              'Clansuite_Session', 
     483                              'Clansuite_Router', 
    477484                             ); 
    478485 
     
    491498        # define prefilters to load 
    492499        self::$prefilter_classes = array( 
    493                                          'Clansuite_Filter_PhpDebugConsole', # let the debug console be first 
     500                                         # let the debug console always be first 
     501                                         'Clansuite_Filter_PhpDebugConsole', 
    494502                                         'Clansuite_Filter_Maintenance', 
    495503                                         'Clansuite_Filter_GetUser', 
    496504                                         #'Clansuite_Filter_Session_Security', 
     505                                         'Clansuite_Filter_Routing', 
    497506                                         'Clansuite_Filter_LanguageViaGet', 
    498507                                         'Clansuite_Filter_ThemeViaGet', 
    499508                                         'Clansuite_Filter_SetModuleLanguage', 
    500                                          #'Clansuite_Filter_SetBreadcrumbs', 
    501509                                         'Clansuite_Filter_StartupChecks', 
    502510                                         'Clansuite_Filter_Statistics' 
     
    557565        } 
    558566 
    559         # Router 
    560         $router = new Clansuite_Router($request::getRequestURI(), self::$config['defaults']); 
    561  
    562567        # Take off. 
    563         $clansuite->processRequest($router); 
     568        $clansuite->processRequest(); 
     569    } 
     570 
     571    /** 
     572     * Starts a new Session and Userobject 
     573     */ 
     574    private static function start_Session() 
     575    { 
     576        # Initialize Doctrine before session start, because session is written to database 
     577        new Clansuite_Doctrine(self::$config['database']); 
     578 
     579        # Initialize Session 
     580        self::$injector->create('Clansuite_Session'); 
     581 
     582        # register the session-depending User-Object manually 
     583        self::$injector->instantiate('Clansuite_User'); 
     584    } 
     585 
     586    /** 
     587     *  ================================================ 
     588     *     Clansuite Version Information 
     589     *  ================================================ 
     590     */ 
     591    private static function initialize_Version() 
     592    { 
     593        include ROOT_CORE . 'bootstrap/clansuite.version.php'; 
     594        Clansuite_Version::setVersionInformation(); 
    564595    } 
    565596 
     
    572603     *      (3) putenv(TZ=) 
    573604     * 
    574      * PHP 5.1 strftime() and date-calculation bugfix by setting the timezone 
    575605     * For a lot more timezones look in the Appendix H of the PHP Manual 
    576606     * @link http://php.net/manual/en/timezones.php 
    577607     * @todo make $timezone configurable by user (small dropdown) or autodetected from user 
    578608     */ 
    579     private static function initialize_Locale() 
     609    private static function initialize_Timezone() 
    580610    { 
    581611        # apply timezone defensivly 
     
    597627        { 
    598628            # set date formating via config 
    599             define('DATE_FORMAT', self::$config['locale']['dateformat']); 
    600         } 
    601     } 
    602  
    603     /** 
    604      * Starts a new Session and Userobject 
    605      */ 
    606     private static function start_Session() 
    607     { 
    608         # Initialize Doctrine before session start, because session is written to database 
    609         new Clansuite_Doctrine(self::$config['database']); 
    610  
    611         # Initialize Session 
    612         new Clansuite_Session(self::$config, self::$injector->instantiate('Clansuite_HttpRequest')); 
    613  
    614         # instantiate the Locale 
    615         self::$injector->instantiate('Clansuite_Localization'); 
    616  
    617         # register the session-depending User-Object manually 
    618         self::$injector->instantiate('Clansuite_User'); 
    619     } 
    620  
    621     /** 
    622      *  ================================================ 
    623      *     Clansuite Version Information 
    624      *  ================================================ 
    625      */ 
    626     private static function initialize_Version() 
    627     { 
    628         include ROOT_CORE . 'bootstrap/clansuite.version.php'; 
     629            define('DATE_FORMAT', self::$config['locale']['dateformat'], false); 
     630        } 
    629631    } 
    630632 
  • trunk/core/bootstrap/clansuite.loader.php

    r4563 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    116113            { 
    117114                # add class and filename to the mapping array 
    118                 $this->addToMapping($filename, $classname); 
     115                self::addToMapping($filename, $classname); 
    119116 
    120117                # log for the autoloaded files 
  • trunk/core/bootstrap/clansuite.version.php

    r4508 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    4845/** 
    4946 * Clansuite_Version 
    50  * 
    5147 */ 
    5248final class Clansuite_Version 
     
    6258        define('CLANSUITE_URL',             'http://www.clansuite.com'); 
    6359 
    64         # Define Clansuite SVN Revision 
    65         if (!defined('CLANSUITE_REVISION')) 
     60        /** 
     61         * Define Clansuite SVN Revision 
     62         */ 
     63        # File used: "root/.svn/entries" 
     64        if (is_file(ROOT . '.svn' . DS . 'entries')) 
    6665        { 
    67             # File used: "root/.svn/entries" 
    68             if (is_file(ROOT . '.svn' . DS . 'entries')) 
    69             { 
    70                 define ('CLANSUITE_REVISION', self::getRevisionNumberFromFile()); 
    71             } 
    72             else # get revision number from the Subversion Rev-property, if no SVN data available 
    73             { 
    74                 define ('CLANSUITE_REVISION', self::getRevisionNumber()); 
    75             } 
     66            define ('CLANSUITE_REVISION', self::getRevisionNumberFromFile()); 
     67        } 
     68        else # get revision number from the Subversion Rev-property, if no SVN data available 
     69        { 
     70            define ('CLANSUITE_REVISION', self::getRevisionNumber()); 
    7671        } 
    7772    } 
     
    118113    } 
    119114} 
    120  
    121 Clansuite_Version:: setVersionInformation(); 
    122115?> 
  • trunk/core/breadcrumb.core.php

    r4365 r4578  
    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  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    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 
     29    *  
    3330    * 
    3431    * @version    SVN: $Id$ 
     
    4239 
    4340/** 
    44  *  Clansuite Core Class for Breadcrumb Handling 
    45  * 
    46  * - Headings: Entrance >> News 
    47  * - You are here : Entrance >> News (with links) 
    48  * 
    49  * @author     Quentin Zervaas 
    50  * @author     Jens-André Koch   <vain@clansuite.com> 
    51  * @author     Florian Wolf      <xsign.dll@clansuite.com> 
    52  * @copyright  Jens-André Koch (2005-onwards), Florian Wolf (2006-2007) 
     41 * Clansuite Core Class for Breadcrumb Handling 
    5342 * 
    5443 * @category    Clansuite 
     
    6453 
    6554    /** 
    66      * Assigns a trailstep "Home >>" 
     55     * Adds a breadcrumb new level 
    6756     * 
    68      * @param string $homeLabel contains the Home-Name shown at the trail, standard is Home 
    69      * @param string $homeLink contains the link as url, standard is '/' refering to base_url 
    70      */ 
    71     public static function addHomeTrail($homeLabel = 'Home', $homeLink = '/') 
    72     { 
    73         # check if it's the first trail step, then let it be >> HOME 
    74         if(count(self::$path) == 0) 
    75         { 
    76             self::$path[] = array(  'title' => $homeLabel, 
    77                                     'link'  => WWW_ROOT . $homeLink); 
    78         } 
    79     } 
    80  
    81     /** 
    82      * Assigns a trailstep "Control Center >>" 
    83      * 
    84      * @param string $homeLabel contains the Home-Name shown at the trail, standard is Home 
    85      * @param string $homeLink contains the link as url, standard is '/' refering to base_url 
    86      */ 
    87     public static function addControlCenterTrail($homeLabel = 'Control Center', $homeLink = '/index.php?mod=controlcenter') 
    88     { 
    89         # check if it's the first trail step, then let it be >> HOME 
    90         if(count(self::$path) == 0) 
    91         { 
    92             self::$path[] = array(  'title' => $homeLabel, 
    93                                     'link'  => WWW_ROOT . $homeLink); 
    94         } 
    95     } 
    96  
    97     /** 
    98      * addBreadcrumb 
    99      * This adds a step or level to the trail-path / pagetitle 
    100      * 
    101      * @param string $title contains the Name shown at the trail 
    102      * @param string $link contains the link as url 
     57     * @param string $title Name of the trail element 
     58     * @param string $link Link of the trail element 
    10359     */ 
    10460    public static function add($title, $link = '') 
    10561    { 
    106         # let the first Trail, be "HOME >>" 
    107         #self::addHomeTrail(); 
    108  
    10962        $item = array('title' => $title); 
    11063 
     
    11871 
    11972    /** 
    120      * Get Method for the Trail 
     73     * Getter for the breadcrumbs/trail array 
    12174     */ 
    12275    public static function getTrail() 
     
    12477        return self::$path; 
    12578    } 
     79 
     80    public static function initBreadcrumbs() 
     81    { 
     82        $moduleName     = Clansuite_TargetRoute::getModuleName(); 
     83        $submoduleName  = Clansuite_TargetRoute::getSubModuleName(); 
     84        $actionName     = Clansuite_TargetRoute::getActionName(); 
     85 
     86        /** 
     87         *  FIRST PART of the TRAIL 
     88         */ 
     89 
     90        # Home (Frontend) 
     91        if(($moduleName != 'controlcenter') and ($submoduleName != 'admin')) 
     92        { 
     93            Clansuite_Breadcrumb::add('Home', '/'); 
     94        } 
     95 
     96        # ControlCenter (Backend) 
     97        if($moduleName == 'controlcenter' or $submoduleName == 'admin') 
     98        { 
     99            # Set Pagetitle "Control Center" and Breadcrumb-Link = '/index.php?mod=controlcenter' 
     100            Clansuite_Breadcrumb::add('Control Center', '/index.php?mod=controlcenter'); 
     101        } 
     102 
     103        /** 
     104         * This adds the SECCOND PART of the TRAIL. 
     105         */ 
     106        if($moduleName != 'controlcenter') 
     107        { 
     108            # Construct URL 
     109            # BASE URL 
     110            $url  = '/index.php?mod=' . $moduleName; 
     111            $trailName = $moduleName; 
     112 
     113            # Add action Part only, if not no submodule following 
     114            if( (mb_strlen($actionName) > 0) and (mb_strlen($submoduleName) == 0)) 
     115            { 
     116                $url .= '&amp;action=' . $actionName; 
     117            } 
     118 
     119            # if this is an request to an submodule admin, we append that to the URL 
     120            if( (mb_strlen($submoduleName) > 0)  and ($submoduleName == 'admin')) 
     121            { 
     122                $url .= '&amp;sub=admin'; 
     123            } 
     124 
     125            # Set Pagetitle and Breadcrumbs for that Module 
     126            Clansuite_Breadcrumb::add( T_( ucfirst($trailName) ), $url ); 
     127        } 
     128 
     129        # add submodule part 
     130        if(mb_strlen($submoduleName) > 0 and ($submoduleName != 'admin')) 
     131        { 
     132            # Construct URL 
     133            $url .= '&amp;sub=' . $submoduleName; 
     134            $trailName = $submoduleName; 
     135 
     136            # Add action Part now 
     137            if(mb_strlen($actionName) > 0) 
     138            { 
     139                $url .= '&amp;action=' . $actionName; 
     140            } 
     141 
     142            # Set Pagetitle and Breadcrumbs for that SubModule 
     143            Clansuite_Breadcrumb::add( T_( ucfirst($trailName) ), $url ); 
     144        } 
     145 
     146        # Debug Display for Breadcumbs 
     147        # Clansuite_Debug::firebug(Clansuite_Breadcrumb::getTrail()); 
     148    } 
    126149} 
    127150?> 
  • trunk/core/cache/apc.cache.php

    r4470 r4578  
    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> 
    28     * @copyright  Jens-André Koch (2005-2008) 
    29     * 
     27    * @copyright  Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/cache/eaccelerator.cache.php

    r4470 r4578  
    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> 
    28     * @copyright  Jens-André Koch (2005-2008) 
    29     * 
     27    * @copyright  Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/cache/file.cache.php

    r4556 r4578  
    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> 
    28     * @copyright  Jens-André Koch (2005-2008) 
    29     * 
     27    * @copyright  Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/cache/memcached.cache.php

    r4493 r4578  
    11<?php 
    2    /** 
    3     * Clansuite - just an eSports CMS 
    4     * Jens-André Koch © 2005 - onwards 
    5     * http://www.clansuite.com/ 
    6     * 
    7     * This file is part of "Clansuite - just an eSports CMS". 
    8     * 
    9     * LICENSE: 
    10     * 
    11     *    This program is free software; you can redistribute it and/or modify 
    12     *    it under the terms of the GNU General Public License as published by 
    13     *    the Free Software Foundation; either version 2 of the License, or 
    14     *    (at your option) any later version. 
    15     * 
    16     *    This program is distributed in the hope that it will be useful, 
    17     *    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    18     *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    19     *    GNU General Public License for more details. 
    20     * 
    21     *    You should have received a copy of the GNU General Public License 
    22     *    along with this program; if not, write to the Free Software 
    23     *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    24     * 
    25     * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    26     * 
    27     * @author     Jens-André Koch <vain@clansuite.com> 
    28     * @copyright  Jens-André Koch (2005-2008) 
    29     * 
    30     * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
    33     * @version    SVN: $Id$ 
    34     */ 
     2    /** 
     3     * Clansuite - just an eSports CMS 
     4     * Jens-André Koch © 2005 - onwards 
     5     * http://www.clansuite.com/ 
     6     * 
     7     * This file is part of "Clansuite - just an eSports CMS". 
     8     * 
     9     * LICENSE: 
     10     * 
     11     *    This program is free software; you can redistribute it and/or modify 
     12     *    it under the terms of the GNU General Public License as published by 
     13     *    the Free Software Foundation; either version 2 of the License, or 
     14     *    (at your option) any later version. 
     15     * 
     16     *    This program is distributed in the hope that it will be useful, 
     17     *    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     18     *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     19     *    GNU General Public License for more details. 
     20     * 
     21     *    You should have received a copy of the GNU General Public License 
     22     *    along with this program; if not, write to the Free Software 
     23     *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     24     * 
     25     * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
     26     * @author     Jens-André Koch <vain@clansuite.com> 
     27     * @copyright  Jens-André Koch (2005 - onwards) 
     28     * @link       http://www.clansuite.com 
     29     * 
     30     * @version    SVN: $Id$ 
     31     */ 
    3532 
    3633# Security Handler 
    3734if(defined('IN_CS') == false) 
    38 {  
     35{ 
    3936    die('Clansuite not loaded. Direct Access forbidden.'); 
    4037} 
  • trunk/core/cache/xcache.cache.php

    r4377 r4578  
    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> 
    28      * @copyright  Jens-André Koch (2005-2008) 
    29      * 
     27     * @copyright  Jens-André Koch (2005 - onwards) 
    3028     * @link       http://www.clansuite.com 
    31      * @link       http://gna.org/projects/clansuite 
    3229     * 
    3330     * @version    SVN: $Id$ 
     
    3532 
    3633# Security Handler 
    37 if (defined('IN_CS') == false) 
    38 {  
     34if(defined('IN_CS') == false) 
     35{ 
    3936    die('Clansuite not loaded. Direct Access forbidden.'); 
    4037} 
  • trunk/core/config.core.php

    r4561 r4578  
    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 Ž   * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    8178        if($modulename === null) 
    8279        { 
    83             $modulename = Clansuite_Dispatcher::getModuleName(); 
     80            $modulename = Clansuite_TargetRoute::getModuleName(); 
    8481        } 
    8582 
  • trunk/core/config/config.base.php

    r4561 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/config/db.config.php

    r4557 r4578  
    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    * @author     Florian Wolf      <xsign.dll@clansuite.com> 
    2928    * @copyright  Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 
    30     * 
    3129    * @link       http://www.clansuite.com 
    32     * @link       http://gna.org/projects/clansuite 
    3330    * 
    3431    * @version    SVN: $Id$ 
  • trunk/core/config/ini.config.php

    r4557 r4578  
    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> 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @author     Florian Wolf <xsign.dll@clansuite.com> 
    2928    * @copyright  Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 
    30     * 
    3129    * @link       http://www.clansuite.com 
    32     * @link       http://gna.org/projects/clansuite 
     30    * 
    3331    * 
    3432    * @version    SVN: $Id$ 
  • trunk/core/config/xml.config.php

    r4557 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/config/yaml.config.php

    r4557 r4578  
    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> 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @author     Florian Wolf <xsign.dll@clansuite.com> 
    2928    * @copyright  Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 
    30     * 
    3129    * @link       http://www.clansuite.com 
    32     * @link       http://gna.org/projects/clansuite 
    3330    * 
    3431    * @version    SVN: $Id$ 
  • trunk/core/cronjobs.core.php

    r4493 r4578  
    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      Ž   * 
     29     *  
    3330     * @version    SVN: $Id$ 
    3431     */ 
  • trunk/core/cronjobs/dump.cronjob.php

    r4377 r4578  
    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 
    3229Ž   * 
    3330    * @version    SVN: $Id$ 
     
    3633# Security Handler 
    3734if (defined('IN_CS') == false) 
    38 {  
     35{ 
    3936    die('Clansuite not loaded. Direct Access forbidden.'); 
    4037} 
  • trunk/core/debug/debug.core.php

    r4561 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    154151        $firephp = FirePHP::getInstance(true); 
    155152 
    156         # get callstack and log the origin of the call to clansuite_xdebug::firebug() 
     153        # get callstack and log the origin of the call to Clansuite_Debug::firebug() 
    157154        $backtrace_array = array(); 
    158155        $backtrace_array = debug_backtrace(); 
  • trunk/core/debug/doctrineprofiler.core.php

    r4561 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/debug/xdebug.core.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    108105            #xdebug_get_code_coverage(); 
    109106 
    110              # stop tracing and display infos 
     107            # stop tracing and display infos 
    111108            register_shutdown_function('clansuite_xdebug::shutdown'); 
    112109        } 
     
    198195     * @param mixed $variable The variable to debug display. 
    199196     */ 
    200     public static function xd_varDump($var = null) 
    201     { 
    202         if($var === null) 
    203         { 
    204             throw new Clansuite_Exception('clansuite_xdebug::xd_varDump() expects the variable you want to display as parameter.'); 
    205         } 
    206  
     197    public static function xd_varDump($var) 
     198    { 
    207199        echo xdebug_var_dump($var); 
    208200    } 
  • trunk/core/dispatcher.core.php

    r4568 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    5754class Clansuite_Dispatcher 
    5855{ 
    59     private static $found_route; 
    60  
    61     private static $actionname; 
    62     private static $modulename; 
    63     private static $submodulename; 
    64  
    65     /** 
    66      * Sets the matching route object to the dispatcher 
    67      * 
    68      * @param object $route Route Object implementing Clansuite_Route_Interface 
    69      * @return object Clansuite_Dispatcher 
    70      */ 
    71     public function setFoundRoute($route) # (Clansuite_Route_Interface $route) 
    72     { 
    73         self::$found_route = $route; 
    74  
    75         return $this; 
    76     } 
    77  
    78     /** 
    79      * Gets the matching route object from the dispatcher 
    80      * 
    81      * @return $route Route Object implementing Clansuite_Route_Interface 
    82      */ 
    83     public function getFoundRoute() 
    84     { 
    85         return self::$found_route; 
    86     } 
    87  
    8856    /** 
    8957     * The dispatcher forwards to the pagecontroller = modulecontroller + moduleaction 
    9058     */ 
    91     public function forward() 
     59    public static function forward() 
    9260    { 
    93         $route = $this->getFoundRoute(); 
     61        $route = Clansuite_HttpRequest::getRoute(); 
    9462 
    95         #$event = Clansuite_EventDispatcher::instantiate(); 
     63         #$event = Clansuite_EventDispatcher::instantiate(); 
    9664        #$event->addEventHandler('onBeforeControllerMethodCall', new Clansuite_Event_InitializeModule()); 
    97  
    98         #Clansuite_Debug::firebug($route); 
    9965 
    10066        if($route === null) 
     
    11076        $renderengine = $route->getRenderEngine(); 
    11177 
    112         #Clansuite_Debug::firebug($route); 
     78        Clansuite_Debug::firebug($route); 
    11379        #unset($route); 
    11480 
     
    13096        if(true === class_exists($classname, false)) 
    13197        { 
    132             $controllerInstance = new $classname(); 
     98            # instantiate the module controller and pass request and response object to it 
     99            $controllerInstance = new $classname( 
     100                Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpRequest'), 
     101                Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpResponse') 
     102            ); 
    133103        } 
    134104        else 
     
    140110         * Initialize the Module 
    141111         */ 
    142         $controllerInstance->initializeModule( 
    143                 Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpRequest'), 
    144                 Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpResponse') 
    145         ); 
     112        if(true === method_exists($controllerInstance, 'initializeModule')) 
     113        { 
     114            $controllerInstance->initializeModule(); 
     115        } 
     116 
     117        # @todo fix wrong position 
     118        Clansuite_Breadcrumb::initBreadcrumbs(); 
    146119 
    147120        /** 
     
    168141            throw new Clansuite_Exception('There was no action named "' . $method . '".', 2); 
    169142        } 
    170  
    171         #Clansuite_Loader::callClassMethod($class, $method, $parameters); 
    172     } 
    173  
    174     /** 
    175      * Method to set the Action 
    176      */ 
    177     public static function setActionName($actionName) 
    178     { 
    179         self::$actionName = (string) $actionName; 
    180     } 
    181  
    182     /** 
    183      * Method to get the Action 
    184      * 
    185      * @return $string 
    186      */ 
    187     public static function getActionName() 
    188     { 
    189         return self::$found_route->getMethod(); 
    190     } 
    191  
    192     /** 
    193      * Method to get the DefaultAction 
    194      * 
    195      * @return $string 
    196      */ 
    197     public static function getDefaultActionName() 
    198     { 
    199         return self::$_defaultAction; 
    200     } 
    201  
    202     /** 
    203      * Method to set the ModuleName 
    204      */ 
    205     public static function setModuleName($moduleName) 
    206     { 
    207         self::$_modulename = (string) $moduleName; 
    208     } 
    209  
    210     /** 
    211      * Method to get the ModuleName 
    212      * 
    213      * @return $string 
    214      */ 
    215     public static function getModuleName() 
    216     { 
    217         return self::$found_route->getController(); 
    218     } 
    219  
    220     /** 
    221      * Method to set the SubModuleName 
    222      */ 
    223     private static function setSubModuleName($SubModuleName) 
    224     { 
    225         self::$submodulename = (string) $SubModuleName; 
    226     } 
    227  
    228     /** 
    229      * Method to get the SubModuleName 
    230      * 
    231      * @return $string 
    232      */ 
    233     public static function getSubModuleName() 
    234     { 
    235         return self::$submodulename; 
    236143    } 
    237144} 
  • trunk/core/doctrine.core.php

    r4565 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    9390 
    9491        # if Clansuite Debug Mode enabled 
    95         if ( defined('DEBUG') ) 
     92        if ( defined('DEBUG') and DEBUG === true) 
    9693        { 
    9794            # activate Doctrine Debug also 
  • trunk/core/doorkeeper.core.php

    r4376 r4578  
    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/clansuite 
    30     * 
     27    *  
    3128    * @version    SVN: $Id$ 
    3229    */ 
  • trunk/core/errorhandler.core.php

    r4561 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    158155        { 
    159156            # SMARTY ERRORS are thrown by trigger_error() - so they bubble up as E_USER_ERROR 
    160             # so in order to handle smarty errors with a seperated error display 
     157            # and in order to handle smarty errors with a seperated error display 
    161158            # we need to detect, if an E_USER_ERROR is incoming from SMARTY or from a template_c file (extension tpl.php) 
    162159            if( (mb_strpos(mb_strtolower($errorfile),'smarty') == true) or (mb_strpos(mb_strtolower($errorfile),'tpl.php') == true) ) 
     
    459456            } 
    460457 
    461             $backtrace_string .= '<tr><td><strong>File: </strong></td><td>' . $backtrace[$i]['file'] . '</td></tr>'; 
    462             $backtrace_string .= '<tr><td><strong>Line: </strong></td><td>' . $backtrace[$i]['line'] . '</td></tr>'; 
     458            if(isset($backtrace[$i]['file'])) 
     459            { 
     460                $backtrace_string .= '<tr><td><strong>File: </strong></td><td>' . $backtrace[$i]['file'] . '</td></tr>'; 
     461                $backtrace_string .= '<tr><td><strong>Line: </strong></td><td>' . $backtrace[$i]['line'] . '</td></tr>'; 
     462            } 
    463463 
    464464            # spacer 
     
    473473     * formatBacktraceArgument 
    474474     * 
    475      * performs a type check on an backtrace argument and formats it nicely 
     475     * Performs a type check on the backtrace argument and beautifies it. 
    476476     * 
    477477     * This formater is based on comments for debug-backtrace in the php manual 
     
    507507            case 'string': 
    508508                $args .= '<span>string</span> '; 
    509                 $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64)); 
    510509                if((mb_strlen($backtraceArgument) > 64)) 
    511510                { 
     511                    $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64)); 
    512512                    $backtraceArgument . '...'; 
    513513                } 
  • trunk/core/eventdispatcher.core.php

    r4561 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/events/AuthenticationLogging.event.php

    r4377 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    4239/** 
    4340 * Clansuite Event - Authentication Logging 
    44  *  
     41 * 
    4542 * @author     Jens-André Koch <vain@clansuite.com> 
    46  * @copyright  Jens-André Koch (2005 - onwards)  
     43 * @copyright  Jens-André Koch (2005 - onwards) 
    4744 * 
    4845 * Usage: 
    4946 * $logger = new Clansuite_Logger('auth.log'); 
    5047 * $eventhandler->addEventHandler('onInvalidLogin', $logger); 
    51  * $eventhandler->addEventHandler('onLogin', $logger);  
     48 * $eventhandler->addEventHandler('onLogin', $logger); 
    5249 */ 
    5350class AuthenticationLogging implements Clansuite_Event 
     
    6259        $this->logger = $logger; 
    6360    } 
    64      
     61 
    6562    public function execute(Event $event) 
    6663    { 
  • trunk/core/events/BlockIps.event.php

    r4377 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    4542 * @author     Jens-André Koch <vain@clansuite.com> 
    4643 * @copyright  Jens-André Koch (2005 - onwards) 
    47  *  
     44 * 
    4845 * Usage: 
    4946 * $blockip = new BlockIps(array('127.0.0.1')); 
    5047 * $dispatcher->addEventHandler('onLogin', $blockip); 
    5148 * if($event->isCancelled()) { } 
    52  *  
     49 * 
    5350 */ 
    5451class BlockIps implements Clansuite_Event 
  • trunk/core/exception.core.php

    r4561 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    276273        $errormessage   .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">'; 
    277274        $errormessage   .= '<head>'; 
    278         $errormessage   .= '<title>Clansuite Exception : [ '.get_class($this).' ][ '. $this->getMessage() .' | Exceptioncode: '. self::getCode() .' ] </title>'; 
     275        $errormessage   .= '<title>Clansuite Exception : [ '. $this->getMessage() .' | Exceptioncode: '. self::getCode() .' ] </title>'; 
    279276        $errormessage   .= '<link rel="stylesheet" href="'. WWW_ROOT_THEMES_CORE .'/css/error.css" type="text/css" />'; 
    280277        $errormessage   .= '</head>'; 
  • trunk/core/factories/cache.factory.php

    r4493 r4578  
    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> 
    28     * @copyright  Jens-André Koch (2005-2008) 
    29     * 
     27    * @copyright  Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/factories/config.factory.php

    r4558 r4578  
    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> 
    2625    * @copyright  Jens-André Koch (2005 - onwards) 
    27     * 
    2826    * @link       http://www.clansuite.com 
    29     * @link       http://gna.org/projects/clansuite 
    3027    * 
    3128    * @version    SVN: $Id$ 
  • trunk/core/factories/logger.factory.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$response.class.php 2580 2008-11-20 20:38:03Z vain $ 
  • trunk/core/factories/renderer.factory.php

    r4556 r4578  
    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> 
    2625    * @copyright  Jens-André Koch (2005 - onwards) 
    27     * 
    2826    * @link       http://www.clansuite.com 
    29     * @link       http://gna.org/projects/clansuite 
    3027    * 
    3128    * @version    SVN: $Id$ 
  • trunk/core/feed.core.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    134131        } 
    135132 
    136         #clansuite_xdebug::printR($feeditems); 
     133        #Clansuite_Debug::printR($feeditems); 
    137134 
    138135        # slice 
  • trunk/core/files/download.core.php

    r4493 r4578  
    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     * @since      File available since Release 0.2 
    3329    * 
    3430    * @version    SVN: $Id$ 
  • trunk/core/files/file.core.php

    r4500 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    4340 * Clansuite_File - Clansuite Core Class for the File Object 
    4441 * 
    45  * @author      Jens-André Koch <vain@clansuite.com> 
    46  * @copyright   Jens-André Koch (2005 - onwards) 
    4742 * @category    Clansuite 
    4843 * @package     Core 
  • trunk/core/files/upload.core.php

    r4376 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filtermanager.core.php

    r4376 r4578  
    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     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    4138 
    4239/** 
    43  * interface FilterInterface 
     40 * Interface Clansuite_Filter_Interface 
    4441 * 
    4542 * @category    Clansuite 
     
    5350 
    5451/** 
    55  * FilterManager 
    56  * - is a Intercepting-Filter / FilterChain 
     52 * Clansuite_FilterManager 
    5753 * 
    58  * - $filters is an array containing the filters to be processed 
    59  * - addFilter method, adds them to the array 
     54 * Is a Intercepting-Filter (FilterChain). 
     55 * The var $filters is an array containing the filters to be processed. 
     56 * The method addFilter() adds filters to the array. 
     57 * A filter has to implement the Clansuite_Filter_Interface, 
     58 * it has to provide the executeFilter() method. 
    6059 * 
    6160 * @category    Clansuite 
  • trunk/core/filters/getuser.filter.php

    r4393 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    3633# Security Handler 
    3734if (defined('IN_CS') == false) 
    38 {  
     35{ 
    3936    die('Clansuite not loaded. Direct Access forbidden.' ); 
    4037} 
  • trunk/core/filters/htmltidy.filter.php

    r4556 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/languageviaget.filter.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/maintenance.filter.php

    r4422 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/permissions.filter.php

    r4393 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/phpdebugconsole.filter.php

    r4464 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/processcronjobs.filter.php

    r4393 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    3633# Security Handler 
    3734if (defined('IN_CS') == false) 
    38 {  
     35{ 
    3936    die('Clansuite not loaded. Direct Access forbidden.' ); 
    4037} 
  • trunk/core/filters/sessionsecurity.filter.php

    r4393 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/setmodulelanguage.filter.php

    r4556 r4578  
    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     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    4340 * Clansuite Filter - Set Module Language 
    4441 * 
    45  * Purpose: Sets Text Domain for the requested Module 
     42 * Purpose: Sets the TextDomain for the requested Module 
    4643 * 
    4744 * @category    Clansuite 
     
    5249class Clansuite_Filter_SetModuleLanguage implements Clansuite_Filter_Interface 
    5350{ 
    54     private $locale     = null;     # holds instance of localization 
     51    private $locale = null;     # holds instance of localization 
    5552 
    5653    public function __construct(Clansuite_Localization $locale) 
    5754    { 
    58         $this->locale    = $locale;      # set instance of localization to class 
     55        $this->locale = $locale;      # set instance of localization to class 
    5956    } 
    6057 
    6158    public function executeFilter(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 
    6259    { 
    63         #$modulename = Clansuite_Dispatcher::getModuleName(); 
    64         #$this->locale->loadTextDomain('LC_ALL', $modulename, $this->locale->getLocale(), $modulename); 
     60        #$route = Clansuite_HttpRequest::getRoute(); 
     61        $modulename = Clansuite_TargetRoute::getController(); 
     62        $this->locale->loadTextDomain('LC_ALL', $modulename, $this->locale->getLocale(), $modulename); 
    6563    } 
    6664} 
  • trunk/core/filters/smartymoves.filter.php

    r4393 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/startupchecks.filter.php

    r4500 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/statistics.filter.php

    r4562 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/filters/themeviaget.filter.php

    r4474 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/flashmessages.core.php

    r4566 r4578  
    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> 
    28     * @copyright  Jens-André Koch (2005-2008) 
    29     * 
     27    * @copyright  Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/frontcontroller.core.php

    r4526 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    5249{ 
    5350    public function __construct(Clansuite_Request_Interface $request, Clansuite_Response_Interface $response); 
    54     public function processRequest(Clansuite_Router_Interface $router); 
     51    public function processRequest(); 
    5552    public function addPreFilter(Clansuite_Filter_Interface $filter); 
    5653    public function addPostFilter(Clansuite_Filter_Interface $filter); 
     
    105102           $this->request            = $request; 
    106103           $this->response           = $response; 
    107            $this->dispatcher         = new Clansuite_Dispatcher(); 
     104           $this->dispatcher         = new Clansuite_Dispatcher($request); 
    108105           $this->pre_filtermanager  = new Clansuite_Filtermanager(); 
    109106           $this->post_filtermanager = new Clansuite_Filtermanager(); 
     
    111108 
    112109    /** 
    113      * Method to add a Prefilter 
    114      * Filter is processed before Controller->Action is executed 
     110     * Add a Prefilter 
     111     * 
     112     * This filter is processed *before* the Controller->Action is executed. 
     113     * 
     114     * @param object $filter Object implementing the Clansuite_Filter_Interface. 
    115115     */ 
    116116    public function addPreFilter(Clansuite_Filter_Interface $filter) 
     
    120120 
    121121    /** 
    122      * Method to add a Postfilter 
    123      * Filter is processed after Controller->Action was executed 
     122     * Add a Postfilter 
     123     * 
     124     * This filter is processed *after* Controller->Action was executed. 
     125     * 
     126     * @param object $filter Object implementing the Clansuite_Filter_Interface. 
    124127     */ 
    125128    public function addPostFilter(Clansuite_Filter_Interface $filter) 
     
    135138     * Calls/executes the apropriate controller and returns a response. 
    136139     */ 
    137     public function processRequest(Clansuite_Router_Interface $router) 
     140    public function processRequest() 
    138141    { 
    139         $route = $router->route(); 
    140142        $this->pre_filtermanager->processFilters($this->request, $this->response); 
     143 
    141144        $event = Clansuite_EventDispatcher::instantiate(); 
    142145        $event->triggerEvent('onBeforeDispatcherForward'); 
    143         $this->dispatcher->setFoundRoute($route)->forward(); 
     146 
     147        $this->dispatcher->forward(); 
     148 
    144149        $event->triggerEvent('onAfterDispatcherForward'); 
     150 
    145151        $this->post_filtermanager->processFilters($this->request, $this->response); 
     152 
    146153        $this->response->sendResponse(); 
    147154    } 
  • trunk/core/functions.core.php

    r4507 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    879876        # Debug message for Method Overloading 
    880877        # Making it easier to see which static method is called magically 
    881         #Clansuite_XDebug::fbg('DEBUG (Overloading): Calling static method "'.$method.'" '. implode(', ', $arguments). "\n"); 
     878        #Clansuite_Debug::fbg('DEBUG (Overloading): Calling static method "'.$method.'" '. implode(', ', $arguments). "\n"); 
    882879        # construct the filename of the command 
    883880        $filename = ROOT_CORE . 'functions' . DS . $method . '.function.php'; 
     
    916913        # Debug message for Method Overloading 
    917914        # Making it easier to see which method is called magically 
    918         # Clansuite_XDebug::fbg('DEBUG (Overloading): Calling object method "'.$method.'" '. implode(', ', $arguments). "\n"); 
     915        # Clansuite_Debug::fbg('DEBUG (Overloading): Calling object method "'.$method.'" '. implode(', ', $arguments). "\n"); 
    919916        # construct the filename of the command 
    920917        $filename = ROOT_CORE . 'functions' . DS . $method . '.function.php'; 
  • trunk/core/functions/shorturl.function.php

    r4550 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/functions/utf8_to_html.function.php

    r4377 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/gettext.core.php

    r4543 r4578  
    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> 
    28     * @copyright  Copyleft: All rights reserved. Jens-André Koch © 2005 - onwards. 
    29     * 
     27    * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
  • trunk/core/gettext/extractors/php.gettext.php

    r4543 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/gettext/extractors/template.gettext.php

    r4543 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/gettext/mo.gettext.php

    r4543 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/gettext/po.gettext.php

    r4543 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/httprequest.core.php

    r4568 r4578  
    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> 
    28     * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
     27    * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    5148    # Parameters 
    5249    public function getParameterNames(); 
    53     public function issetParameter($parametername, $parameterArrayName = 'POST', $where = false); 
    54     public function getParameter($parametername, $parameterArrayName = 'POST'); 
     50    public function issetParameter($name, $arrayname = 'POST', $where = false); 
     51    public function getParameter($name, $arrayname = 'POST'); 
    5552    public static function getHeader($name); 
    56     public function getCookie($name); 
     53 
     54    # Direct Access to individual Parameters Arrays 
     55    public function getParameterFromCookie($name); 
     56    public function getParameterFromGet($name); 
     57    public function getParameterFromPost($name); 
     58    public function getParameterFromServer($name); 
    5759 
    5860    # Request Method 
    5961    public static function getRequestMethod(); 
    6062    public static function setRequestMethod($method); 
     63    public static function isAjax(); 
     64    public static function isPost(); 
     65    public static function isGet(); 
     66    public static function isPut(); 
     67    public static function isDelete(); 
    6168 
    6269    # $_SERVER Stuff 
     
    8087{ 
    8188    /** 
    82      * @var array Contains the cleaned $_POST Parameters 
     89     * @var array Contains the cleaned $_POST Parameters. 
    8390     */ 
    8491    private $post_parameters; 
    8592 
    8693    /** 
    87      * @var array Contains the cleaned $_GET Parameters 
     94     * @var array Contains the cleaned $_GET Parameters. 
    8895     */ 
    8996    private $get_parameters; 
    9097 
    9198    /** 
    92      * @var array Contains the cleaned $_COOKIE Parameters 
     99     * @var array Contains the cleaned $_COOKIE Parameters. 
    93100     */ 
    94101    private $cookie_parameters; 
     
    107114     * @var boolean for magic_quotes_gpc 
    108115     */ 
    109     private $magic_quotes_gpc; 
     116    private static $magic_quotes_gpc; 
     117 
     118    /** 
     119     * @var object Object with pieces of informations about the target route. 
     120     */ 
     121    private static $route; 
    110122 
    111123    /** 
     
    129141        if ((bool) ini_get('register_globals') and mb_strtolower(ini_get('register_globals')) != 'off') 
    130142        { 
    131             $this->cleanGlobals(); 
     143            self::cleanGlobals(); 
    132144        } 
    133145 
     
    138150        if ( 1 == get_magic_quotes_gpc() ) 
    139151        { 
    140             $this->magic_quotes_gpc = true; 
    141             $this->fix_magic_quotes(); 
     152            self::$magic_quotes_gpc = true; 
     153            self::fix_magic_quotes(); 
    142154            ini_set('magic_quotes_gpc', 0); 
    143155        } 
     
    146158         *  3) Additional Security Checks 
    147159         */ 
    148         # Block Proxies 
    149         Clansuite_DoorKeeper::blockProxies(); 
     160        # Clansuite_DoorKeeper::blockProxies(); 
     161 
     162        # block XSS 
     163        $_SERVER['PHP_SELF'] = htmlspecialchars($_SERVER['PHP_SELF']); 
     164        $_SERVER['QUERY_STRING'] = htmlspecialchars($_SERVER['QUERY_STRING']); 
    150165 
    151166        /** 
    152          *  4) Clear Array, Filter and Assign the $_REQUEST Global to it 
     167         *  4) Init Parameter Arrays and Assign the GLOBALS 
    153168         */ 
    154169 
     
    158173        $this->cookie_parameters    = array(); 
    159174 
    160         # Sanitize 
    161         $this->sanitizeRequest(); 
    162  
    163         # Assign the GLOBALS $_REQUEST, $_GET, $_POST, $_COOKIE 
     175        # Assign the GLOBALS $_GET, $_POST, $_COOKIE 
    164176        $this->get_parameters     = $_GET; 
    165177        $this->post_parameters    = $_POST; 
     
    177189     * @return boolean true | false 
    178190     */ 
    179     public function isGet() 
    180     { 
    181         if($this->requestMethod == 'GET') 
     191    public static function isGet() 
     192    { 
     193        if(self::$requestMethod == 'GET') 
    182194        { 
    183195            return true; 
     
    191203     * @return boolean true | false 
    192204     */ 
    193     public function isPost() 
    194     { 
    195         if($this->requestMethod == 'POST') 
     205    public static function isPost() 
     206    { 
     207        if(self::$requestMethod == 'POST') 
    196208        { 
    197209            return true; 
     
    205217     * @return boolean true | false 
    206218     */ 
    207     public function isPut() 
    208     { 
    209         if($this->requestMethod == 'PUT') 
     219    public static function isPut() 
     220    { 
     221        if(self::$requestMethod == 'PUT') 
    210222        { 
    211223            return true; 
     
    219231     * @return boolean true | false 
    220232     */ 
    221     public function isDelete() 
    222     { 
    223         if($this->requestMethod == 'DELETE') 
     233    public static function isDelete() 
     234    { 
     235        if(self::$requestMethod == 'DELETE') 
    224236        { 
    225237            return true; 
     
    232244     * Defaults to Request parameters array 
    233245     * 
    234      * @param string $parameterArrayName R, G, P, C (REQUEST, GET, POST, COOKIE) 
     246     * @param string $arrayname GET, POST, COOKIE 
    235247     * @return array 
    236248     */ 
    237     public function getParameterNames($parameterArrayName = 'REQUEST') 
    238     { 
    239         $parameterArrayName = mb_strtoupper($parameterArrayName); 
    240  
    241         if(in_array($parameterArrayName, $this->{mb_strtolower($parameterArrayName).'_arraynames'})) 
    242         { 
    243             return array_keys($this->{mb_strtolower($parameterArrayName).'_parameters'}); 
     249    public function getParameterNames($arrayname = 'GET') 
     250    { 
     251        $arrayname = mb_strtoupper($arrayname); 
     252 
     253        if(in_array($arrayname, $this->{mb_strtolower($arrayname).'_arraynames'})) 
     254        { 
     255            return array_keys($this->{mb_strtolower($arrayname).'_parameters'}); 
    244256        } 
    245257        else 
     
    252264     * isset, checks if a certain parameter exists in the parameters array 
    253265     * 
    254      * @param string $parametername Name of the Parameter 
    255      * @param string $parameterArrayName G, P, C. Default = POST. 
     266     * @param string $name Name of the Parameter 
     267     * @param string $arrayname G, P, C. Default = POST. 
    256268     * @param boolean $where If set to true, method will return the name of the array the parameter was found in. 
    257269     * @return mixed | boolean true|false | string arrayname 
    258270     */ 
    259     public function issetParameter($parametername, $parameterArrayName = 'POST', $where = false) 
    260     { 
    261         $parameterArrayName = mb_strtoupper($parameterArrayName); 
    262  
    263         if(in_array($parameterArrayName, array ('P', 'POST')) and isset($this->post_parameters[$parametername])) 
     271    public function issetParameter($name, $arrayname = 'POST', $where = false) 
     272    { 
     273        $arrayname = mb_strtoupper($arrayname); 
     274 
     275        if(in_array($arrayname, array ('P', 'POST')) and isset($this->post_parameters[$name])) 
    264276        { 
    265277            if($where == false) 
     
    273285        } 
    274286 
    275         if(in_array($parameterArrayName, array ('G', 'GET')) and isset($this->get_parameters[$parametername])) 
     287        if(in_array($arrayname, array ('G', 'GET')) and isset($this->get_parameters[$name])) 
    276288        { 
    277289            if($where == false) 
     
    285297        } 
    286298 
    287         if(in_array($parameterArrayName, array ('C', 'COOKIE')) and isset($this->cookie_parameters[$parametername])) 
     299        if(in_array($arrayname, array ('C', 'COOKIE')) and isset($this->cookie_parameters[$name])) 
    288300        { 
    289301            if($where == false) 
     
    303315     * get, returns a certain parameter if existing 
    304316     * 
    305      * @param string $parametername Name of the Parameter 
    306      * @param string $parameterArrayName G, P, C. Default = POST. 
     317     * @param string $name Name of the Parameter 
     318     * @param string $arrayname G, P, C. Default = POST. 
    307319     * @param string $default You can set a default value. It's returned if parametername was not found. 
    308320     * 
    309321     * @return mixed data | null 
    310322     */ 
    311     public function getParameter($parametername, $parameterArrayName = 'POST', $default = null) 
     323    public function getParameter($name, $arrayname = 'POST', $default = null) 
    312324    { 
    313325        /** 
    314          * check if the parameter exists in $parameterArrayName 
     326         * check if the parameter exists in $arrayname 
    315327         * the third property of issetParameter is set to true, so that we get the full and correct array name back 
    316          * even if shortcut like R, G, P or C ($parameterArrayName) was used. 
     328         * even if shortcut like G, P or C ($arrayname) was used. 
    317329         */ 
    318         $parameter_array = $this->issetParameter($parametername, $parameterArrayName, true); 
     330        $parameter_array = $this->issetParameter($name, $arrayname, true); 
    319331 
    320332        /** 
     
    324336        { 
    325337            # this returns a value from the parameterarray 
    326             return $this->{mb_strtolower($parameter_array).'_parameters'}[$parametername]; 
     338            return $this->{mb_strtolower($parameter_array).'_parameters'}[$name]; 
    327339        } 
    328340        elseif($default !== null) 
     
    340352     * set, returns a certain parameter if existing 
    341353     * 
    342      * @param string $parametername Name of the Parameter 
    343      * @param string $parameterArrayName G, P, C. Default = POST. 
     354     * @param string $name Name of the Parameter 
     355     * @param string $arrayname G, P, C. Default = POST. 
    344356     * @return mixed data | null 
    345357     */ 
    346     public function setParameter($parametername, $parameterArrayName = 'POST') 
    347     { 
    348         if(true == $this->issetParameter($parametername, $parameterArrayName)) 
    349         { 
    350             return $this->{mb_strtolower($parameterArrayName).'_parameters'}[$parametername]; 
     358    public function setParameter($name, $arrayname = 'POST') 
     359    { 
     360        if(true == $this->issetParameter($name, $arrayname)) 
     361        { 
     362            return $this->{mb_strtolower($arrayname).'_parameters'}[$name]; 
    351363        } 
    352364        else 
     
    359371     * Shortcut to get a Parameter from $_POST 
    360372     * 
    361      * @param string $parametername Name of the Parameter 
     373     * @param string $name Name of the Parameter 
    362374     * @return mixed data | null 
    363375     */ 
    364     public function getParameterFromPost($parametername) 
    365     { 
    366         return $this->getParameter($parametername, 'POST'); 
     376    public function getParameterFromPost($name) 
     377    { 
     378        return $this->getParameter($name, 'POST'); 
    367379    } 
    368380 
     
    370382     * Shortcut to get a Parameter from $_GET 
    371383     * 
    372      * @param string $parametername Name of the Parameter 
     384     * @param string $name Name of the Parameter 
    373385     * @return mixed data | null 
    374386     */ 
    375     public function getParameterFromGet($parametername) 
    376     { 
    377         return $this->getParameter($parametername, 'GET'); 
     387    public function getParameterFromGet($name) 
     388    { 
     389        return $this->getParameter($name, 'GET'); 
    378390    } 
    379391 
     
    381393     * Shortcut to get a Parameter from $_SERVER 
    382394     * 
    383      * @param string $parametername Name of the Parameter 
     395     * @param string $name Name of the Parameter 
    384396     * @return mixed data | null 
    385397     */ 
    386     public function getParameterFromServer($parametername) 
    387     { 
    388         if (in_array($parametername, array_keys($_SERVER))) 
    389         { 
    390             return $_SERVER[$parametername]; 
     398    public function getParameterFromServer($name) 
     399    { 
     400        if (in_array($name, array_keys($_SERVER))) 
     401        { 
     402            return $_SERVER[$name]; 
    391403        } 
    392404        else 
    393405        { 
    394406            return null; 
     407        } 
     408    } 
     409 
     410    /** 
     411     * Get previously set cookies. 
     412     * 
     413     * @param string $name Name of the Cookie 
     414     * @return Returns an associative array containing any previously set cookies. 
     415     */ 
     416    public function getParameterFromCookie($name) 
     417    { 
     418        if(isset($this->cookie_parameters[$name]) == true) 
     419        { 
     420            return $this->cookie_parameters($name); 
    395421        } 
    396422    } 
     
    405431    { 
    406432        $name = 'HTTP_' . mb_strtoupper(str_replace('-','_', $name)); 
     433 
    407434        if (isset($_SERVER[$name])) 
    408435        { 
    409436            return $_SERVER[$name]; 
    410437        } 
     438 
    411439        return null; 
    412440    } 
     
    417445     * 
    418446     * @todo check $_SERVER['SSL_PROTOCOL'] + $_SERVER['HTTP_X_FORWARD_PROTO']? 
     447     * @todo check -> or $_SERVER['SSL_PROTOCOL'] 
     448     * 
    419449     * @return string 
    420450     */ 
    421451    public static function getServerProtocol() 
    422452    { 
    423         if(self::isSecure()) # @todo check -> or $_SERVER['SSL_PROTOCOL'] 
     453        if(self::isSecure()) 
    424454        { 
    425455             return 'https://'; 
     
    646676    } 
    647677 
     678    /** 
     679     * Get Route 
     680     * 
     681     * @return TargetRoute Container 
     682     */ 
     683    public static function getRoute() 
     684    { 
     685        return self::$route; 
     686    } 
     687 
     688    /** 
     689     * Set Route 
     690     * 
     691     * @param $route The route container. 
     692     */ 
     693    public static function setRoute($route) 
     694    { 
     695        self::$route = $route; 
     696    } 
    648697 
    649698    /** 
     
    726775 
    727776    /** 
    728      * Get previously set cookies. 
    729      * 
    730      * @param string $name Name of the Cookie 
    731      * @return Returns an associative array containing any previously set cookies. 
    732      */ 
    733     public function getCookie($name) 
    734     { 
    735         if(isset($this->cookie_parameters[$name]) == true) 
    736         { 
    737             return $this->cookie_parameters($name); 
    738         } 
    739     } 
    740  
    741     /** 
    742      * Checks if a ajax-request is given, by checking 
    743      * X-Requested-With Header for xmlhttprequest. 
     777     * Checks if a ajax(xhr)-request is given, 
     778     * by checking X-Requested-With Header for xmlhttprequest. 
    744779     * 
    745780     * @return bool 
    746781     */ 
    747     public function isXhr() 
     782    public static function isAjax() 
    748783    { 
    749784        if(isset($_SERVER['X-Requested-With']) and mb_strtolower($_SERVER['X-Requested-With']) === 'xmlhttprequest') 
     
    759794            return false; 
    760795        } 
    761     } 
    762  
    763     /** 
    764      * Shorthand for isXhr() 
    765      * 
    766      * @return boolean 
    767      */ 
    768     public function isAjax() 
    769     { 
    770         return $this->isXhr(); 
    771796    } 
    772797 
     
    777802     * This code originally from Richard Heyes and Stefan Esser 
    778803     */ 
    779     private function cleanGlobals() 
     804    private static function cleanGlobals() 
    780805    { 
    781806        # Intercept GLOBALS overwrite 
     
    832857 
    833858    /** 
    834      * Handles possible Injections and clean up of $_REQUEST 
    835      */ 
    836     private function sanitizeRequest() 
    837     { 
    838         # Filter for Request-Parameter: id 
    839         if(isset($_REQUEST['id']) and ctype_digit($_REQUEST['id'])) 
    840         { 
    841             $this->parameters['id'] = (int) $_REQUEST['id']; 
    842         } 
    843  
    844         # Filter for Request-Parameter: items 
    845         if(isset($_REQUEST['items']) and ctype_digit($_REQUEST['items'])) 
    846         { 
    847             $this->parameters['items'] = (int) $_REQUEST['items']; 
    848         } 
    849  
    850         # Filter for Request-Parameter: defaultCol (Smarty Paginate Get Variable) 
    851         if(isset($_REQUEST['defaultCol']) and ctype_digit($_REQUEST['defaultCol'])) 
    852         { 
    853             $this->parameters['defaultCol'] = (int) $_REQUEST['defaultCol']; 
    854         } 
    855  
    856         # Filter for Request-Parameter: defaultSort (Smarty Paginate Get Variable) 
    857         if(isset($_REQUEST['defaultSort']) and ctype_alpha($_REQUEST['defaultSort']) and (($_REQUEST['defaultSort'] == 'desc') or ($_REQUEST['defaultSort'] == 'asc')) ) 
    858         { 
    859             $this->parameters['defaultSort'] = (int) $_REQUEST['defaultSort']; 
    860         } 
    861     } 
    862  
    863     /** 
    864859     * Revert magic_quotes() if still enabled 
    865860     * stripslashes + array_deep + non_recursive 
     
    872867     * @return Returns the magic quotes fixed $var 
    873868     */ 
    874     private function fix_magic_quotes($input = null) 
    875     { 
    876         if($this->magic_quotes_gpc == false) 
     869    private static function fix_magic_quotes($input = null) 
     870    { 
     871        if(self::$magic_quotes_gpc == false) 
    877872        { 
    878873            return $input; 
  • trunk/core/httpresponse.core.php

    r4551 r4578  
    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     * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
    33     * @version    SVN: $Id$response.class.php 2580 2008-11-20 20:38:03Z vain $ 
     29    *  
     30    * @version    SVN: $Id$ 
    3431    */ 
    3532 
  • trunk/core/inputfilter.core.php

    r4500 r4578  
    2222    * 
    2323    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    24     * 
    25     * @author     Jens-André Koch   <vain@clansuite.com> 
    26     * @author     Florian Wolf      <xsign.dll@clansuite.com> 
     24    * @author     Jens-André Koch <vain@clansuite.com> 
     25    * @author     Florian Wolf <xsign.dll@clansuite.com> 
    2726    * @copyright  Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 
    28     * 
    2927    * @link       http://www.clansuite.com 
    30     * @link       http://gna.org/projects/clansuite 
    3128    * 
    3229    * @version    SVN: $Id$ 
  • trunk/core/localization.core.php

    r4544 r4578  
    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     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    4239/** 
    4340 * Clansuite Core Class for Localization (l10n) & Internationalization (i18n) Handling 
    44  * 
    45  * @author     Jens-André Koch   <vain@clansuite.com> 
    46  * @copyright  Jens-André Koch (2005 - onwards) 
    4741 * 
    4842 * @category    Clansuite 
     
    6660 
    6761    # References 
    68     private $config    = null; 
     62    private static $config    = null; 
    6963 
    7064    public function __construct(Clansuite_Config $config) 
    7165    { 
    7266        # Set Reference to Config 
    73         $this->config = $config; 
     67        self::$config = $config; 
    7468 
    7569        # Set Locale Defaults 
    7670        $this->domain = 'clansuite'; 
    77         $this->encoding = $config['language']['outputcharset']; 
     71        $this->encoding = self::$config['language']['outputcharset']; 
    7872 
    7973        # Get Locale 
     
    10195         * @link http://www.gnu.org/software/gettext/manual/gettext.html GNU Gettext 
    10296         */ 
    103         if ( function_exists('_get_reader') === false ) 
     97        if(function_exists('_get_reader') === false) 
    10498        { 
    10599            include ROOT_LIBRARIES . '/php-gettext/gettext.inc'; 
     
    131125            if(empty($this->locale)) # 3) get the default language from config as fallback 
    132126            { 
    133                 $this->locale = $this->config['language']['language']; 
     127                $this->locale = self::$config['language']['language']; 
    134128            } 
    135129        } 
     
    154148    public function loadTextDomain($category, $domain, $locale, $module = null) 
    155149    { 
    156         # if, $locale string is not over 3 -> $locale = "en", build "en_EN" 
     150        #Clansuite_Debug::firebug($module); 
     151 
     152        # if, $locale string is not over 3 chars long -> $locale = "en", build "en_EN" 
    157153        if(isset($locale{3}) == false) 
    158154        { 
     
    174170            $domain_directory = ROOT_LANGUAGES; 
    175171        } 
    176         else # tp a specific module directory 
    177         { 
    178  
     172        else # set a specific module directory 
     173        { 
    179174            $domain_directory = ROOT_MOD . $module . DS . 'languages' . DS; 
    180175        } 
     
    185180        T_textdomain($domain); 
    186181 
    187         #Clansuite_Debug::firebug('<p>Textdomain "' .$domain .'" loaded from path "'. $domain_directory .'"</p>'); 
     182        #Clansuite_Debug::firebug('<p>Textdomain "' .$domain .'" loaded from path "'. $domain_directory .'" for "'. $module .'"</p>'); 
    188183        return true; 
    189184    } 
  • trunk/core/logger.core.php

    r4481 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/logger/devnull.logger.php

    r4376 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/logger/email.logger.php

    r4376 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/logger/file.logger.php

    r4501 r4578  
    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     * 
     29   * 
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    181178        if($logfilename == null) 
    182179        { 
    183             $logfilename = 'logs/clansuite_errorlog.txt.php'; 
     180            $logfilename = ROOT . 'logs/clansuite_errorlog.txt.php'; 
    184181        } 
    185182 
    186183        # get logfile as array 
    187184        $logfile_array = file($logfilename); 
    188         # count array elements = total number of logfile entries 
    189         $i = count($logfile_array) - 1; 
    190         # subtract from total number of logfile entries the number to fetch 
    191         $max_entries = max(0, $i - $entriesToFetch); 
    192  
    193         # reverse for loop over the logfile_array 
    194         $logEntries = ''; 
    195         $logEntries .= '; <?php die(\'Access forbidden.\'); /* DO NOT MODIFY THIS LINE! ?>' . "/n"; 
    196         $logEntries .= ';'. "/n"; 
    197         for($i; $i > $max_entries; $i--) 
    198         { 
    199             # remove linebreaks 
    200             $entry = str_replace(array('\r', '\n'), '', $logfile_array[$i]); 
    201  
    202             $logEntries .= '<b>Entry ' . $i . '</b>'; 
    203             $logEntries .= '<br />' . htmlentities($entry) . '<br />'; 
    204         } 
    205  
    206         # cleanup 
    207         unset($logfilename, $logfile_array, $i, $max_entries, $entry); 
     185        $logfile_cnt = count($logfile_array); 
     186 
     187        if($logfile_cnt > 0) 
     188        { 
     189            # count array elements = total number of logfile entries 
     190            $i = $logfile_cnt - 1; 
     191 
     192            # subtract from total number of logfile entries the number to fetch 
     193            $max_entries = max(0, $i - $entriesToFetch); 
     194 
     195            # reverse for loop over the logfile_array 
     196            $logEntries = ''; 
     197            for($i; $i > $max_entries; $i--) 
     198            { 
     199                # remove linebreaks 
     200                $entry = str_replace(array('\r', '\n'), '', $logfile_array[$i]); 
     201 
     202                $logEntries .= '<b>Entry ' . $i . '</b>'; 
     203                $logEntries .= '<br />' . htmlentities($entry) . '<br />'; 
     204            } 
     205 
     206            # cleanup 
     207            unset($logfilename, $logfile_array, $i, $max_entries, $entry); 
     208        } 
     209        else 
     210        { 
     211            $logEntries .= '<b>No Entries</b>'; 
     212        } 
    208213 
    209214        return $logEntries; 
  • trunk/core/logger/firebug.logger.php

    r4377 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/mailer.core.php

    r4500 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/modulecontroller.core.php

    r4568 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    3835{ 
    3936    die('Clansuite not loaded. Direct Access forbidden.'); 
    40 } 
    41  
    42 /** 
    43  * Interface for all modules 
    44  * 
    45  * Force classes implementing the interface to define this (must have) methods! 
    46  * 
    47  * @category    Clansuite 
    48  * @package     Core 
    49  * @subpackage  Module 
    50  */ 
    51 interface Clansuite_Module_Interface 
    52 { 
    53     # always needed is the main initializeModule() method 
    54     function initializeModule(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response); 
    5537} 
    5638 
     
    8971 
    9072    /** 
     73     * @var object The Http_Request Object 
     74     */ 
     75    public $request = null; 
     76 
     77    /** 
    9178     * @var array The Module Configuration Array 
    9279     */ 
    9380    public $moduleconfig = null; 
     81 
     82    public function __construct(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 
     83    { 
     84        $this->request = $request; 
     85        $this->response = $response; 
     86    } 
    9487 
    9588    /** 
     
    109102        if($modulename === null) 
    110103        { 
    111             $modulename = Clansuite_Dispatcher::getModuleName(); 
     104            $modulename = Clansuite_HttpRequest::getRoute()->getModuleName(); 
    112105        } 
    113106 
     
    282275    { 
    283276        # check if the requesttype is xmlhttprequest (ajax) is incomming, then we will return data in json format 
    284         if(self::getHttpRequest()->isxhr() === true) 
     277        if(self::getHttpRequest()->isAjax() === true) 
    285278        { 
    286279            $this->setRenderEngine('json'); 
     
    361354    private function constructTemplateName() 
    362355    { 
    363         $template = Clansuite_Dispatcher::getActionName() . '.tpl'; 
     356        $template = Clansuite_TargetRoute::getActionName() . '.tpl'; 
    364357        $this->setTemplate($template); 
    365358    } 
     
    419412        } 
    420413 
    421         $response = $this->getHttpResponse();         
    422  
    423         # Debug - Layout Template and Content Template 
    424         # Clansuite_Debug::firebug('Layout/Wrapper Template: ' . $view->getLayoutTemplate() . '<br />'); 
    425         # Clansuite_Debug::firebug('Template Name: ' .$this->getTemplateName() . '<br />'); 
    426  
    427         #  Set Content on the Response Object 
    428         $response->setContent($this->getView()->render($this->getTemplateName())); 
     414        # get the templatename 
     415        $templatename = $this->getTemplateName(); 
     416 
     417        # get the view 
     418        $this->view = $this->getView(); 
     419 
     420        # Debug display of Layout Template and Content Template 
     421        Clansuite_Debug::firebug('Layout/Wrapper Template: ' . $this->view->getLayoutTemplate() . '<br />'); 
     422        Clansuite_Debug::firebug('Template Name: ' . $templatename . '<br />'); 
     423 
     424        # render the content / template 
     425        $content = $this->view->render($templatename); 
     426 
     427        # push content to the response object 
     428        $this->response->setContent($content); 
     429 
     430        unset($content, $templatename); 
    429431    } 
    430432 
     
    494496        $referer = self::getHttpRequest()->getReferer(); 
    495497 
    496         if(empty($referer) == false) 
     498        if(empty($referer) === false) 
    497499        { 
    498500            $this->redirect($referer); 
     
    500502        else 
    501503        { 
    502             $this->redirect( WWW_ROOT . Clansuite_Module_Controller_Resolver::getModuleName() ); 
     504            $this->redirect( WWW_ROOT . Clansuite_HttpRequest::getRoute()->getModuleName() ); 
    503505        } 
    504506    } 
     
    557559    public function getHttpRequest() 
    558560    { 
    559         return self::getInjector()->instantiate('Clansuite_HttpRequest'); 
     561        return $this->request; 
    560562    } 
    561563 
     
    567569    public function getHttpResponse() 
    568570    { 
    569         return self::getInjector()->instantiate('Clansuite_HttpResponse'); 
     571        return $this->response; 
    570572    } 
    571573} 
  • trunk/core/moduledecorator.core.php

    r4507 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    5047 * @version    0.1 
    5148 */ 
    52 class Clansuite_Module_ControllerDecorator implements Clansuite_Module_Interface 
     49class Clansuite_Module_ControllerDecorator 
    5350{ 
    5451    # the moduleController to decorate 
  • trunk/core/moduleinfocontroller.core.php

    r4559 r4578  
    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> 
    2625    * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    27     * 
    2826    * @link       http://www.clansuite.com 
    29     * @link       http://gna.org/projects/clansuite 
    3027    * 
    3128    * @version    SVN: $Id$ 
  • trunk/core/preprocessor.core.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/remotefetch.core.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/renderer/csv.renderer.php

    r4500 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/renderer/json.renderer.php

    r4500 r4578  
    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     * @copyright  Jens-Andrᅵ Koch (2005 - onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005 - onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/renderer/pdf.renderer.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/renderer/php.renderer.php

    r4493 r4578  
    44    * Jens-André Koch © 2005 - onwards 
    55    * http://www.clansuite.com/ 
     6    * 
     7    * This file is part of "Clansuite - just an eSports CMS". 
    68    * 
    79    * LICENSE: 
     
    2123    *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    2224    * 
    23     * @license    GNU/GPL, see COPYING.txt 
    24     * 
     25    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    2526    * @author     Jens-André Koch <vain@clansuite.com> 
    2627    * @copyright  Jens-André Koch (2005 - onwards) 
    27     * 
    2828    * @link       http://www.clansuite.com 
    29     * @link       http://gna.org/projects/clansuite 
    3029    * 
    3130    * @version    SVN: $Id$ 
  • trunk/core/renderer/phptal.renderer.php

    r4556 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/renderer/renderer.base.php

    r4556 r4578  
    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     * 
     29   * 
    3330    * @version    SVN: $Id$ 
    3431    */ 
     
    209206    { 
    210207        # get module and submodule names 
    211         $module    = Clansuite_Dispatcher::getModuleName(); 
    212         $submodule = Clansuite_Dispatcher::getSubModuleName(); 
     208        $module    = Clansuite_HttpRequest::getRoute()->getModuleName(); 
     209        $submodule = Clansuite_HttpRequest::getRoute()->getSubModuleName(); 
    213210 
    214211        # 1. because controlcenter or admin is requested, it has to be a BACKEND theme 
     
    216213        { 
    217214            # (a) USER BACKENDTHEME - check in the active session backendtheme 
    218             if(isset($_SESSION['user']['backendtheme']) and is_file(ROOT_THEMES . $_SESSION['user']['backendtheme'] .DS. $template)) 
    219             { 
    220                 return ROOT_THEMES . $_SESSION['user']['backendtheme'] .DS. $template; 
    221             } 
    222             elseif(isset($_SESSION['user']['backendtheme']) and is_file(ROOT_THEMES . $_SESSION['user']['backendtheme'] .DS. $module .DS. $template)) 
    223             { 
    224                 return ROOT_THEMES . $_SESSION['user']['backendtheme'] .DS. $module .DS. $template; 
     215            $backend_theme = ROOT_THEMES . $_SESSION['user']['backendtheme']; 
     216            if(isset($_SESSION['user']['backendtheme']) and is_file($backend_theme . DS . $template)) 
     217            { 
     218                return $backend_theme . DS . $template; 
     219            } 
     220            elseif(isset($_SESSION['user']['backendtheme']) and is_file($backend_theme . DS . $module . DS . $template)) 
     221            { 
     222                return $backend_theme . DS . $module . DS . $template; 
    225223            } 
    226224            # (b) BACKEND FALLBACK - check the fallback dir: themes/admin 
    227             elseif(is_file( ROOT_THEMES . 'admin' .DS. $template) === true) 
    228             { 
    229                 return ROOT_THEMES . 'admin' .DS. $template; 
     225            elseif(is_file(ROOT_THEMES . 'admin' . DS . $template) === true) 
     226            { 
     227                return ROOT_THEMES . 'admin' . DS . $template; 
    230228            } 
    231229        } 
     
    233231        { 
    234232            # (a) USER FRONTENDTHEME - check, if template exists in current session user THEME 
    235             if(isset($_SESSION['user']['theme']) and is_file( ROOT_THEMES . $_SESSION['user']['theme'] .DS. $template)) 
    236             { 
    237                 return ROOT_THEMES . $_SESSION['user']['theme'] .DS. $template; 
     233            $session_theme = ROOT_THEMES . $_SESSION['user']['theme']; 
     234            if(isset($_SESSION['user']['theme']) and is_file($session_theme . DS . $template)) 
     235            { 
     236                return $session_theme . DS . $template; 
    238237            } 
    239238            # (b) FRONTEND FALLBACK - check, if template exists in usertheme/modulename/tpl 
    240             elseif(is_file( ROOT_THEMES . $_SESSION['user']['theme'] .DS. $module .DS. $template ) === true) 
    241             { 
    242                 return ROOT_THEMES . $_SESSION['user']['theme'] .DS. $module .DS. $template; 
     239            elseif(is_file($session_theme . DS . $module . DS . $template) === true) 
     240            { 
     241                return $session_theme . DS . $module . DS . $template; 
    243242            } 
    244243            # (c) FRONTEND FALLBACK - check, if template exists in standard theme 
    245             elseif(is_file( ROOT_THEMES .DS. 'standard' .DS. $template) === true) 
    246             { 
    247                 return ROOT_THEMES .DS. 'standard' .DS. $template; 
     244            elseif(is_file(ROOT_THEMES . DS . 'standard' . DS . $template) === true) 
     245            { 
     246                return ROOT_THEMES . DS . 'standard' . DS . $template; 
    248247            } 
    249248        } 
     
    301300        $template_constants['www_root']             = WWW_ROOT; 
    302301        $template_constants['www_root_upload']      = WWW_ROOT .'/'. $this->config['paths']['upload_folder']; 
    303         $template_constants['www_root_mod']         = WWW_ROOT .'/modules/' . Clansuite_Dispatcher::getModuleName(); 
     302        $template_constants['www_root_mod']         = WWW_ROOT .'/modules/' . Clansuite_HttpRequest::getRoute()->getModuleName(); 
    304303        $template_constants['www_root_theme']       = WWW_ROOT_THEMES .'/'. $_SESSION['user']['theme']; 
    305304        $template_constants['www_root_themes']      = WWW_ROOT_THEMES; 
     
    355354 
    356355        # Debug Display 
    357         #clansuite_xdebug::printR($template_constants); 
     356        #Clansuite_Debug::printR($template_constants); 
    358357 
    359358        return $template_constants; 
  • trunk/core/renderer/serialized.renderer.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/renderer/smarty.renderer.php

    r4568 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    172169         * CACHING OPTIONS (set these options if caching is enabled) 
    173170         */ 
    174         #clansuite_xdebug::printr($this->config['cache']); 
     171        #Clansuite_Debug::printr($this->config['cache']); 
    175172        # var_dump($this->config['cache']); 
    176173        if($this->renderer->debugging == true) 
     
    254251 
    255252        # 1) + 2) in case the controlcenter is the requested module 
    256         if(Clansuite_Dispatcher::getModuleName() == 'controlcenter' or Clansuite_Dispatcher::getSubModuleName() == 'admin') 
     253        if(Clansuite_TargetRoute::getModuleName() == 'controlcenter' or Clansuite_TargetRoute::getSubModuleName() == 'admin') 
    257254        { 
    258255            # Backend Theme Detections 
    259256            $_SESSION['user']['backendtheme'] = 'admin'; 
    260257            $this->renderer->template_dir[] = ROOT_THEMES . $_SESSION['user']['backendtheme']; 
    261             $this->renderer->template_dir[] = ROOT_THEMES . $_SESSION['user']['backendtheme'] . DS . Clansuite_Dispatcher::getModuleName() . DS; 
     258            $this->renderer->template_dir[] = ROOT_THEMES . $_SESSION['user']['backendtheme'] . DS . Clansuite_TargetRoute::getModuleName() . DS; 
    262259        } 
    263260        else 
     
    265262            # Frontend Theme Detections 
    266263            $this->renderer->template_dir[] = ROOT_THEMES . $frontendtheme; 
    267             $this->renderer->template_dir[] = ROOT_THEMES . $frontendtheme . DS . Clansuite_Dispatcher::getModuleName() . DS; 
     264            $this->renderer->template_dir[] = ROOT_THEMES . $frontendtheme . DS . Clansuite_TargetRoute::getModuleName() . DS; 
    268265        } 
    269266 
     
    273270        # 3) + 4) modules dir 
    274271        $this->renderer->template_dir[] = ROOT_MOD; 
    275         $this->renderer->template_dir[] = ROOT_MOD . Clansuite_Dispatcher::getModuleName() . DS . 'view' . DS; 
     272        $this->renderer->template_dir[] = ROOT_MOD . Clansuite_TargetRoute::getModuleName() . DS . 'view' . DS; 
    276273 
    277274        # 5) themes dir 
     
    279276 
    280277        # 6) the admin theme 
    281         if(Clansuite_Dispatcher::getModuleName() == 'controlcenter' or Clansuite_Dispatcher::getSubModuleName() == 'admin') 
     278        if(Clansuite_TargetRoute::getModuleName() == 'controlcenter' or Clansuite_TargetRoute::getSubModuleName() == 'admin') 
    282279        { 
    283280            $this->renderer->template_dir[] = ROOT_THEMES . 'admin' . DS; 
     
    287284        $this->renderer->template_dir[] = ROOT_THEMES; 
    288285 
    289         #clansuite_xdebug::printR($this->renderer->template_dir); 
     286        #Clansuite_Debug::printR($this->renderer->template_dir); 
    290287 
    291288        /** 
     
    299296        $this->renderer->plugins_dir[] = ROOT_LIBRARIES . 'smarty/plugins/'; 
    300297        $this->renderer->plugins_dir[] = ROOT_CORE . 'viewhelper/smarty/'; 
    301         $this->renderer->plugins_dir[] = ROOT_MOD . Clansuite_Dispatcher::getModuleName() . '/viewhelper/smarty/'; 
    302  
    303         #clansuite_xdebug::printR($this->renderer->plugins_dir); 
     298        $this->renderer->plugins_dir[] = ROOT_MOD . Clansuite_TargetRoute::getModuleName() . '/viewhelper/smarty/'; 
     299 
     300        #Clansuite_Debug::printR($this->renderer->plugins_dir); 
    304301 
    305302        /** 
     
    481478         * This is used in template_not_found.tpl to provide a link to the templateeditor 
    482479         */ 
    483         $this->renderer->assign('modulename', Clansuite_Dispatcher::getModuleName()); 
    484         $this->renderer->assign('actionname', Clansuite_Dispatcher::getActionName()); 
     480        $this->renderer->assign('modulename', Clansuite_TargetRoute::getModuleName()); 
     481        $this->renderer->assign('actionname', Clansuite_TargetRoute::getActionName()); 
    485482        $this->renderer->assign('templatename', $template); 
    486483        $this->renderer->assign('template_to_render', $template); 
  • trunk/core/renderer/xslt.renderer.php

    r4556 r4578  
    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 
    3229     * 
    3330     * @version    SVN: $Id$ 
  • trunk/core/renderer/xtemplate.renderer.php

    r4556 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/responseencode.core.php

    r4498 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/router.core.php

    r4568 r4578  
    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) 
     28    * @link       http://www.clansuite.com 
    2929    * 
    30     * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * 
    33     * @version    SVN: $Id$response.class.php 2580 2008-11-20 20:38:03Z vain $ 
     30    * @version    SVN: $Id$ 
    3431    */ 
    3532 
     
    5148 * Normally all requests made map to a specific physical resource rather than a logical name. 
    5249 * With Routing you are able to map a logical name to a specific physical name. 
    53  * Example: map a logical URL (a mod_rewritten one) to a Controller/Method/Parameter 
    54  * Map a FileRequest via logical URL (a mod_rewritten one) to a DownloadController/Method/Parameter 
     50 * Examples: map a logical URL (a mod_rewritten one) to a Controller/Method/Parameter 
     51 * or map a FileRequest via logical URL (a mod_rewritten one) to a DownloadController/Method/Parameters 
    5552 * 
    5653 * There are two different URL Formatings allowed: 
     
    5855 * 2. Fake HTML File Request or SMF-Style, like so: /mod.sub.action.id.html 
    5956 * 
    60  * SPL Iterator and ArrayAccess are used for fast iteration and easier access to the stored routes. 
    61  * 
    6257 * @category    Clansuite 
    6358 * @package     Core 
    6459 * @subpackage  Router 
    6560 */ 
    66 class Clansuite_Router implements Iterator, ArrayAccess, Clansuite_Router_Interface 
     61class Clansuite_Router implements ArrayAccess, Clansuite_Router_Interface 
    6762{ 
    6863    private static $use_cache = false; 
     
    7065    private $uri = ''; 
    7166    private $uri_segments = array(); 
    72     private $extension = ''; 
     67    private static $extension = ''; 
    7368 
    7469    /** 
     
    8378     */ 
    8479    private $routes = array(); 
    85      
     80 
    8681    /** 
    8782     * Constructor. 
    88      * 
    89      * @param string $request_url The Request URL incomming via Clansuite_HttpRequest::getRequestURI() 
    90      */ 
    91     public function __construct($request_uri) 
    92     { 
     83     */ 
     84    public function __construct(Clansuite_HttpRequest $request) 
     85    { 
     86        $request_uri = $request::getRequestURI(); 
     87 
    9388        # clean the incomming uri 
    9489        $this->uri = self::prepareRequestURI($request_uri); 
    95  
    96         # check if routes caching is activated in config, maybe we can load routes from cache 
    97         if(isset($config['routing']['cache_routes']) and true === $config['routing']['cache_routes']) 
    98         { 
    99             self::$use_cache = true; 
    100         } 
    101         else 
    102         { 
    103             self::$use_cache = false; 
    104         } 
    10590    } 
    10691 
     
    11196     * @param array $route_options 
    11297     */ 
    113     public function addRoute($url_pattern, array $route_options) 
    114     { 
    115         $this->connect($url_pattern, $route_options); 
     98    public function addRoute($url_pattern, array $route_options = null) 
     99    { 
     100        /** 
     101         * 1) Preprocess the route 
     102         */ 
     103        # split the pattern describing the URL target into uri segments 
     104        $url_pattern = ltrim($url_pattern, '/'); 
     105        $segments = explode('/', $url_pattern); 
     106 
     107        # because the incomming route might have placeholders lile (:num) or (:id) 
     108        $url_pattern = self::placeholdersToRegexp($url_pattern); 
     109 
     110        $regexp = ''; 
     111        $regexp = $this->processSegmentsRegExp($segments, $route_options); 
     112        $number_of_segments = count($segments); 
     113        $options = array('regexp' => $regexp, 
     114                         'number_of_segments' => $number_of_segments); 
     115 
     116 
     117        /** 
     118         * 2) Finally add the *now preprocessed* Route. 
     119         */ 
     120        $this->routes[$url_pattern] = $options; 
     121    } 
     122 
     123    public function processSegmentsRegExp(array $segments, array $requirements = null) 
     124    { 
     125        # start regular expression 
     126        $regexp = '/^'; 
     127 
     128        # process all segments 
     129        foreach($segments as $segment) 
     130        { 
     131            /** 
     132             * process static named parameter => ":contoller" 
     133             */ 
     134            if (preg_match('/^:([a-zA-Z_]+)$/', $segment, $match)) 
     135            { 
     136                $name = $match[1]; #controller 
     137 
     138                # is there a requirement for this param? 
     139                if(isset($requirements[$name])) 
     140                { 
     141                    # add it to the regex 
     142                    $regexp .= '\/(?P<' . $name . '>' . $requirements[$name] . ')'; 
     143                    # and remove the requirement 
     144                    unset($requirement[$name]); 
     145                } 
     146                else # no requirement 
     147                { 
     148                    $regexp .= '(?P<' . $name . '>[a-z0-9_-]+)'; 
     149                } 
     150            } 
     151            else # process static parameter = string => "/index" or "/news" 
     152            { 
     153                $regexp .= '\\/' . $segment; 
     154            } 
     155 
     156            # regexp between segments 
     157            $regexp .= '\/?'; 
     158        } 
     159 
     160        # finish regular expression 
     161        $regexp .= '$/'; 
     162 
     163        return $regexp; 
    116164    } 
    117165 
     
    138186        return $this->routes; 
    139187    } 
    140      
     188 
    141189    /** 
    142190     * Delete a route by its url pattern 
     
    161209    public function generateURL($url_pattern, array $params = null, $fragment = null, $absolute = false) 
    162210    { 
    163          
     211 
    164212    } 
    165213 
     
    194242        if(empty($this->uri) or $this->uri === '/') 
    195243        { 
    196             $route = new Clansuite_TargetRoute(); 
    197             $route->setController('news'); 
    198             $route->setAction('show'); 
    199             return $route; 
     244            Clansuite_TargetRoute::setController('news'); 
     245            Clansuite_TargetRoute::setAction('show'); 
     246 
     247            return Clansuite_TargetRoute::getInstance(); 
    200248        } 
    201249 
    202250        # attach more routes to this object via the event "onInitializeRoutes" 
    203         Clansuite_CMS::triggerEvent('onInitializeRoutes', $this); 
     251        #Clansuite_CMS::triggerEvent('onInitializeRoutes', $this); 
    204252 
    205253        # initalize Routes 
    206         #$this->loadDefaultRoutes(); 
     254        $this->loadDefaultRoutes(); 
    207255 
    208256        # first filter: drop all routes with more segments then uri_segments 
    209         #self::removeRoutesBySegmentCount(); 
     257        self::removeRoutesBySegmentCount(); 
    210258 
    211259        # map match uri 
    212  
     260        return $this->mapMatchURI(); 
     261    } 
     262 
     263    /** 
     264     * Matches the URI against the Routes Table 
     265     * takes static, dynamic and regexp routings into account 
     266     * 
     267     * @return object Clansuite_TargetRoute 
     268     */ 
     269    public function mapMatchURI() 
     270    { 
     271        Clansuite_Debug::firebug($this->uri); 
     272 
     273        /** 
     274         * Do we have a direct match ? 
     275         * URI = '/index/show' => Routes['/index/show'] 
     276         */ 
     277        if(isset($this->routes[$this->uri])) # does this check work? 
     278        { 
     279            $found_route = $this->routes[$this->uri]; 
     280        } 
     281        else # no, there wasn't a 1:1 match. now we have to check the uri segments 
     282        { 
     283            # loop over the remaining routes and try to map match the uri_segments 
     284            foreach($this->routes as $route_pattern => $route_values) 
     285            { 
     286                # @todo $this->uri might be enough here 
     287                $uri = implode('/', $this->uri_segments); 
     288 
     289                Clansuite_Debug::firebug($route_values); 
     290 
     291                /** 
     292                 * process static named parameter 
     293                 * like ":controller" or ":subcontroller" or ":action" or ":id" 
     294                 * $route_pattern 
     295                 */ 
     296                if (1 === preg_match('/^:([a-zA-Z_]+)$/', $uri, $match)) 
     297                { 
     298                    Clansuite_Debug::firebug($match); 
     299                    $name = $match[1]; #setController($match[1]); 
     300                    $found_route = $name; 
     301                } 
     302 
     303                # dynamic regexp segment? 
     304                elseif(1 === preg_match( $route_values['regexp'], $uri, $matches)) 
     305                { 
     306                    Clansuite_Debug::firebug($matches); 
     307 
     308                    # parameters found by regular expression have priority 
     309                    if(isset($matches['controller'])) 
     310                    { 
     311                        Clansuite_TargetRoute::setController($matches['controller']); 
     312                    } 
     313 
     314                    if(isset($matches['action'])) 
     315                    { 
     316                       Clansuite_TargetRoute::setAction($matches['action']); 
     317                    } 
     318 
     319                    if(isset($matches['id'])) 
     320                    { 
     321                       Clansuite_TargetRoute::setId($matches['id']); 
     322                    } 
     323                } 
     324 
     325                # route found 
     326                break; 
     327            } 
     328        } 
     329 
     330        #Clansuite_TargetRoute::setController($found_route); 
     331        #Clansuite_TargetRoute::setAction('show'); 
     332 
     333        return Clansuite_TargetRoute::getInstance(); 
     334        # Clansuite_CMS::triggerEvent('onAfterInitializeRoutes', $this); 
    213335    } 
    214336 
     
    221343     * @return bool True, if "RewriteEngine On". False otherwise. 
    222344     */ 
    223     public static function isRewriteEngineOn() 
     345    public function isRewriteEngineOn() 
    224346    { 
    225347        # maybe, we have a modrewrite config setting, this avoids overhead 
     
    232354        if(function_exists('apache_get_modules') and in_array('mod_rewrite', apache_get_modules())) 
    233355        { 
    234             # load htacces and check if RewriteEngine is enabled 
    235             $htaccess_content = @file_get_contents(ROOT . '.htaccess'); 
    236             self::$rewriteEngineOn = preg_match('/.*[^#][\t ]+RewriteEngine[\t ]+On/i', $htaccess_content); 
     356            # load htaccess and check if RewriteEngine is enabled 
     357            if(true === is_file(ROOT . '.htaccess')) 
     358            { 
     359                $htaccess_content = file_get_contents(ROOT . '.htaccess'); 
     360                self::$rewriteEngineOn = preg_match('/.*[^#][\t ]+RewriteEngine[\t ]+On/i', $htaccess_content); 
     361            } 
    237362 
    238363            if(self::$rewriteEngineOn == 1) 
     
    288413        $route = new Clansuite_TargetRoute(); 
    289414 
     415        # Controller 
    290416        if(isset($this->uri_segments['mod'])) 
    291417        { 
     
    294420        } 
    295421 
     422        # SubController 
    296423        if(isset($this->uri_segments['sub'])) 
    297424        { 
     
    300427        } 
    301428 
     429        # Action 
    302430        if(isset($this->uri_segments['action'])) 
    303431        { 
     
    306434        } 
    307435 
    308         # the rest of the uri_segments are just params for the method 
    309  
     436        # Parameters 
    310437        if(count($this->uri_segments) > 0) 
    311438        { 
     
    321448     * 
    322449     * This URLParser has to extract mod, sub, action, id/parameters from the URI. 
     450     * This is the Standard_Request_Resolver. 
    323451     * 
    324452     * @param string $url The Request URL 
    325453     */ 
    326     private function UrlParser_NoRewrite($uri) # Standard_Request_Resolver 
    327     { 
    328  
     454    private function UrlParser_NoRewrite($uri) 
     455    { 
    329456        # use some parse_url magic to get the url_query part from the uri 
    330457        $uri_query_string = parse_url($uri, PHP_URL_QUERY); 
     
    346473            foreach($uri_query_array as $query_pair) 
    347474            { 
    348                 list($key, $value) = explode('=', $query_pair); 
    349                 $parameters[$key] = $value; 
     475                if( false !== strpos($query_pair, '=')) 
     476                { 
     477                    list($key, $value) = explode('=', $query_pair); 
     478                    $parameters[$key] = $value; 
     479                } 
    350480            } 
    351481        } 
    352  
    353482        unset($uri_query_string, $uri_query_array, $query_pair, $key, $value); 
    354483 
     
    384513            $uri = mb_substr($uri, 0, $pos); 
    385514        } 
    386         unset($pos); 
    387515 
    388516        /** 
     
    401529            $uri_dot_array = explode('.', $uri); 
    402530            # chop off the last piece as the extension 
    403             $this->extension = array_pop($uri_dot_array); 
     531            self::$extension = array_pop($uri_dot_array); 
    404532            # there might be multiple dots in the url 
    405533            # thats why implode is used to reassemble the segmentized array to a string again 
     
    407535            # = ini_get('arg_separator.output') 
    408536            $uri = implode('/', $uri_dot_array); 
    409         } 
    410         unset($uri_dot_array); 
     537            unset($uri_dot_array); 
     538        } 
    411539        unset($pos); 
    412540 
     
    422550        #Clansuite_Debug::firebug($uri_split); 
    423551        $this->uri_segments = $url_split; 
     552        unset($url_split); 
    424553    } 
    425554 
     
    461590    } 
    462591 
     592    public static function checkRouteCachingActive() 
     593    { 
     594        # check if routes caching is activated in config, maybe we can load routes from cache 
     595        if(isset($config['routing']['cache_routes']) and true === $config['routing']['cache_routes']) 
     596        { 
     597            self::$use_cache = true; 
     598        } 
     599        else 
     600        { 
     601            self::$use_cache = false; 
     602        } 
     603    } 
     604 
    463605    /** 
    464606     * Register the default routes. 
     
    466608    public function loadDefaultRoutes() 
    467609    { 
    468         # check cache for routes 
     610        self::checkRouteCachingActive(); 
     611 
     612        # Load Routes from Cache 
    469613        if(true === self::$use_cache and empty($this->routes) and Clansuite_Cache::contains('clansuite.routes')) 
    470614        { 
     
    472616        } 
    473617 
    474         if(empty($this->routes)) # load routes table from routes.config.php 
     618        # Load Routes from routes.config.php 
     619        if(empty($this->routes)) 
    475620        { 
    476621            $this->addRoutes( Clansuite_Routes_Manager::loadRoutesFromConfig()); 
     
    490635        if(empty($this->routes)) 
    491636        { 
    492             $this->connect('/:controller'); 
    493             $this->connect('/:controller/:action'); 
    494             $this->connect('/:controller/:action/:id'); 
    495             $this->connect('/:controller/:action/:id/:format'); 
     637            $this->addRoute('/:controller'); 
     638            $this->addRoute('/:controller/:action'); 
     639            $this->addRoute('/:controller/:action/:id'); 
     640            $this->addRoute('/:controller/:action/:id/:format'); 
     641            /* 
     642            $this->addRoute('/:controller/:subcontroller'); 
     643            $this->addRoute('/:controller/:subcontroller/:action'); 
     644            $this->addRoute('/:controller/:subcontroller/:action/:id'); 
     645            $this->addRoute('/:controller/:subcontroller/:action/:id/:format'); 
     646            */ 
    496647        } 
    497648    } 
     
    535686/** 
    536687 * Clansuite_Mapper 
     688 * 
     689 * Provides helper methods to transform (map) 
     690 * (a) the controller name into the specific application classname and filename 
     691 * (b) the action name into the specific application actioname. 
    537692 * 
    538693 * @category    Clansuite 
     
    600755 
    601756        # attach subcontroller to classname 
    602         if($subcontroller !== null) 
     757        if(isset($subcontroller)) 
    603758        { 
    604759            $classname .= '_' . ucfirst($subcontroller); 
     
    609764 
    610765    /** 
    611      * Maps the action to an method name. 
    612      * The pseudo-namesspace prefix 'action_' is used for all actions. 
    613      * Example: action_show() 
     766     * Maps the action to it's method name. 
     767     * The prefix 'action_' (pseudo-namesspace) is used for all actions. 
     768     * Example: A action named "show" will be mapped to "action_show()" 
    614769     * This is also a way to ensure some kind of whitelisting via namespacing. 
    615770     * 
     
    617772     * In this case the actionname is action_admin_show(). 
    618773     * 
    619      * @param  string the action 
    620      * @param  string the submodule 
    621      * @return string  the mapped method name 
     774     * @param  string $action the action 
     775     * @param  string $submodule the submodule 
     776     * @return string the mapped method name 
    622777     */ 
    623778    public static function mapActionToActioname($action, $submodule = null) 
    624779    { 
    625         # action not set by URL, so we set action from config/this class 
     780        # set default value for action, when not set by URL 
    626781        if(false === isset($action)) 
    627782        { 
    628             # set the method name 
    629783            $action = self::$defaultAction; 
    630784        } 
    631785 
    632         # if $submodule is set, use it as a prefix on $action 
    633         if(isset($submodule) and ($submodule !== null)) 
     786        # if a $submodule is set, use it as a PREFIX on $action 
     787        if(isset($submodule)) 
    634788        { 
    635789            $action = $submodule . '_' . $action; 
    636790        } 
    637791 
     792        #Clansuite_Debug::firebug($action); 
     793 
    638794        # all clansuite actions are prefixed with 'action_' 
    639         return 'action_' . $action; 
     795        return self::METHOD_PREFIX . '_' . $action; 
    640796    } 
    641797} 
    642798 
     799/** 
     800 * Clansuite_TargetRoute (processed RequestObject) 
     801 */ 
    643802class Clansuite_TargetRoute extends Clansuite_Mapper 
    644803{ 
    645     private static $parameters = array( 
     804    public static $parameters = array( 
     805        # File 
    646806        'filename'      => null, 
    647807        'classname'     => null, 
     808        # Call 
    648809        'controller'    => 'index', 
    649810        'subcontroller' => null, 
     
    651812        'method'        => null, 
    652813        'params'        => null, 
     814        # Output 
    653815        'format'        => 'html', 
    654816        'language'      => 'en', 
     
    660822    ); 
    661823 
     824    /** 
     825     * Clansuite_TargetRoute is a Singleton 
     826     * 
     827     * @return instance of Clansuite_TargetRoute class 
     828     */ 
     829    public static function getInstance() 
     830    { 
     831        static $instance; 
     832        if(isset($instance) == null) 
     833        { 
     834            $instance = new Clansuite_TargetRoute(); 
     835        } 
     836        return $instance; 
     837    } 
     838 
    662839    public static function setFilename($filename) 
    663840    { 
     
    695872    } 
    696873 
     874    /** 
     875     * Returns Name of the Controller 
     876     * 
     877     * @return string Controller/Modulename 
     878     */ 
    697879    public static function getController() 
    698880    { 
     
    700882    } 
    701883 
     884    /** 
     885     * Convenience/shorthand Method for getController() 
     886     * 
     887     * @return string Controller/Modulename 
     888     */ 
     889    public static function getModuleName() 
     890    { 
     891        return self::$parameters['controller']; 
     892    } 
     893 
    702894    public static function setSubController($subcontroller) 
    703895    { 
     
    710902    } 
    711903 
     904    /** 
     905     * Method to get the SubModuleName 
     906     * 
     907     * @return $string 
     908     */ 
     909    public static function getSubModuleName() 
     910    { 
     911        return self::$parameters['subcontroller']; 
     912    } 
     913 
    712914    public static function setAction($action) 
    713915    { 
     
    718920    { 
    719921        return self::$parameters['action']; 
     922    } 
     923 
     924    public static function setId($id) 
     925    { 
     926        self::$parameters['params']['id'] = $id; 
     927    } 
     928 
     929    public static function getId() 
     930    { 
     931        return self::$parameters['params']['id']; 
     932    } 
     933 
     934    /** 
     935     * Method to get the Action with Prefix 
     936     * 
     937     * @return $string 
     938     */ 
     939    public static function getActionName() 
     940    { 
     941        return self::$parameters['method']; 
    720942    } 
    721943 
     
    732954            return self::$parameters['method']; 
    733955        } 
    734         else # add method prefix 
    735         { 
    736             $method = 'action_' . self::$parameters['action']; 
    737  
    738             # action + prefix = method, set it 
    739             self::setMethod($method); 
     956        else # add method prefix (action_) and subcontroller prefix (admin_) 
     957        { 
     958            #if(empty(self::$parameters['method'])) 
     959            #{ 
     960                self::setMethod(self::mapActionToActioname(self::getAction(), self::getSubController())); 
     961            #} 
    740962        } 
    741963 
     
    7911013    { 
    7921014        return ROOT_MOD . self::getController() . DS; 
     1015    } 
     1016 
     1017    public static function debug() 
     1018    { 
     1019        $string = (string) implode(",", self::$parameters); 
     1020        Clansuite_Debug::firebug($string); 
     1021    } 
     1022 
     1023    public static function getRoute() 
     1024    { 
     1025        return self::$parameters; 
    7931026    } 
    7941027} 
     
    8021035class Clansuite_Routes_Manager 
    8031036{ 
    804     public static function addRoutesOfModule($modulename) 
     1037    public function addRoutesOfModule($modulename) 
    8051038    { 
    8061039        self:updateApplicationRoutes($modulename); 
    8071040    } 
    8081041 
    809     public static function delRoutesOfModule($modulename) 
     1042    public function delRoutesOfModule($modulename) 
    8101043    { 
    8111044        $module_routes_file = ROOT_MOD . '/' . $modulename . '/' . $modulename . '.routes.php'; 
     
    8251058    { 
    8261059        $routes_count = count($this->routes); 
     1060 
     1061        # loop over all routes 
    8271062        for($i == 0; $i < $routes_count; $i++) 
    8281063        { 
     1064            # check if there is a route with the given name 
    8291065            if($this->routes[$i]['name'] == $route_name) 
    8301066            { 
     1067                # got one? then remove it from the routes array and stop 
    8311068                array_splice($this->routes, $i, 1); 
    8321069                break; 
    8331070            } 
    8341071        } 
     1072 
    8351073        return $this->routes;; 
    8361074    } 
     
    8411079     * @param string $modulename Name of module 
    8421080     */ 
    843     public static function updateApplicationRoutes($modulename = null) 
     1081    public function updateApplicationRoutes($modulename = null) 
    8441082    { 
    8451083        $activated_modules = array(); 
     
    8841122        { 
    8851123            # load common routes configuration 
    886             $routes = include ROOT . 'configuration/routes.config.php'; 
     1124            # includes array $routes 
     1125            include ROOT . 'configuration/routes.config.php'; 
    8871126        } 
    8881127        else 
    8891128        { 
    8901129            # load specific routes config file 
    891             $routes = include ROOT . $routes_config_file; 
     1130            include ROOT . $routes_config_file; 
    8921131        } 
    8931132 
  • trunk/core/security.core.php

    r4498 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/session.core.php

    r4500 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    8784     */ 
    8885 
    89     function __construct($config, Clansuite_HttpRequest $request) 
     86    function __construct(Clansuite_Config $config, Clansuite_HttpRequest $request) 
    9087    { 
    9188        $this->config   = $config; 
     
    115112 
    116113        # use a cookie to store the session id 
     114        # @todo force session cookies? 
    117115        ini_set('session.use_cookies', $this->config['session']['use_cookies'] ); 
    118116        ini_set('session.use_only_cookies', $this->config['session']['use_cookies_only'] ); 
  • trunk/core/user.core.php

    r4493 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    599596                     ->fetchOne(array(1), Doctrine::HYDRATE_ARRAY);*/ 
    600597 
    601         #Clansuite_XDebug::firebug($rights); 
     598        #Clansuite_Debug::firebug($rights); 
    602599 
    603600        /* 
     
    611608        */ 
    612609 
    613         #Clansuite_XDebug::firebug($_SESSION); 
     610        #Clansuite_Debug::firebug($_SESSION); 
    614611    } 
    615612} 
  • trunk/core/viewhelper/blockcontainer.core.php

    r4377 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagrid.core.php

    r4500 r4578  
    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> 
     26    * @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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcol.core.php

    r4493 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/checkbox.column.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/date.column.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/editbutton.column.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/email.column.php

    r4464 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/image.column.php

    r4493 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/integer.column.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     29    *  
    3230    * 
    3331    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/link.column.php

    r4493 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/datagridcols/string.column.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-Andrᅵ Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/form.core.php

    r4498 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    608605        $formelements = $this->getFormelements(); 
    609606 
    610         #clansuite_xdebug::printR($formelements); 
     607        #Clansuite_Debug::printR($formelements); 
    611608 
    612609        # sort formelements by index 
     
    631628            /*if($formelement_position == 1) 
    632629            { 
    633                 clansuite_xdebug::printR($formelements); 
     630                Clansuite_Debug::printR($formelements); 
    634631            }*/ 
    635632 
    636             #clansuite_xdebug::printR($formelement); 
     633            #Clansuite_Debug::printR($formelement); 
    637634 
    638635            # then render this formelement (pure) 
     
    653650        } 
    654651 
    655         #clansuite_xdebug::printR($html_form); 
     652        #Clansuite_Debug::printR($html_form); 
    656653        return $html_form; 
    657654    } 
     
    941938    { 
    942939        # Debug of incomming decorators 
    943         #clansuite_xdebug::printR($decorators); 
     940        #Clansuite_Debug::printR($decorators); 
    944941 
    945942        # check if multiple decorators are incomming at once 
     
    971968            $decorator = $this->decoratorFactory($decorators); 
    972969            $decoratorname = $decorator->name; 
    973             #clansuite_xdebug::printR($decorator); 
     970            #Clansuite_Debug::printR($decorator); 
    974971        } 
    975972 
  • trunk/core/viewhelper/formdecorator.core.php

    r4507 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/div.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/errors.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/fieldset.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/form.form.php

    r4493 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/label.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/list.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/tab.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/form/table.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/formelement/description.form.php

    r4445 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    32     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
  • trunk/core/viewhelper/formdecorators/formelement/div.form.php

    r4445 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/formelement/formelement.form.php

    r4445 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/formelement/label.form.php

    r4445 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formdecorators/formelement/none.form.php

    r4445 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelement.core.php

    r4500 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    487484    public function getIncommingFormData($formmethod) 
    488485    { 
    489         $request = $this->injector->instantiate('Clansuite_HttpRequest'); 
     486        $request = $this->getHttpRequest(); 
    490487 
    491488        # better use this -> $formmethod = $request->getMethod(); 
     
    608605        # Insted the decorator is returned, to apply some properties. 
    609606        # @return decorator object 
    610         #clansuite_xdebug::printR($this->formelementdecorators[$decoratorname]); 
     607        #Clansuite_Debug::printR($this->formelementdecorators[$decoratorname]); 
    611608        #Clansuite_Debug::printR($this->name); 
    612609 
  • trunk/core/viewhelper/formelements/button.form.php

    r4446 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/buttonbar.form.php

    r4377 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/cancelbutton.form.php

    r4446 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/captcha.form.php

    r4493 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/checkbox.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/checkboxlist.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/confirmsubmitbutton.form.php

    r4446 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/errors.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    32     * 
     29    *  
    3330    * @version    SVN: $Id$ 
    3431    */ 
  • trunk/core/viewhelper/formelements/file.form.php

    r4500 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/hidden.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/image.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/imagebutton.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/input.form.php

    r4446 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/jqconfirmsubmitbutton.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    6663        $this->class = 'ButtonGreen'; 
    6764 
    68         #clansuite_xdebug::printR($this->formid); 
     65        #Clansuite_Debug::printR($this->formid); 
    6966 
    7067        # Add the Form Submit Confirmation Javascript. This is a jQuery UI Modal Confirm Dialog. 
  • trunk/core/viewhelper/formelements/jqselectcolor.form.php

    r4377 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/jqselectdate.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    107104    public function getAttributes() 
    108105    { 
    109         #clansuite_xdebug::printR($this->attributes); 
     106        #Clansuite_Debug::printR($this->attributes); 
    110107        $attributes_html = ''; 
    111108        foreach($this->attributes as $attribute => $value) 
  • trunk/core/viewhelper/formelements/jqselectimage.form.php

    r4394 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/label.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/multiselect.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/password.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/radio.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/radiolist.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    9794            $html .= $radio; 
    9895             
    99             #clansuite_xdebug::printR($html); 
     96            #Clansuite_Debug::printR($html); 
    10097 
    10198            # if we have more options comming up, add a seperator 
  • trunk/core/viewhelper/formelements/recaptcha.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     29    *  
    3230    * 
    3331    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/resetbutton.form.php

    r4376 r4578  
    2323    *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    2424    * 
    25     * @license    GNU/GPL v2 or (at your option) any later version, see '/doc/LICENSE'. 
    26     * 
    27     * @author     Jens-André Koch   <vain@clansuite.com> 
    28     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     25    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/securitytoken.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/select.form.php

    r4446 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/selectcolor.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/selectcountry.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/selectdate.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/selectlanguage.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/selectyesno.form.php

    r4377 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/simplecaptcha.form.php

    r4500 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    106103 * 
    107104 * @link       http://www.clansuite.com 
    108  * @link       http://gna.org/projects/clansuite 
     105 *  
    109106 * 
    110107 * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/submitbutton.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/text.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/textarea.form.php

    r4493 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/timetoken.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/uploadajax.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/uploadapc.form.php

    r4446 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/uploadify.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/wysiwygckeditor.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id: wysiwygckeditor.form.php 3631 2009-11-10 21:31:15Z vain $ 
  • trunk/core/viewhelper/formelements/wysiwygmarkitup.form.php

    r4371 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/wysiwygnicedit.form.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formelements/wysiwygtinymce.form.php

    r4371 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/ 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/formgenerator.core.php

    r4500 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
     
    221218        foreach($form_array as $form_array_section => $form_array_elements) 
    222219        { 
    223             #clansuite_xdebug::firebug($form_array_elements); 
    224             #clansuite_xdebug::firebug($form_array_section); 
     220            #Clansuite_Debug::firebug($form_array_elements); 
     221            #Clansuite_Debug::firebug($form_array_section); 
    225222 
    226223            foreach($form_array_elements as $form_array_element_number => $form_array_element) 
    227224            { 
    228                 #clansuite_xdebug::firebug(array_keys($form_array_element)); 
    229                 #clansuite_xdebug::firebug($obligatory_form_array_elements); 
     225                #Clansuite_Debug::firebug(array_keys($form_array_element)); 
     226                #Clansuite_Debug::firebug($obligatory_form_array_elements); 
    230227 
    231228                # this does the validation. it ensures that required keys are present 
     
    252249    { 
    253250        # debug display incomming form description array 
    254         #clansuite_xdebug::firebug($this->array); 
     251        #Clansuite_Debug::firebug($this->array); 
    255252 
    256253        # loop over all elements of the form description array 
    257254        foreach($this->form_array as $form_array_section => $form_array_elements) 
    258255        { 
    259             #clansuite_xdebug::firebug($form_array_elements); 
    260             #clansuite_xdebug::firebug($form_array_section); 
     256            #Clansuite_Debug::firebug($form_array_elements); 
     257            #Clansuite_Debug::firebug($form_array_section); 
    261258 
    262259            foreach($form_array_elements as $form_array_element_number => $form_array_element) 
    263260            { 
    264                 #clansuite_xdebug::firebug($form_array_element); 
     261                #Clansuite_Debug::firebug($form_array_element); 
    265262 
    266263                # @todo ensure these elements exist !!! 
  • trunk/core/viewhelper/formvalidation.core.php

    r4428 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/html.core.php

    r4453 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/javascripts.core.php

    r4371 r4578  
    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> 
    28     * @copyright  Jens-André Koch (2005 - onwards) 
    29     * 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/layout.core.php

    r4376 r4578  
    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     * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
     26    * @author     Jens-André Koch <vain@clansuite.com> 
     27    * @copyright  Jens-André Koch (2005-onwards) 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/core/viewhelper/smarty/block.t.php

    r4377 r4578  
    8989    $text = stripslashes($text); 
    9090 
    91     // set escape mode 
     91    # set escape mode 
    9292    if (isset($params['escape'])) 
    9393    { 
     
    9696    } 
    9797 
    98     // set plural version 
     98    # set plural version 
    9999    if (isset($params['plural'])) 
    100100    { 
     
    102102        unset($params['plural']); 
    103103 
    104         // set count 
     104        # set count 
    105105        if (isset($params['count'])) 
    106106        { 
     
    110110    } 
    111111 
    112     // use plural if required parameters are set 
     112    # use plural if required parameters are set 
    113113    if (isset($count) and isset($plural)) 
    114114    { 
     
    116116    } 
    117117    else 
    118     { // use normal 
     118    {   # use normal 
    119119        $text = T_gettext($text);                   # vain: prefixed "T_" for usage of php-gettext 
    120120    } 
    121121 
    122     // run strarg if there are parameters 
     122    # run strarg if there are parameters 
    123123    if (count($params)) 
    124124    { 
     
    126126    } 
    127127 
    128     if (!isset($escape) or $escape == 'html') 
    129     { // html escape, default 
     128    if (false === isset($escape) or $escape == 'html') 
     129    {    
     130        # html escape, default 
    130131        $text = nl2br(htmlspecialchars($text)); 
    131132    } 
     
    136137            case 'javascript': 
    137138            case 'js': 
    138             // javascript escape 
     139                # javascript escape 
    139140                $text = str_replace('\'', '\\\'', stripslashes($text)); 
    140141                break; 
    141142            case 'url': 
    142             // url escape 
     143                # url escape 
    143144                $text = urlencode($text); 
    144145                break; 
  • trunk/core/viewhelper/smarty/function.breadcrumbs.php

    r4493 r4578  
    22function smarty_function_breadcrumbs($params, $smarty) 
    33{ 
     4    # handle trail params set directly to the smarty function call in the template 
    45    if (isset($params['trail']) && is_array($params['trail'])) 
    56    { 
     
    1112    } 
    1213 
     14    Clansuite_Debug::firebug($trail); 
     15 
     16    # is the seperator element set via the smarty function call? 
    1317    if (isset($params['separator'])) 
    1418    { 
    1519        $separator = $params['separator']; 
    1620    } 
    17     else 
     21    else # no, take default seperator 
    1822    { 
    1923        $separator = ' &gt; '; 
     
    3943        if (isset($trail[$i]['link']) && $i < $trailSize - 1) 
    4044        { 
    41             // if parameter heading is not set, give links 
     45            # if parameter heading is not set, give links 
    4246            if (!isset($params['title'])) 
    4347            { 
    4448                $links[] = '<a href="'. $trail[$i]['link'] .'" title="'. htmlspecialchars($trail[$i]['title']). '">'. $title .'</a>'; 
    4549            } 
    46             // if heading is set, just titles 
     50            # if heading is set, just titles 
    4751            else 
    4852            { 
     
    5660    } 
    5761 
    58     #$breadcrumb_string = join($separator . "\n", $links); 
    5962    $breadcrumb_string = join($separator . ' ', $links); 
    6063 
  • trunk/core/viewhelper/smarty/function.icon.php

    r4498 r4578  
    5858        if(isset($src) and is_int($pos)) 
    5959        { 
    60             #clansuite_xdebug::printR($pos); 
     60            #Clansuite_Debug::printR($pos); 
    6161            $src = mb_substr($src, $pos + mb_strlen($needle)); 
    6262            $name = basename($src); 
  • trunk/core/viewhelper/smarty/function.load_module.php

    r4493 r4578  
    3737    /*if($params['name'] == 'news') 
    3838    { 
    39         clansuite_xdebug::firebug($params); 
     39        Clansuite_Debug::firebug($params); 
    4040    }*/ 
    4141 
    4242    # Init incomming Variables 
    43     $module    = isset( $params['name'] ) ? (string) mb_strtolower($params['name']) : ''; 
    44     $submodule    = isset( $params['sub'] ) ? (string) mb_strtolower($params['sub']) : ''; 
    45     $action = isset( $params['action'] ) ? (string) $params['action'] : ''; 
    46     $items  = isset( $params['items'] )  ? (int) $params['items'] : null; 
     43    $module = isset($params['name']) ? (string) mb_strtolower($params['name']) : ''; 
     44    $submodule = isset($params['sub']) ? (string) mb_strtolower($params['sub']) : ''; 
     45    $action = isset($params['action']) ? (string) $params['action'] : ''; 
     46    $items = isset($params['items']) ? (int) $params['items'] : null; 
    4747 
    4848    # WATCH it, this resets the incomming parameters array 
     
    5151    $module_classname = 'clansuite_module_'; 
    5252    # Construct the variable module_name 
    53     if (isset($submodule) and mb_strlen($submodule) > 0) 
     53    if(isset($submodule) and mb_strlen($submodule) > 0) 
    5454    { 
    5555        # like "clansuite_module_admin_menu" 
    56         $module_classname .= $module . '_'. $submodule; 
     56        $module_classname .= $module . '_' . $submodule; 
    5757    } 
    5858    else 
     
    6565 
    6666    # Load class, if not already loaded 
    67     if (class_exists($module_classname, false) == false) 
     67    if(class_exists($module_classname, false) == false) 
    6868    { 
    6969        # Check if class was loaded 
    70         if( Clansuite_Loader::loadModul($module_classname) == false) 
     70        if(Clansuite_Loader::loadModul($module_classname) == false) 
    7171        { 
    72             return '<br/>Module missing or misspelled: <strong>'. $module_classname.'</strong>'; 
     72            return '<br/>Module missing or misspelled: <strong>' . $module_classname . '</strong>'; 
    7373        } 
    7474    } 
    7575 
    7676    # Instantiate Class 
    77     $controller = new $module_classname; 
     77    $controller = new $module_classname( 
     78                Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpRequest'), 
     79                Clansuite_CMS::getInjector()->instantiate('Clansuite_HttpResponse') 
     80    ); 
    7881    $controller->setView($smarty); 
    7982    $controller->initModel($module); 
     
    8285     * Get the Ouptut of the Object->Method Call 
    8386     */ 
    84     if( method_exists( $controller, $action ) ) 
     87    if(method_exists($controller, $action)) 
    8588    { 
    8689        # exceptional handling of parameters and output for adminmenu 
    87         if ( $module_classname == 'clansuite_module_menu_admin' ) 
     90        if($module_classname == 'clansuite_module_menu_admin') 
    8891        { 
    8992            $parameters = array(); 
    9093 
    9194            # Build a Parameter Array from Parameter String like: param|param|etc 
    92             if( empty($params['params']) ) 
     95            if(empty($params['params'])) 
    9396            { 
    9497                $parameters = null; 
     
    102105        } 
    103106 
    104         # fast call 
     107        # call 
    105108        $controller->$action($items); 
    106  
    107         #Clansuite_Loader::callClassMethod($controller, $action, $items); 
    108109 
    109110        /** 
     
    116117         * wich is defined by $smarty->template_dir. 
    117118         * the order of detection is also determined by that array. 
    118          * @see $smarty->template_dir, clansuite_xdebug::printr($smarty->template_dir); 
     119         * @see $smarty->template_dir, Clansuite_Debug::printr($smarty->template_dir); 
    119120         */ 
    120  
    121         if($smarty->templateExists($module.DS.$action.'.tpl')) 
     121        if($smarty->templateExists($module . DS . $action . '.tpl')) 
    122122        { 
    123123            # $smarty->template_dir[s]..\news\widget_news.tpl 
    124             return $smarty->fetch($module.DS.$action.'.tpl'); 
     124            return $smarty->fetch($module . DS . $action . '.tpl'); 
    125125        } 
    126         elseif($smarty->templateExists($module.DS.'view'.DS.$action.'.tpl')) 
     126        elseif($smarty->templateExists($module . DS . 'view' . DS . $action . '.tpl')) 
    127127        { 
    128128            # $smarty->template_dir[s]..\news\view\widget_news.tpl 
    129             return $smarty->fetch($module.DS.'view'.DS.$action.'.tpl'); 
     129            return $smarty->fetch($module . DS . 'view' . DS . $action . '.tpl'); 
    130130        } 
    131131        else 
    132132        { 
    133             return $smarty->trigger_error('Error! Failed to load Widget-Template for <br /> '.$module_classname.' -> '.$action.'('.$items.')'); 
     133            return $smarty->trigger_error('Error! Failed to load Widget-Template for <br /> ' . $module_classname . ' -> ' . $action . '(' . $items . ')'); 
    134134        } 
    135135    } 
    136136    else 
    137137    { 
    138         return $smarty->trigger_error('Error! Failed to load Widget: <br /> '.$module_classname.' -> '.$action.'('.$items.')'); 
     138        return $smarty->trigger_error('Error! Failed to load Widget: <br /> ' . $module_classname . ' -> ' . $action . '(' . $items . ')'); 
    139139    } 
    140140} 
  • trunk/core/viewhelper/smarty/function.modulenavigation.php

    r4453 r4578  
    2727function smarty_function_modulenavigation($params, $smarty) 
    2828{ 
    29     $modulename = Clansuite_Module_Controller_Resolver::getModuleName(); 
     29    $modulename = Clansuite_HttpRequest::getRoute()->getModuleName(); 
    3030    $modulenavigation_file = ROOT_MOD. $modulename . DS . $modulename . '.menu.php'; 
    3131 
     
    3636        # The file is located in clansuite/themes/core/view/modulenavigation-generic.tpl 
    3737        return $smarty->fetch('modulenavigation-generic.tpl'); 
    38  
    3938    } 
    4039    else 
  • trunk/core/viewhelper/smarty/resource.make_template.php

    r4359 r4578  
    11<?php 
     2 
    23function smarty_make_template($resource_type, $resource_name, &$template_source, &$template_timestamp, $smarty_obj) 
    34{ 
    4     if( $resource_type == 'file' ) { 
    5         if ( ! is_readable ( $resource_name )) { 
    6             // create the template file, return contents. 
     5    if($resource_type == 'file') 
     6    { 
     7        if(false === is_readable($resource_name)) 
     8        { 
     9            # create the template file, return contents. 
    710            $template_source = "This is a new template."; 
    8             if( !function_exists('smarty_core_write_file') ) { include SMARTY_CORE_DIR . 'core.write_file.php' ); } 
    9             smarty_core_write_file( array( 'filename'=>$smarty_obj->template_dir . DIRECTORY_SEPARATOR . $resource_name, 'contents'=>$template_source ), $smarty_obj ); 
     11 
     12            if(false === function_exists('smarty_core_write_file')) 
     13            { 
     14                include SMARTY_CORE_DIR . 'core.write_file.php'; 
     15            } 
     16 
     17            smarty_core_write_file(array('filename' => $smarty_obj->template_dir . DIRECTORY_SEPARATOR . $resource_name, 
     18                                         'contents' => $template_source), $smarty_obj); 
    1019            return true; 
    1120        } 
    12     } else { 
    13         // not a file 
     21    } 
     22    else # not a file 
     23    { 
    1424        return false; 
    1525    } 
  • trunk/index.php

    r4371 r4578  
    2828    * 
    2929    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    30     * 
    3130    * @author     Jens-André Koch <vain@clansuite.com> 
    3231    * @copyright  Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 
    33     * 
    3432    * @link       http://www.clansuite.com 
    35     * @link       http://gna.org/projects/clansuite 
    36     * 
    3733    * @version    SVN: $Id$ 
    3834    */ 
  • trunk/installation/converter/converter-step1.php

    r4493 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter-step2.php

    r4493 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter-step3.php

    r4377 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter-step4.php

    r4493 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter-step5.php

    r4493 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter-step6.php

    r4493 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter-step7.php

    r4493 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter_footer.php

    r4517 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter_header.php

    r4377 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/converter_menu.php

    r4377 r4578  
    2929    * 
    3030    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
     31    *  
    3232    * 
    3333    * @version    SVN: $Id$ 
  • trunk/installation/converter/index.php

    r4493 r4578  
    2626    * 
    2727    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    28     * 
    2928    * @author     Jens-André Koch <vain@clansuite.com> 
    3029    * @copyright  Jens-André Koch (2005 - onwards) 
    31     * 
    3230    * @link       http://www.clansuite.com 
    33     * @link       http://gna.org/projects/clansuite 
    3431    * 
    3532    * @category    Clansuite 
  • trunk/installation/converter/languages/english.converter.php

    r4361 r4578  
    3131    * 
    3232    * @link       http://www.clansuite.com 
    33     * @link       http://gna.org/projects/clansuite 
     33    *  
    3434    * 
    3535    * @version    SVN: $Id$ 
  • trunk/installation/converter/languages/german.converter.php

    r4361 r4578  
    3131    * 
    3232    * @link       http://www.clansuite.com 
    33     * @link       http://gna.org/projects/clansuite 
     33    *  
    3434    * 
    3535    * @version    SVN: $Id$ 
  • trunk/installation/index.php

    r4493 r4578  
    55    * http://www.clansuite.com/ 
    66    * 
    7     * Clansuite Installer 
     7    * This file is part of "Clansuite - just an eSports CMS". 
    88    * 
    99    * LICENSE: 
     
    2222    *    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
    2323    * 
    24     * @author     Jens-Andrᅵ Koch <vain@clansuite.com> 
    25     * @copyright  Jens-Andrᅵ Koch (2005 - onwards) 
    26     * 
     24    * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
     25    * @author     Jens-André Koch <vain@clansuite.com> 
     26    * @copyright  Jens-André Koch (2005 - onwards) 
    2727    * @author     Florian Wolf <xsign.dll@clansuite.com> 2005-2006 
    2828    * @copyright  Florian Wolf (2005-2006) 
    2929    * 
    30     * @license    GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 
    31     * 
    32     * @link       http://gna.org/projects/clansuite 
    33     * @since      File available since Release 0.1 
    34     * 
    3530    * @version    SVN: $Id$ 
    3631    */ 
     32 
    3733session_start(); 
    3834 
  • trunk/installation/webinstaller/webinstaller-mini.php

    r4493 r4578  
    4848 * @copyright  2007 Clansuite Group 
    4949 * @license    see COPYING.txt 
    50  * @link       http://gna.org/projects/clansuite 
     50 *  
    5151 * @since      File available since Release 0.1 
    5252 * 
  • trunk/installation/webinstaller/webinstaller.php

    r4517 r4578  
    4949 * @copyright  2007 Clansuite Group 
    5050 * @license    see COPYING.txt 
    51  * @link       http://gna.org/projects/clansuite 
     51 *  
    5252 * @since      File available since Release 0.1 
    5353 * 
  • trunk/libraries/gravatar/clansuite_gravatar.class.php

    • Property svn:keywords set to Date Author Id Revision HeadURL
    r2675 r4578  
    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  Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 
    29     * 
    3028    * @link       http://www.clansuite.com 
    31     * @link       http://gna.org/projects/clansuite 
    32     * @since      File available since Release 0.2 
    3329    * 
    3430    * @version    SVN: $Id$ 
  • trunk/tests/index.php

    r3741 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/tests/runAllTests.php

    r4370 r4578  
    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 
    3229    * 
    3330    * @version    SVN: $Id$ 
  • trunk/themes/admin/index.tpl

    r4426 r4578  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    22<html><head> 
     3    <title>{if isset($pagetitle)}{$pagetitle} - {/if}{breadcrumbs title="1" trail=$trail separator=" &raquo; " length=30}</title> 
    34 
    4     {* display cache time as comment *} 
     5    {* Metatags *} 
    56 
    6     <!-- This Page was cached on {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}. --> 
     7    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
     8    <meta http-equiv="expires" content="Fri, Jan 01 1900 00:00:00 GMT" /> 
     9    <meta http-equiv="pragma" content="no-cache" /> 
     10    <meta http-equiv="cache-control" content="no-cache" /> 
     11    <meta http-equiv="content-language" content="{$meta.language}" /> 
     12    <meta http-equiv="reply-to" content="{$meta.email}" /> 
     13    <meta name="author" content="{$meta.author}" /> 
     14    <meta name="description" content="{$meta.description}" /> 
     15 
     16    {* Favicon *} 
     17 
     18    <link rel="shortcut icon" href="{$www_root_themes_core}/images/clansuite_logos/Clansuite-Favicon-16.ico" /> 
     19    <link rel="icon" href="{$www_root_themes_core}/images/clansuite_logos/Clansuite-Favicon-16.ico" type="image/gif" /> 
     20 
     21    <!-- This Page was processed on {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}. --> 
    722 
    823    <!-- jQuery --> 
     
    1732    <link rel="stylesheet" type="text/css" href="{$www_root_themes}/core/css/jquery.pnotify.default.css" /> 
    1833 
    19     {* Metatags *} 
    20  
    21     <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    22     <meta http-equiv="expires" content="Fri, Jan 01 1900 00:00:00 GMT" /> 
    23     <meta http-equiv="pragma" content="no-cache" /> 
    24     <meta http-equiv="cache-control" content="no-cache" /> 
    25     <meta http-equiv="content-language" content="{$meta.language}" /> 
    26     <meta http-equiv="reply-to" content="{$meta.email}" /> 
    27  
    28     <meta name="author" content="{$meta.author}" /> 
    29     <meta name="description" content="{$meta.description}" /> 
    30  
    31     {* Favicon *} 
    32  
    33     <link rel="shortcut icon" href="{$www_root_themes_core}/images/clansuite_logos/Clansuite-Favicon-16.ico" /> 
    34     <link rel="icon" href="{$www_root_themes_core}/images/clansuite_logos/Clansuite-Favicon-16.ico" type="image/gif" /> 
    35  
    3634    {* Clansuite Cascading Style Sheets *} 
    3735 
     
    4240 
    4341    <script src="{$www_root_themes_core}/javascript/clip.js" type="text/javascript"></script> 
    44  
    45     {* Pagetitle *} 
    46  
    47     <title>{if isset($pagetitle)}{$pagetitle} - {/if}{breadcrumbs title="1" trail=$trail separator=" &raquo; " length=30}</title> 
    4842 
    4943</head> 
     
    6155 
    6256{include file="firebug_active_warning.tpl"} 
     57 
    6358{flashmessages} 
    6459 
     
    7267        <tr> 
    7368            <td class="admin_header"> 
     69 
    7470                {include file='breadcrumbs.tpl'} 
     71 
    7572                {include file='help_button.tpl'} 
    7673 
  • trunk/themes/core/view/copyright.tpl

    r3728 r4578  
    11<div id="footer"> 
    22<hr/> 
    3       <a id="poweredby" href="http://www.clansuite.com"> 
    4         <img src="http://www.clansuite.com/website/images/banners/powered_by_clansuite.png" alt="Crown Banner 80x31" align="middle" /> 
    5      </a> 
     3  <a id="poweredby" href="http://www.clansuite.com"> 
     4    <img src="http://www.clansuite.com/website/images/powered_by_clansuite.png" alt="Crown Banner 80x31" align="middle" /> 
     5 </a> 
    66 
    7       <p class="left"> 
    8         Powered by <a href="?mod=about" title="Clansuite - just an eSport CMS" target="_blank"><strong>Clansuite {$smarty.const.CLANSUITE_VERSION} [{$smarty.const.CLANSUITE_REVISION}]</strong></a> 
    9         <br /> 
    10         By <a style="text-decoration:none; font-weight: normal;" href="http://www.jens-andre-koch.de/">Jens-Andr&#233; Koch</a> &amp; Clansuite Development Team. 
    11       </p> 
     7  <p class="left"> 
     8    Powered by <a href="?mod=about" title="Clansuite - just an eSport CMS" target="_blank"><strong>Clansuite {$smarty.const.CLANSUITE_VERSION} [{$smarty.const.CLANSUITE_REVISION}]</strong></a> 
     9    <br /> 
     10    By <a style="text-decoration:none; font-weight: normal;" href="http://www.jens-andre-koch.de/">Jens-Andr&#233; Koch</a> &amp; Clansuite Development Team. 
     11  </p> 
    1212 
    13       <p class="right"> 
    14         Visit the Clansuite Website at <a href="http://www.clansuite.com">clansuite.com</a>. 
    15       </p> 
     13  <p class="right"> 
     14    Visit the Clansuite Website at <a href="http://www.clansuite.com">clansuite.com</a>. 
     15  </p> 
    1616</div> 
  • trunk/themes/core/view/security_breach.php

    r4377 r4578  
    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> 
    2625    * @copyright  Jens-André Koch (2005-$Date$), Florian Wolf (2006-2007) 
    27     * 
    2826    * @link       http://www.clansuite.com 
    29     * @link       http://gna.org/projects/clansuite 
    30     * @since      File available since Release 0.2 
    3127    * 
    3228    * @version    SVN: $Id$ 
Note: See TracChangeset for help on using the changeset viewer.