Changeset 4578
- Timestamp:
- 08/15/10 18:45:12 (18 months ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 198 edited
-
configuration/clansuite.config.php (modified) (2 diffs)
-
configuration/events.config.php (modified) (1 diff)
-
core/acm.class.php (modified) (1 diff)
-
core/bbcode.core.php (modified) (1 diff)
-
core/bootstrap/clansuite.application.php (modified) (24 diffs)
-
core/bootstrap/clansuite.loader.php (modified) (2 diffs)
-
core/bootstrap/clansuite.version.php (modified) (4 diffs)
-
core/breadcrumb.core.php (modified) (5 diffs)
-
core/cache/apc.cache.php (modified) (1 diff)
-
core/cache/eaccelerator.cache.php (modified) (1 diff)
-
core/cache/file.cache.php (modified) (1 diff)
-
core/cache/memcached.cache.php (modified) (1 diff)
-
core/cache/xcache.cache.php (modified) (2 diffs)
-
core/config.core.php (modified) (2 diffs)
-
core/config/config.base.php (modified) (1 diff)
-
core/config/db.config.php (modified) (1 diff)
-
core/config/ini.config.php (modified) (1 diff)
-
core/config/xml.config.php (modified) (1 diff)
-
core/config/yaml.config.php (modified) (1 diff)
-
core/cronjobs.core.php (modified) (1 diff)
-
core/cronjobs/dump.cronjob.php (modified) (2 diffs)
-
core/debug/debug.core.php (modified) (2 diffs)
-
core/debug/doctrineprofiler.core.php (modified) (1 diff)
-
core/debug/xdebug.core.php (modified) (3 diffs)
-
core/dispatcher.core.php (modified) (6 diffs)
-
core/doctrine.core.php (modified) (2 diffs)
-
core/doorkeeper.core.php (modified) (1 diff)
-
core/errorhandler.core.php (modified) (5 diffs)
-
core/eventdispatcher.core.php (modified) (1 diff)
-
core/events/AuthenticationLogging.event.php (modified) (3 diffs)
-
core/events/BlockIps.event.php (modified) (2 diffs)
-
core/exception.core.php (modified) (2 diffs)
-
core/factories/cache.factory.php (modified) (1 diff)
-
core/factories/config.factory.php (modified) (1 diff)
-
core/factories/logger.factory.php (modified) (1 diff)
-
core/factories/renderer.factory.php (modified) (1 diff)
-
core/feed.core.php (modified) (2 diffs)
-
core/files/download.core.php (modified) (1 diff)
-
core/files/file.core.php (modified) (2 diffs)
-
core/files/upload.core.php (modified) (1 diff)
-
core/filtermanager.core.php (modified) (3 diffs)
-
core/filters/getuser.filter.php (modified) (2 diffs)
-
core/filters/htmltidy.filter.php (modified) (1 diff)
-
core/filters/languageviaget.filter.php (modified) (1 diff)
-
core/filters/maintenance.filter.php (modified) (1 diff)
-
core/filters/permissions.filter.php (modified) (1 diff)
-
core/filters/phpdebugconsole.filter.php (modified) (1 diff)
-
core/filters/processcronjobs.filter.php (modified) (2 diffs)
-
core/filters/sessionsecurity.filter.php (modified) (1 diff)
-
core/filters/setbreadcrumbs.filter.php (deleted)
-
core/filters/setmodulelanguage.filter.php (modified) (3 diffs)
-
core/filters/smartymoves.filter.php (modified) (1 diff)
-
core/filters/startupchecks.filter.php (modified) (1 diff)
-
core/filters/statistics.filter.php (modified) (1 diff)
-
core/filters/themeviaget.filter.php (modified) (1 diff)
-
core/flashmessages.core.php (modified) (1 diff)
-
core/frontcontroller.core.php (modified) (6 diffs)
-
core/functions.core.php (modified) (3 diffs)
-
core/functions/shorturl.function.php (modified) (1 diff)
-
core/functions/utf8_to_html.function.php (modified) (1 diff)
-
core/gettext.core.php (modified) (1 diff)
-
core/gettext/extractors/php.gettext.php (modified) (1 diff)
-
core/gettext/extractors/template.gettext.php (modified) (1 diff)
-
core/gettext/mo.gettext.php (modified) (1 diff)
-
core/gettext/po.gettext.php (modified) (1 diff)
-
core/httprequest.core.php (modified) (30 diffs)
-
core/httpresponse.core.php (modified) (1 diff)
-
core/inputfilter.core.php (modified) (1 diff)
-
core/localization.core.php (modified) (8 diffs)
-
core/logger.core.php (modified) (1 diff)
-
core/logger/devnull.logger.php (modified) (1 diff)
-
core/logger/email.logger.php (modified) (1 diff)
-
core/logger/file.logger.php (modified) (2 diffs)
-
core/logger/firebug.logger.php (modified) (1 diff)
-
core/mailer.core.php (modified) (1 diff)
-
core/modulecontroller.core.php (modified) (11 diffs)
-
core/moduledecorator.core.php (modified) (2 diffs)
-
core/moduleinfocontroller.core.php (modified) (1 diff)
-
core/preprocessor.core.php (modified) (1 diff)
-
core/remotefetch.core.php (modified) (1 diff)
-
core/renderer/csv.renderer.php (modified) (1 diff)
-
core/renderer/json.renderer.php (modified) (2 diffs)
-
core/renderer/pdf.renderer.php (modified) (1 diff)
-
core/renderer/php.renderer.php (modified) (2 diffs)
-
core/renderer/phptal.renderer.php (modified) (1 diff)
-
core/renderer/renderer.base.php (modified) (6 diffs)
-
core/renderer/serialized.renderer.php (modified) (1 diff)
-
core/renderer/smarty.renderer.php (modified) (9 diffs)
-
core/renderer/xslt.renderer.php (modified) (1 diff)
-
core/renderer/xtemplate.renderer.php (modified) (1 diff)
-
core/responseencode.core.php (modified) (1 diff)
-
core/router.core.php (modified) (41 diffs)
-
core/security.core.php (modified) (1 diff)
-
core/session.core.php (modified) (3 diffs)
-
core/user.core.php (modified) (3 diffs)
-
core/viewhelper/blockcontainer.core.php (modified) (1 diff)
-
core/viewhelper/datagrid.core.php (modified) (1 diff)
-
core/viewhelper/datagridcol.core.php (modified) (2 diffs)
-
core/viewhelper/datagridcols/checkbox.column.php (modified) (2 diffs)
-
core/viewhelper/datagridcols/date.column.php (modified) (2 diffs)
-
core/viewhelper/datagridcols/editbutton.column.php (modified) (2 diffs)
-
core/viewhelper/datagridcols/email.column.php (modified) (2 diffs)
-
core/viewhelper/datagridcols/image.column.php (modified) (1 diff)
-
core/viewhelper/datagridcols/integer.column.php (modified) (2 diffs)
-
core/viewhelper/datagridcols/link.column.php (modified) (2 diffs)
-
core/viewhelper/datagridcols/string.column.php (modified) (2 diffs)
-
core/viewhelper/form.core.php (modified) (6 diffs)
-
core/viewhelper/formdecorator.core.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/div.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/errors.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/fieldset.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/form.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/label.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/list.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/tab.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/form/table.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/formelement/description.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/formelement/div.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/formelement/formelement.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/formelement/label.form.php (modified) (1 diff)
-
core/viewhelper/formdecorators/formelement/none.form.php (modified) (1 diff)
-
core/viewhelper/formelement.core.php (modified) (3 diffs)
-
core/viewhelper/formelements/button.form.php (modified) (1 diff)
-
core/viewhelper/formelements/buttonbar.form.php (modified) (1 diff)
-
core/viewhelper/formelements/cancelbutton.form.php (modified) (1 diff)
-
core/viewhelper/formelements/captcha.form.php (modified) (1 diff)
-
core/viewhelper/formelements/checkbox.form.php (modified) (1 diff)
-
core/viewhelper/formelements/checkboxlist.form.php (modified) (1 diff)
-
core/viewhelper/formelements/confirmsubmitbutton.form.php (modified) (1 diff)
-
core/viewhelper/formelements/errors.form.php (modified) (1 diff)
-
core/viewhelper/formelements/file.form.php (modified) (1 diff)
-
core/viewhelper/formelements/hidden.form.php (modified) (1 diff)
-
core/viewhelper/formelements/image.form.php (modified) (1 diff)
-
core/viewhelper/formelements/imagebutton.form.php (modified) (1 diff)
-
core/viewhelper/formelements/input.form.php (modified) (1 diff)
-
core/viewhelper/formelements/jqconfirmsubmitbutton.form.php (modified) (2 diffs)
-
core/viewhelper/formelements/jqselectcolor.form.php (modified) (1 diff)
-
core/viewhelper/formelements/jqselectdate.form.php (modified) (2 diffs)
-
core/viewhelper/formelements/jqselectimage.form.php (modified) (1 diff)
-
core/viewhelper/formelements/label.form.php (modified) (1 diff)
-
core/viewhelper/formelements/multiselect.form.php (modified) (1 diff)
-
core/viewhelper/formelements/password.form.php (modified) (1 diff)
-
core/viewhelper/formelements/radio.form.php (modified) (1 diff)
-
core/viewhelper/formelements/radiolist.form.php (modified) (2 diffs)
-
core/viewhelper/formelements/recaptcha.form.php (modified) (1 diff)
-
core/viewhelper/formelements/resetbutton.form.php (modified) (1 diff)
-
core/viewhelper/formelements/securitytoken.form.php (modified) (1 diff)
-
core/viewhelper/formelements/select.form.php (modified) (1 diff)
-
core/viewhelper/formelements/selectcolor.form.php (modified) (1 diff)
-
core/viewhelper/formelements/selectcountry.form.php (modified) (1 diff)
-
core/viewhelper/formelements/selectdate.form.php (modified) (1 diff)
-
core/viewhelper/formelements/selectlanguage.form.php (modified) (1 diff)
-
core/viewhelper/formelements/selectyesno.form.php (modified) (1 diff)
-
core/viewhelper/formelements/simplecaptcha.form.php (modified) (2 diffs)
-
core/viewhelper/formelements/submitbutton.form.php (modified) (1 diff)
-
core/viewhelper/formelements/text.form.php (modified) (1 diff)
-
core/viewhelper/formelements/textarea.form.php (modified) (1 diff)
-
core/viewhelper/formelements/timetoken.form.php (modified) (1 diff)
-
core/viewhelper/formelements/uploadajax.form.php (modified) (1 diff)
-
core/viewhelper/formelements/uploadapc.form.php (modified) (1 diff)
-
core/viewhelper/formelements/uploadify.form.php (modified) (1 diff)
-
core/viewhelper/formelements/wysiwygckeditor.form.php (modified) (1 diff)
-
core/viewhelper/formelements/wysiwygmarkitup.form.php (modified) (1 diff)
-
core/viewhelper/formelements/wysiwygnicedit.form.php (modified) (1 diff)
-
core/viewhelper/formelements/wysiwygtinymce.form.php (modified) (1 diff)
-
core/viewhelper/formgenerator.core.php (modified) (3 diffs)
-
core/viewhelper/formvalidation.core.php (modified) (1 diff)
-
core/viewhelper/html.core.php (modified) (1 diff)
-
core/viewhelper/javascripts.core.php (modified) (1 diff)
-
core/viewhelper/layout.core.php (modified) (1 diff)
-
core/viewhelper/smarty/block.t.php (modified) (7 diffs)
-
core/viewhelper/smarty/function.breadcrumbs.php (modified) (4 diffs)
-
core/viewhelper/smarty/function.icon.php (modified) (1 diff)
-
core/viewhelper/smarty/function.load_module.php (modified) (6 diffs)
-
core/viewhelper/smarty/function.modulenavigation.php (modified) (2 diffs)
-
core/viewhelper/smarty/resource.make_template.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
installation/converter/converter-step1.php (modified) (1 diff)
-
installation/converter/converter-step2.php (modified) (1 diff)
-
installation/converter/converter-step3.php (modified) (1 diff)
-
installation/converter/converter-step4.php (modified) (1 diff)
-
installation/converter/converter-step5.php (modified) (1 diff)
-
installation/converter/converter-step6.php (modified) (1 diff)
-
installation/converter/converter-step7.php (modified) (1 diff)
-
installation/converter/converter_footer.php (modified) (1 diff)
-
installation/converter/converter_header.php (modified) (1 diff)
-
installation/converter/converter_menu.php (modified) (1 diff)
-
installation/converter/index.php (modified) (1 diff)
-
installation/converter/languages/english.converter.php (modified) (1 diff)
-
installation/converter/languages/german.converter.php (modified) (1 diff)
-
installation/index.php (modified) (2 diffs)
-
installation/webinstaller/webinstaller-mini.php (modified) (1 diff)
-
installation/webinstaller/webinstaller.php (modified) (1 diff)
-
libraries/gravatar/clansuite_gravatar.class.php (modified) (1 diff, 1 prop)
-
tests/index.php (modified) (1 diff)
-
tests/runAllTests.php (modified) (1 diff)
-
themes/admin/index.tpl (modified) (5 diffs)
-
themes/core/view/copyright.tpl (modified) (1 diff)
-
themes/core/view/security_breach.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configuration/clansuite.config.php
r4493 r4578 6 6 ; This file was generated on 12-05-2010 23:55 7 7 ; 8 9 8 10 9 ;---------------------------------------- … … 133 132 [error] 134 133 development = 1 135 debug = 1134 debug =1 136 135 xdebug = 1 137 136 webdebug = 0 -
trunk/configuration/events.config.php
r4365 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/acm.class.php
r4376 r4578 24 24 * 25 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 - onwards) 29 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ -
trunk/core/bbcode.core.php
r4365 r4578 24 24 * 25 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 * @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) 31 28 * @link http://www.clansuite.com 32 * @link http://gna.org/projects/clansuite33 29 * 34 30 * @version SVN: $Id$ -
trunk/core/bootstrap/clansuite.application.php
r4568 r4578 28 28 * 29 29 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 30 *31 30 * @author Jens-André Koch <vain@clansuite.com> 32 31 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 33 *34 32 * @link http://www.clansuite.com 35 * @link http://gna.org/projects/clansuite 36 * 33 * 37 34 * @version SVN: $Id$ 38 35 */ … … 77 74 * @var STARTTIME shows Application Starttime 78 75 */ 79 define('STARTTIME', microtime(1) );76 define('STARTTIME', microtime(1), false); 80 77 81 78 self::initialize_Loader(); … … 85 82 self::initialize_Debug(); 86 83 self::initialize_Version(); 87 self::initialize_ Locale();84 self::initialize_Timezone(); 88 85 self::initialize_Eventdispatcher(); 89 86 self::initialize_Errorhandling(); … … 110 107 if(version_compare(PHP_VERSION, $REQUIRED_PHP_VERSION, '<') === true) 111 108 { 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>!'); 113 111 } 114 112 unset($REQUIRED_PHP_VERSION); … … 169 167 * ================================================ 170 168 */ 171 ini_set('short_open_tag', 'off');172 ini_set('arg_separator.input', '&');173 ini_set('arg_separator.output', '&');169 ini_set('short_open_tag', 'off'); 170 ini_set('arg_separator.input', '&'); 171 ini_set('arg_separator.output', '&'); 174 172 175 173 if(extension_loaded('mbstring') == true) … … 187 185 if(intval(ini_get('memory_limit')) < 16) 188 186 { 189 ini_set('memory_limit', '16M');187 ini_set('memory_limit', '16M'); 190 188 } 191 189 } … … 213 211 * @var DS is a shorthand for DIRECTORY_SEPARATOR 214 212 */ 215 define('DS', DIRECTORY_SEPARATOR );213 define('DS', DIRECTORY_SEPARATOR, false); 216 214 217 215 /** 218 216 * @var PS is a shorthand for PATH_SEPARATOR 219 217 */ 220 define('PS', PATH_SEPARATOR );218 define('PS', PATH_SEPARATOR, false); 221 219 222 220 /** 223 221 * @var HTML Break + Carriage Return "<br />\r\n" 224 222 */ 225 define('NL', "<br />\r\n" );223 define('NL', "<br />\r\n", false); 226 224 227 225 /** 228 226 * @var Carriage Return "\n" 229 227 */ 230 define('CR', "\n" );228 define('CR', "\n", false); 231 229 232 230 /** 233 231 * @var Carriage Return and Tabulator "\n\t" 234 232 */ 235 define('CRT', "\n\t" );233 define('CRT', "\n\t", false); 236 234 237 235 /** … … 244 242 * @var Purpose of ROOT is to provide the absolute path to the current working dir of clansuite 245 243 */ 246 define('ROOT', getcwd() . DS );244 define('ROOT', getcwd() . DS, false); 247 245 #define('ROOT', realpath('../')); 248 246 … … 250 248 * @var ROOT_MOD Root path of the modules directory (with trailing slash) 251 249 */ 252 define('ROOT_MOD', ROOT . self::$config['paths']['mod_folder'] . DS );250 define('ROOT_MOD', ROOT . self::$config['paths']['mod_folder'] . DS, false); 253 251 254 252 /** 255 253 * @var Root path of the themes directory (with trailing slash) 256 254 */ 257 define('ROOT_THEMES', ROOT . self::$config['paths']['themes_folder'] . DS );255 define('ROOT_THEMES', ROOT . self::$config['paths']['themes_folder'] . DS, false); 258 256 259 257 /** 260 258 * @var Root path of the languages directory (with trailing slash) 261 259 */ 262 define('ROOT_LANGUAGES', ROOT . self::$config['paths']['language_folder'] . DS );260 define('ROOT_LANGUAGES', ROOT . self::$config['paths']['language_folder'] . DS, false); 263 261 264 262 /** 265 263 * @var Root path of the core directory (with trailing slash) 266 264 */ 267 define('ROOT_CORE', ROOT . self::$config['paths']['core_folder'] . DS );265 define('ROOT_CORE', ROOT . self::$config['paths']['core_folder'] . DS, false); 268 266 269 267 /** 270 268 * @var Root path of the libraries directory (with trailing slash) 271 269 */ 272 define('ROOT_LIBRARIES', ROOT . self::$config['paths']['libraries_folder'] . DS );270 define('ROOT_LIBRARIES', ROOT . self::$config['paths']['libraries_folder'] . DS, false); 273 271 274 272 /** 275 273 * @var Root path of the upload directory (with trailing slash) 276 274 */ 277 define('ROOT_UPLOAD', ROOT . self::$config['paths']['upload_folder'] . DS );275 define('ROOT_UPLOAD', ROOT . self::$config['paths']['upload_folder'] . DS, false); 278 276 279 277 /** 280 278 * @var Root path of the logs directory (with trailing slash) 281 279 */ 282 define('ROOT_LOGS', ROOT . self::$config['paths']['logfiles_folder'] . DS );280 define('ROOT_LOGS', ROOT . self::$config['paths']['logfiles_folder'] . DS, false); 283 281 284 282 /** 285 283 * @var Root path of the cache directory (with trailing slash) 286 284 */ 287 define('ROOT_CACHE', ROOT . 'cache' . DS );285 define('ROOT_CACHE', ROOT . 'cache' . DS, false); 288 286 289 287 /** 290 288 * @var Root path of the config directory (with trailing slash) 291 289 */ 292 define('ROOT_CONFIG', ROOT . 'configuration' . DS );290 define('ROOT_CONFIG', ROOT . 'configuration' . DS, false); 293 291 294 292 /** … … 297 295 if(isset($_SERVER['HTTPS']) and mb_strtolower($_SERVER['HTTPS']) == 'on') 298 296 { 299 define('PROTOCOL', 'https://' );297 define('PROTOCOL', 'https://', false); 300 298 } 301 299 else 302 300 { 303 301 304 define('PROTOCOL', 'http://' );302 define('PROTOCOL', 'http://', false); 305 303 } 306 304 … … 308 306 * @var SERVER_URL 309 307 */ 310 define('SERVER_URL', PROTOCOL . $_SERVER['SERVER_NAME'] );308 define('SERVER_URL', PROTOCOL . $_SERVER['SERVER_NAME'], false); 311 309 312 310 /** … … 315 313 if(dirname($_SERVER['PHP_SELF']) == '\\') 316 314 { 317 define('WWW_ROOT', SERVER_URL );315 define('WWW_ROOT', SERVER_URL, false); 318 316 } 319 317 else 320 318 { 321 define('WWW_ROOT', SERVER_URL . dirname($_SERVER['PHP_SELF']) );319 define('WWW_ROOT', SERVER_URL . dirname($_SERVER['PHP_SELF']), false); 322 320 } 323 321 … … 325 323 * @var WWW_ROOT_THEMES defines the themes folder 326 324 */ 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); 328 326 329 327 /** 330 328 * @var WWW_ROOT_THEMES defines the themes/core folder 331 329 */ 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); 333 331 334 332 /** … … 345 343 ROOT_LIBRARIES . 'PEAR' . DS 346 344 ); 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()); 348 348 unset($paths); 349 349 } … … 368 368 * @var Debug-Mode Constant is set via config setting ['error']['debug'] 369 369 */ 370 define('DEBUG', (bool) self::$config['error']['debug'] );370 define('DEBUG', (bool) self::$config['error']['debug'], false); 371 371 372 372 # If Debug is enabled, set FULL error_reporting, else DISABLE it completely … … 381 381 * @var Development-Mode is set via config setting ['error']['development'] 382 382 */ 383 define('DEVELOPMENT', (bool) self::$config['error']['development'] );383 define('DEVELOPMENT', (bool) self::$config['error']['development'], false); 384 384 385 385 /** … … 395 395 * @var XDebug and set it's value via the config setting ['error']['xdebug'] 396 396 */ 397 define('XDEBUG', (bool) self::$config['error']['xdebug'] );397 define('XDEBUG', (bool) self::$config['error']['xdebug'], false); 398 398 399 399 # If XDebug is enabled, load xdebug helpers and start the debug/tracing … … 401 401 { 402 402 include ROOT_CORE . 'debug/xdebug.core.php'; 403 Clansuite_XDebug::start_ Xdebug();403 Clansuite_XDebug::start_xdebug(); 404 404 } 405 405 } 406 406 else # application is in live/production mode. errors are not shown, but logged to file! 407 407 { 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 410 413 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() 413 419 } 414 420 } … … 454 460 private static function initialize_DependecyInjection() 455 461 { 456 # Setup Phemto 457 include ROOT_LIBRARIES.'phemto/phemto.php'; 462 include ROOT_LIBRARIES . 'phemto/phemto.php'; 458 463 self::$injector = new Phemto(); 459 464 } … … 474 479 'Clansuite_Inputfilter', 475 480 'Clansuite_Localization', 476 'Clansuite_User' 481 'Clansuite_User', 482 'Clansuite_Session', 483 'Clansuite_Router', 477 484 ); 478 485 … … 491 498 # define prefilters to load 492 499 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', 494 502 'Clansuite_Filter_Maintenance', 495 503 'Clansuite_Filter_GetUser', 496 504 #'Clansuite_Filter_Session_Security', 505 'Clansuite_Filter_Routing', 497 506 'Clansuite_Filter_LanguageViaGet', 498 507 'Clansuite_Filter_ThemeViaGet', 499 508 'Clansuite_Filter_SetModuleLanguage', 500 #'Clansuite_Filter_SetBreadcrumbs',501 509 'Clansuite_Filter_StartupChecks', 502 510 'Clansuite_Filter_Statistics' … … 557 565 } 558 566 559 # Router560 $router = new Clansuite_Router($request::getRequestURI(), self::$config['defaults']);561 562 567 # 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(); 564 595 } 565 596 … … 572 603 * (3) putenv(TZ=) 573 604 * 574 * PHP 5.1 strftime() and date-calculation bugfix by setting the timezone575 605 * For a lot more timezones look in the Appendix H of the PHP Manual 576 606 * @link http://php.net/manual/en/timezones.php 577 607 * @todo make $timezone configurable by user (small dropdown) or autodetected from user 578 608 */ 579 private static function initialize_ Locale()609 private static function initialize_Timezone() 580 610 { 581 611 # apply timezone defensivly … … 597 627 { 598 628 # 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 } 629 631 } 630 632 -
trunk/core/bootstrap/clansuite.loader.php
r4563 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 116 113 { 117 114 # add class and filename to the mapping array 118 $this->addToMapping($filename, $classname);115 self::addToMapping($filename, $classname); 119 116 120 117 # log for the autoloaded files -
trunk/core/bootstrap/clansuite.version.php
r4508 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 48 45 /** 49 46 * Clansuite_Version 50 *51 47 */ 52 48 final class Clansuite_Version … … 62 58 define('CLANSUITE_URL', 'http://www.clansuite.com'); 63 59 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')) 66 65 { 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()); 76 71 } 77 72 } … … 118 113 } 119 114 } 120 121 Clansuite_Version:: setVersionInformation();122 115 ?> -
trunk/core/breadcrumb.core.php
r4365 r4578 24 24 * 25 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 * @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) 31 28 * @link http://www.clansuite.com 32 * @link http://gna.org/projects/clansuite29 * 33 30 * 34 31 * @version SVN: $Id$ … … 42 39 43 40 /** 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 53 42 * 54 43 * @category Clansuite … … 64 53 65 54 /** 66 * A ssigns a trailstep "Home >>"55 * Adds a breadcrumb new level 67 56 * 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 103 59 */ 104 60 public static function add($title, $link = '') 105 61 { 106 # let the first Trail, be "HOME >>"107 #self::addHomeTrail();108 109 62 $item = array('title' => $title); 110 63 … … 118 71 119 72 /** 120 * Get Method for the Trail73 * Getter for the breadcrumbs/trail array 121 74 */ 122 75 public static function getTrail() … … 124 77 return self::$path; 125 78 } 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 .= '&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 .= '&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 .= '&sub=' . $submoduleName; 134 $trailName = $submoduleName; 135 136 # Add action Part now 137 if(mb_strlen($actionName) > 0) 138 { 139 $url .= '&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 } 126 149 } 127 150 ?> -
trunk/core/cache/apc.cache.php
r4470 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 * @copyright Jens-André Koch (2005-2008) 29 * 27 * @copyright Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/cache/eaccelerator.cache.php
r4470 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 * @copyright Jens-André Koch (2005-2008) 29 * 27 * @copyright Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/cache/file.cache.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 * @copyright Jens-André Koch (2005-2008) 29 * 27 * @copyright Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/cache/memcached.cache.php
r4493 r4578 1 1 <?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 */ 35 32 36 33 # Security Handler 37 34 if(defined('IN_CS') == false) 38 { 35 { 39 36 die('Clansuite not loaded. Direct Access forbidden.'); 40 37 } -
trunk/core/cache/xcache.cache.php
r4377 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 * @copyright Jens-André Koch (2005-2008) 29 * 27 * @copyright Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 35 32 36 33 # Security Handler 37 if (defined('IN_CS') == false)38 { 34 if(defined('IN_CS') == false) 35 { 39 36 die('Clansuite not loaded. Direct Access forbidden.'); 40 37 } -
trunk/core/config.core.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 Ž * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 81 78 if($modulename === null) 82 79 { 83 $modulename = Clansuite_ Dispatcher::getModuleName();80 $modulename = Clansuite_TargetRoute::getModuleName(); 84 81 } 85 82 -
trunk/core/config/config.base.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/config/db.config.php
r4557 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @author Florian Wolf <xsign.dll@clansuite.com> 29 28 * @copyright Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 30 *31 29 * @link http://www.clansuite.com 32 * @link http://gna.org/projects/clansuite33 30 * 34 31 * @version SVN: $Id$ -
trunk/core/config/ini.config.php
r4557 r4578 24 24 * 25 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 * @author Florian Wolf <xsign.dll@clansuite.com> 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @author Florian Wolf <xsign.dll@clansuite.com> 29 28 * @copyright Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 30 *31 29 * @link http://www.clansuite.com 32 * @link http://gna.org/projects/clansuite30 * 33 31 * 34 32 * @version SVN: $Id$ -
trunk/core/config/xml.config.php
r4557 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/config/yaml.config.php
r4557 r4578 24 24 * 25 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 * @author Florian Wolf <xsign.dll@clansuite.com> 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @author Florian Wolf <xsign.dll@clansuite.com> 29 28 * @copyright Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 30 *31 29 * @link http://www.clansuite.com 32 * @link http://gna.org/projects/clansuite33 30 * 34 31 * @version SVN: $Id$ -
trunk/core/cronjobs.core.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 Ž * 29 * 33 30 * @version SVN: $Id$ 34 31 */ -
trunk/core/cronjobs/dump.cronjob.php
r4377 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 Ž * 33 30 * @version SVN: $Id$ … … 36 33 # Security Handler 37 34 if (defined('IN_CS') == false) 38 { 35 { 39 36 die('Clansuite not loaded. Direct Access forbidden.'); 40 37 } -
trunk/core/debug/debug.core.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 154 151 $firephp = FirePHP::getInstance(true); 155 152 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() 157 154 $backtrace_array = array(); 158 155 $backtrace_array = debug_backtrace(); -
trunk/core/debug/doctrineprofiler.core.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/debug/xdebug.core.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 108 105 #xdebug_get_code_coverage(); 109 106 110 # stop tracing and display infos107 # stop tracing and display infos 111 108 register_shutdown_function('clansuite_xdebug::shutdown'); 112 109 } … … 198 195 * @param mixed $variable The variable to debug display. 199 196 */ 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 { 207 199 echo xdebug_var_dump($var); 208 200 } -
trunk/core/dispatcher.core.php
r4568 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 57 54 class Clansuite_Dispatcher 58 55 { 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 dispatcher67 *68 * @param object $route Route Object implementing Clansuite_Route_Interface69 * @return object Clansuite_Dispatcher70 */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 dispatcher80 *81 * @return $route Route Object implementing Clansuite_Route_Interface82 */83 public function getFoundRoute()84 {85 return self::$found_route;86 }87 88 56 /** 89 57 * The dispatcher forwards to the pagecontroller = modulecontroller + moduleaction 90 58 */ 91 public function forward()59 public static function forward() 92 60 { 93 $route = $this->getFoundRoute();61 $route = Clansuite_HttpRequest::getRoute(); 94 62 95 #$event = Clansuite_EventDispatcher::instantiate();63 #$event = Clansuite_EventDispatcher::instantiate(); 96 64 #$event->addEventHandler('onBeforeControllerMethodCall', new Clansuite_Event_InitializeModule()); 97 98 #Clansuite_Debug::firebug($route);99 65 100 66 if($route === null) … … 110 76 $renderengine = $route->getRenderEngine(); 111 77 112 #Clansuite_Debug::firebug($route);78 Clansuite_Debug::firebug($route); 113 79 #unset($route); 114 80 … … 130 96 if(true === class_exists($classname, false)) 131 97 { 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 ); 133 103 } 134 104 else … … 140 110 * Initialize the Module 141 111 */ 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(); 146 119 147 120 /** … … 168 141 throw new Clansuite_Exception('There was no action named "' . $method . '".', 2); 169 142 } 170 171 #Clansuite_Loader::callClassMethod($class, $method, $parameters);172 }173 174 /**175 * Method to set the Action176 */177 public static function setActionName($actionName)178 {179 self::$actionName = (string) $actionName;180 }181 182 /**183 * Method to get the Action184 *185 * @return $string186 */187 public static function getActionName()188 {189 return self::$found_route->getMethod();190 }191 192 /**193 * Method to get the DefaultAction194 *195 * @return $string196 */197 public static function getDefaultActionName()198 {199 return self::$_defaultAction;200 }201 202 /**203 * Method to set the ModuleName204 */205 public static function setModuleName($moduleName)206 {207 self::$_modulename = (string) $moduleName;208 }209 210 /**211 * Method to get the ModuleName212 *213 * @return $string214 */215 public static function getModuleName()216 {217 return self::$found_route->getController();218 }219 220 /**221 * Method to set the SubModuleName222 */223 private static function setSubModuleName($SubModuleName)224 {225 self::$submodulename = (string) $SubModuleName;226 }227 228 /**229 * Method to get the SubModuleName230 *231 * @return $string232 */233 public static function getSubModuleName()234 {235 return self::$submodulename;236 143 } 237 144 } -
trunk/core/doctrine.core.php
r4565 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 93 90 94 91 # if Clansuite Debug Mode enabled 95 if ( defined('DEBUG') )92 if ( defined('DEBUG') and DEBUG === true) 96 93 { 97 94 # activate Doctrine Debug also -
trunk/core/doorkeeper.core.php
r4376 r4578 22 22 * 23 23 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 24 *25 24 * @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) 28 26 * @link http://www.clansuite.com 29 * @link http://gna.org/projects/clansuite 30 * 27 * 31 28 * @version SVN: $Id$ 32 29 */ -
trunk/core/errorhandler.core.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 158 155 { 159 156 # SMARTY ERRORS are thrown by trigger_error() - so they bubble up as E_USER_ERROR 160 # soin order to handle smarty errors with a seperated error display157 # and in order to handle smarty errors with a seperated error display 161 158 # we need to detect, if an E_USER_ERROR is incoming from SMARTY or from a template_c file (extension tpl.php) 162 159 if( (mb_strpos(mb_strtolower($errorfile),'smarty') == true) or (mb_strpos(mb_strtolower($errorfile),'tpl.php') == true) ) … … 459 456 } 460 457 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 } 463 463 464 464 # spacer … … 473 473 * formatBacktraceArgument 474 474 * 475 * performs a type check on an backtrace argument and formats it nicely475 * Performs a type check on the backtrace argument and beautifies it. 476 476 * 477 477 * This formater is based on comments for debug-backtrace in the php manual … … 507 507 case 'string': 508 508 $args .= '<span>string</span> '; 509 $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64));510 509 if((mb_strlen($backtraceArgument) > 64)) 511 510 { 511 $backtraceArgument = htmlspecialchars(mb_substr($backtraceArgument, 0, 64)); 512 512 $backtraceArgument . '...'; 513 513 } -
trunk/core/eventdispatcher.core.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/events/AuthenticationLogging.event.php
r4377 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 42 39 /** 43 40 * Clansuite Event - Authentication Logging 44 * 41 * 45 42 * @author Jens-André Koch <vain@clansuite.com> 46 * @copyright Jens-André Koch (2005 - onwards) 43 * @copyright Jens-André Koch (2005 - onwards) 47 44 * 48 45 * Usage: 49 46 * $logger = new Clansuite_Logger('auth.log'); 50 47 * $eventhandler->addEventHandler('onInvalidLogin', $logger); 51 * $eventhandler->addEventHandler('onLogin', $logger); 48 * $eventhandler->addEventHandler('onLogin', $logger); 52 49 */ 53 50 class AuthenticationLogging implements Clansuite_Event … … 62 59 $this->logger = $logger; 63 60 } 64 61 65 62 public function execute(Event $event) 66 63 { -
trunk/core/events/BlockIps.event.php
r4377 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 45 42 * @author Jens-André Koch <vain@clansuite.com> 46 43 * @copyright Jens-André Koch (2005 - onwards) 47 * 44 * 48 45 * Usage: 49 46 * $blockip = new BlockIps(array('127.0.0.1')); 50 47 * $dispatcher->addEventHandler('onLogin', $blockip); 51 48 * if($event->isCancelled()) { } 52 * 49 * 53 50 */ 54 51 class BlockIps implements Clansuite_Event -
trunk/core/exception.core.php
r4561 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 276 273 $errormessage .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">'; 277 274 $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>'; 279 276 $errormessage .= '<link rel="stylesheet" href="'. WWW_ROOT_THEMES_CORE .'/css/error.css" type="text/css" />'; 280 277 $errormessage .= '</head>'; -
trunk/core/factories/cache.factory.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 * @copyright Jens-André Koch (2005-2008) 29 * 27 * @copyright Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/factories/config.factory.php
r4558 r4578 22 22 * 23 23 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 24 *25 24 * @author Jens-André Koch <vain@clansuite.com> 26 25 * @copyright Jens-André Koch (2005 - onwards) 27 *28 26 * @link http://www.clansuite.com 29 * @link http://gna.org/projects/clansuite30 27 * 31 28 * @version SVN: $Id$ -
trunk/core/factories/logger.factory.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$response.class.php 2580 2008-11-20 20:38:03Z vain $ -
trunk/core/factories/renderer.factory.php
r4556 r4578 22 22 * 23 23 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 24 *25 24 * @author Jens-André Koch <vain@clansuite.com> 26 25 * @copyright Jens-André Koch (2005 - onwards) 27 *28 26 * @link http://www.clansuite.com 29 * @link http://gna.org/projects/clansuite30 27 * 31 28 * @version SVN: $Id$ -
trunk/core/feed.core.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 134 131 } 135 132 136 # clansuite_xdebug::printR($feeditems);133 #Clansuite_Debug::printR($feeditems); 137 134 138 135 # slice -
trunk/core/files/download.core.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 * @since File available since Release 0.233 29 * 34 30 * @version SVN: $Id$ -
trunk/core/files/file.core.php
r4500 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 43 40 * Clansuite_File - Clansuite Core Class for the File Object 44 41 * 45 * @author Jens-André Koch <vain@clansuite.com>46 * @copyright Jens-André Koch (2005 - onwards)47 42 * @category Clansuite 48 43 * @package Core -
trunk/core/files/upload.core.php
r4376 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filtermanager.core.php
r4376 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 41 38 42 39 /** 43 * interface FilterInterface40 * Interface Clansuite_Filter_Interface 44 41 * 45 42 * @category Clansuite … … 53 50 54 51 /** 55 * FilterManager 56 * - is a Intercepting-Filter / FilterChain 52 * Clansuite_FilterManager 57 53 * 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. 60 59 * 61 60 * @category Clansuite -
trunk/core/filters/getuser.filter.php
r4393 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 36 33 # Security Handler 37 34 if (defined('IN_CS') == false) 38 { 35 { 39 36 die('Clansuite not loaded. Direct Access forbidden.' ); 40 37 } -
trunk/core/filters/htmltidy.filter.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/languageviaget.filter.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/maintenance.filter.php
r4422 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/permissions.filter.php
r4393 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/phpdebugconsole.filter.php
r4464 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/processcronjobs.filter.php
r4393 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 36 33 # Security Handler 37 34 if (defined('IN_CS') == false) 38 { 35 { 39 36 die('Clansuite not loaded. Direct Access forbidden.' ); 40 37 } -
trunk/core/filters/sessionsecurity.filter.php
r4393 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/setmodulelanguage.filter.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 43 40 * Clansuite Filter - Set Module Language 44 41 * 45 * Purpose: Sets TextDomain for the requested Module42 * Purpose: Sets the TextDomain for the requested Module 46 43 * 47 44 * @category Clansuite … … 52 49 class Clansuite_Filter_SetModuleLanguage implements Clansuite_Filter_Interface 53 50 { 54 private $locale = null; # holds instance of localization51 private $locale = null; # holds instance of localization 55 52 56 53 public function __construct(Clansuite_Localization $locale) 57 54 { 58 $this->locale = $locale; # set instance of localization to class55 $this->locale = $locale; # set instance of localization to class 59 56 } 60 57 61 58 public function executeFilter(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 62 59 { 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); 65 63 } 66 64 } -
trunk/core/filters/smartymoves.filter.php
r4393 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/startupchecks.filter.php
r4500 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/statistics.filter.php
r4562 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/filters/themeviaget.filter.php
r4474 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/flashmessages.core.php
r4566 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 * @copyright Jens-André Koch (2005-2008) 29 * 27 * @copyright Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/frontcontroller.core.php
r4526 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 52 49 { 53 50 public function __construct(Clansuite_Request_Interface $request, Clansuite_Response_Interface $response); 54 public function processRequest( Clansuite_Router_Interface $router);51 public function processRequest(); 55 52 public function addPreFilter(Clansuite_Filter_Interface $filter); 56 53 public function addPostFilter(Clansuite_Filter_Interface $filter); … … 105 102 $this->request = $request; 106 103 $this->response = $response; 107 $this->dispatcher = new Clansuite_Dispatcher( );104 $this->dispatcher = new Clansuite_Dispatcher($request); 108 105 $this->pre_filtermanager = new Clansuite_Filtermanager(); 109 106 $this->post_filtermanager = new Clansuite_Filtermanager(); … … 111 108 112 109 /** 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. 115 115 */ 116 116 public function addPreFilter(Clansuite_Filter_Interface $filter) … … 120 120 121 121 /** 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. 124 127 */ 125 128 public function addPostFilter(Clansuite_Filter_Interface $filter) … … 135 138 * Calls/executes the apropriate controller and returns a response. 136 139 */ 137 public function processRequest( Clansuite_Router_Interface $router)140 public function processRequest() 138 141 { 139 $route = $router->route();140 142 $this->pre_filtermanager->processFilters($this->request, $this->response); 143 141 144 $event = Clansuite_EventDispatcher::instantiate(); 142 145 $event->triggerEvent('onBeforeDispatcherForward'); 143 $this->dispatcher->setFoundRoute($route)->forward(); 146 147 $this->dispatcher->forward(); 148 144 149 $event->triggerEvent('onAfterDispatcherForward'); 150 145 151 $this->post_filtermanager->processFilters($this->request, $this->response); 152 146 153 $this->response->sendResponse(); 147 154 } -
trunk/core/functions.core.php
r4507 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 879 876 # Debug message for Method Overloading 880 877 # 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"); 882 879 # construct the filename of the command 883 880 $filename = ROOT_CORE . 'functions' . DS . $method . '.function.php'; … … 916 913 # Debug message for Method Overloading 917 914 # 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"); 919 916 # construct the filename of the command 920 917 $filename = ROOT_CORE . 'functions' . DS . $method . '.function.php'; -
trunk/core/functions/shorturl.function.php
r4550 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/functions/utf8_to_html.function.php
r4377 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/gettext.core.php
r4543 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @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) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ -
trunk/core/gettext/extractors/php.gettext.php
r4543 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/gettext/extractors/template.gettext.php
r4543 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/gettext/mo.gettext.php
r4543 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/gettext/po.gettext.php
r4543 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/httprequest.core.php
r4568 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @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) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 51 48 # Parameters 52 49 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'); 55 52 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); 57 59 58 60 # Request Method 59 61 public static function getRequestMethod(); 60 62 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(); 61 68 62 69 # $_SERVER Stuff … … 80 87 { 81 88 /** 82 * @var array Contains the cleaned $_POST Parameters 89 * @var array Contains the cleaned $_POST Parameters. 83 90 */ 84 91 private $post_parameters; 85 92 86 93 /** 87 * @var array Contains the cleaned $_GET Parameters 94 * @var array Contains the cleaned $_GET Parameters. 88 95 */ 89 96 private $get_parameters; 90 97 91 98 /** 92 * @var array Contains the cleaned $_COOKIE Parameters 99 * @var array Contains the cleaned $_COOKIE Parameters. 93 100 */ 94 101 private $cookie_parameters; … … 107 114 * @var boolean for magic_quotes_gpc 108 115 */ 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; 110 122 111 123 /** … … 129 141 if ((bool) ini_get('register_globals') and mb_strtolower(ini_get('register_globals')) != 'off') 130 142 { 131 $this->cleanGlobals();143 self::cleanGlobals(); 132 144 } 133 145 … … 138 150 if ( 1 == get_magic_quotes_gpc() ) 139 151 { 140 $this->magic_quotes_gpc = true;141 $this->fix_magic_quotes();152 self::$magic_quotes_gpc = true; 153 self::fix_magic_quotes(); 142 154 ini_set('magic_quotes_gpc', 0); 143 155 } … … 146 158 * 3) Additional Security Checks 147 159 */ 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']); 150 165 151 166 /** 152 * 4) Clear Array, Filter and Assign the $_REQUEST Global to it167 * 4) Init Parameter Arrays and Assign the GLOBALS 153 168 */ 154 169 … … 158 173 $this->cookie_parameters = array(); 159 174 160 # Sanitize 161 $this->sanitizeRequest(); 162 163 # Assign the GLOBALS $_REQUEST, $_GET, $_POST, $_COOKIE 175 # Assign the GLOBALS $_GET, $_POST, $_COOKIE 164 176 $this->get_parameters = $_GET; 165 177 $this->post_parameters = $_POST; … … 177 189 * @return boolean true | false 178 190 */ 179 public function isGet()180 { 181 if( $this->requestMethod == 'GET')191 public static function isGet() 192 { 193 if(self::$requestMethod == 'GET') 182 194 { 183 195 return true; … … 191 203 * @return boolean true | false 192 204 */ 193 public function isPost()194 { 195 if( $this->requestMethod == 'POST')205 public static function isPost() 206 { 207 if(self::$requestMethod == 'POST') 196 208 { 197 209 return true; … … 205 217 * @return boolean true | false 206 218 */ 207 public function isPut()208 { 209 if( $this->requestMethod == 'PUT')219 public static function isPut() 220 { 221 if(self::$requestMethod == 'PUT') 210 222 { 211 223 return true; … … 219 231 * @return boolean true | false 220 232 */ 221 public function isDelete()222 { 223 if( $this->requestMethod == 'DELETE')233 public static function isDelete() 234 { 235 if(self::$requestMethod == 'DELETE') 224 236 { 225 237 return true; … … 232 244 * Defaults to Request parameters array 233 245 * 234 * @param string $ parameterArrayName R, G, P, C (REQUEST, GET, POST, COOKIE)246 * @param string $arrayname GET, POST, COOKIE 235 247 * @return array 236 248 */ 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'}); 244 256 } 245 257 else … … 252 264 * isset, checks if a certain parameter exists in the parameters array 253 265 * 254 * @param string $ parametername Name of the Parameter255 * @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. 256 268 * @param boolean $where If set to true, method will return the name of the array the parameter was found in. 257 269 * @return mixed | boolean true|false | string arrayname 258 270 */ 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])) 264 276 { 265 277 if($where == false) … … 273 285 } 274 286 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])) 276 288 { 277 289 if($where == false) … … 285 297 } 286 298 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])) 288 300 { 289 301 if($where == false) … … 303 315 * get, returns a certain parameter if existing 304 316 * 305 * @param string $ parametername Name of the Parameter306 * @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. 307 319 * @param string $default You can set a default value. It's returned if parametername was not found. 308 320 * 309 321 * @return mixed data | null 310 322 */ 311 public function getParameter($ parametername, $parameterArrayName = 'POST', $default = null)323 public function getParameter($name, $arrayname = 'POST', $default = null) 312 324 { 313 325 /** 314 * check if the parameter exists in $ parameterArrayName326 * check if the parameter exists in $arrayname 315 327 * 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. 317 329 */ 318 $parameter_array = $this->issetParameter($ parametername, $parameterArrayName, true);330 $parameter_array = $this->issetParameter($name, $arrayname, true); 319 331 320 332 /** … … 324 336 { 325 337 # 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]; 327 339 } 328 340 elseif($default !== null) … … 340 352 * set, returns a certain parameter if existing 341 353 * 342 * @param string $ parametername Name of the Parameter343 * @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. 344 356 * @return mixed data | null 345 357 */ 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]; 351 363 } 352 364 else … … 359 371 * Shortcut to get a Parameter from $_POST 360 372 * 361 * @param string $ parametername Name of the Parameter373 * @param string $name Name of the Parameter 362 374 * @return mixed data | null 363 375 */ 364 public function getParameterFromPost($ parametername)365 { 366 return $this->getParameter($ parametername, 'POST');376 public function getParameterFromPost($name) 377 { 378 return $this->getParameter($name, 'POST'); 367 379 } 368 380 … … 370 382 * Shortcut to get a Parameter from $_GET 371 383 * 372 * @param string $ parametername Name of the Parameter384 * @param string $name Name of the Parameter 373 385 * @return mixed data | null 374 386 */ 375 public function getParameterFromGet($ parametername)376 { 377 return $this->getParameter($ parametername, 'GET');387 public function getParameterFromGet($name) 388 { 389 return $this->getParameter($name, 'GET'); 378 390 } 379 391 … … 381 393 * Shortcut to get a Parameter from $_SERVER 382 394 * 383 * @param string $ parametername Name of the Parameter395 * @param string $name Name of the Parameter 384 396 * @return mixed data | null 385 397 */ 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]; 391 403 } 392 404 else 393 405 { 394 406 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); 395 421 } 396 422 } … … 405 431 { 406 432 $name = 'HTTP_' . mb_strtoupper(str_replace('-','_', $name)); 433 407 434 if (isset($_SERVER[$name])) 408 435 { 409 436 return $_SERVER[$name]; 410 437 } 438 411 439 return null; 412 440 } … … 417 445 * 418 446 * @todo check $_SERVER['SSL_PROTOCOL'] + $_SERVER['HTTP_X_FORWARD_PROTO']? 447 * @todo check -> or $_SERVER['SSL_PROTOCOL'] 448 * 419 449 * @return string 420 450 */ 421 451 public static function getServerProtocol() 422 452 { 423 if(self::isSecure()) # @todo check -> or $_SERVER['SSL_PROTOCOL']453 if(self::isSecure()) 424 454 { 425 455 return 'https://'; … … 646 676 } 647 677 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 } 648 697 649 698 /** … … 726 775 727 776 /** 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. 744 779 * 745 780 * @return bool 746 781 */ 747 public function isXhr()782 public static function isAjax() 748 783 { 749 784 if(isset($_SERVER['X-Requested-With']) and mb_strtolower($_SERVER['X-Requested-With']) === 'xmlhttprequest') … … 759 794 return false; 760 795 } 761 }762 763 /**764 * Shorthand for isXhr()765 *766 * @return boolean767 */768 public function isAjax()769 {770 return $this->isXhr();771 796 } 772 797 … … 777 802 * This code originally from Richard Heyes and Stefan Esser 778 803 */ 779 private function cleanGlobals()804 private static function cleanGlobals() 780 805 { 781 806 # Intercept GLOBALS overwrite … … 832 857 833 858 /** 834 * Handles possible Injections and clean up of $_REQUEST835 */836 private function sanitizeRequest()837 {838 # Filter for Request-Parameter: id839 if(isset($_REQUEST['id']) and ctype_digit($_REQUEST['id']))840 {841 $this->parameters['id'] = (int) $_REQUEST['id'];842 }843 844 # Filter for Request-Parameter: items845 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 /**864 859 * Revert magic_quotes() if still enabled 865 860 * stripslashes + array_deep + non_recursive … … 872 867 * @return Returns the magic quotes fixed $var 873 868 */ 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) 877 872 { 878 873 return $input; -
trunk/core/httpresponse.core.php
r4551 r4578 24 24 * 25 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 - onwards) 29 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 30 28 * @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$ 34 31 */ 35 32 -
trunk/core/inputfilter.core.php
r4500 r4578 22 22 * 23 23 * @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> 27 26 * @copyright Jens-André Koch (2005 - onwards), Florian Wolf (2006-2007) 28 *29 27 * @link http://www.clansuite.com 30 * @link http://gna.org/projects/clansuite31 28 * 32 29 * @version SVN: $Id$ -
trunk/core/localization.core.php
r4544 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 42 39 /** 43 40 * 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)47 41 * 48 42 * @category Clansuite … … 66 60 67 61 # References 68 private $config = null;62 private static $config = null; 69 63 70 64 public function __construct(Clansuite_Config $config) 71 65 { 72 66 # Set Reference to Config 73 $this->config = $config;67 self::$config = $config; 74 68 75 69 # Set Locale Defaults 76 70 $this->domain = 'clansuite'; 77 $this->encoding = $config['language']['outputcharset'];71 $this->encoding = self::$config['language']['outputcharset']; 78 72 79 73 # Get Locale … … 101 95 * @link http://www.gnu.org/software/gettext/manual/gettext.html GNU Gettext 102 96 */ 103 if ( function_exists('_get_reader') === false)97 if(function_exists('_get_reader') === false) 104 98 { 105 99 include ROOT_LIBRARIES . '/php-gettext/gettext.inc'; … … 131 125 if(empty($this->locale)) # 3) get the default language from config as fallback 132 126 { 133 $this->locale = $this->config['language']['language'];127 $this->locale = self::$config['language']['language']; 134 128 } 135 129 } … … 154 148 public function loadTextDomain($category, $domain, $locale, $module = null) 155 149 { 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" 157 153 if(isset($locale{3}) == false) 158 154 { … … 174 170 $domain_directory = ROOT_LANGUAGES; 175 171 } 176 else # tp a specific module directory 177 { 178 172 else # set a specific module directory 173 { 179 174 $domain_directory = ROOT_MOD . $module . DS . 'languages' . DS; 180 175 } … … 185 180 T_textdomain($domain); 186 181 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>'); 188 183 return true; 189 184 } -
trunk/core/logger.core.php
r4481 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/logger/devnull.logger.php
r4376 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/logger/email.logger.php
r4376 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/logger/file.logger.php
r4501 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 181 178 if($logfilename == null) 182 179 { 183 $logfilename = 'logs/clansuite_errorlog.txt.php';180 $logfilename = ROOT . 'logs/clansuite_errorlog.txt.php'; 184 181 } 185 182 186 183 # get logfile as array 187 184 $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 } 208 213 209 214 return $logEntries; -
trunk/core/logger/firebug.logger.php
r4377 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/mailer.core.php
r4500 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/modulecontroller.core.php
r4568 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 38 35 { 39 36 die('Clansuite not loaded. Direct Access forbidden.'); 40 }41 42 /**43 * Interface for all modules44 *45 * Force classes implementing the interface to define this (must have) methods!46 *47 * @category Clansuite48 * @package Core49 * @subpackage Module50 */51 interface Clansuite_Module_Interface52 {53 # always needed is the main initializeModule() method54 function initializeModule(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response);55 37 } 56 38 … … 89 71 90 72 /** 73 * @var object The Http_Request Object 74 */ 75 public $request = null; 76 77 /** 91 78 * @var array The Module Configuration Array 92 79 */ 93 80 public $moduleconfig = null; 81 82 public function __construct(Clansuite_HttpRequest $request, Clansuite_HttpResponse $response) 83 { 84 $this->request = $request; 85 $this->response = $response; 86 } 94 87 95 88 /** … … 109 102 if($modulename === null) 110 103 { 111 $modulename = Clansuite_ Dispatcher::getModuleName();104 $modulename = Clansuite_HttpRequest::getRoute()->getModuleName(); 112 105 } 113 106 … … 282 275 { 283 276 # check if the requesttype is xmlhttprequest (ajax) is incomming, then we will return data in json format 284 if(self::getHttpRequest()->is xhr() === true)277 if(self::getHttpRequest()->isAjax() === true) 285 278 { 286 279 $this->setRenderEngine('json'); … … 361 354 private function constructTemplateName() 362 355 { 363 $template = Clansuite_ Dispatcher::getActionName() . '.tpl';356 $template = Clansuite_TargetRoute::getActionName() . '.tpl'; 364 357 $this->setTemplate($template); 365 358 } … … 419 412 } 420 413 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); 429 431 } 430 432 … … 494 496 $referer = self::getHttpRequest()->getReferer(); 495 497 496 if(empty($referer) == false)498 if(empty($referer) === false) 497 499 { 498 500 $this->redirect($referer); … … 500 502 else 501 503 { 502 $this->redirect( WWW_ROOT . Clansuite_ Module_Controller_Resolver::getModuleName() );504 $this->redirect( WWW_ROOT . Clansuite_HttpRequest::getRoute()->getModuleName() ); 503 505 } 504 506 } … … 557 559 public function getHttpRequest() 558 560 { 559 return self::getInjector()->instantiate('Clansuite_HttpRequest');561 return $this->request; 560 562 } 561 563 … … 567 569 public function getHttpResponse() 568 570 { 569 return self::getInjector()->instantiate('Clansuite_HttpResponse');571 return $this->response; 570 572 } 571 573 } -
trunk/core/moduledecorator.core.php
r4507 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 50 47 * @version 0.1 51 48 */ 52 class Clansuite_Module_ControllerDecorator implements Clansuite_Module_Interface49 class Clansuite_Module_ControllerDecorator 53 50 { 54 51 # the moduleController to decorate -
trunk/core/moduleinfocontroller.core.php
r4559 r4578 22 22 * 23 23 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 24 *25 24 * @author Jens-André Koch <vain@clansuite.com> 26 25 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 27 *28 26 * @link http://www.clansuite.com 29 * @link http://gna.org/projects/clansuite30 27 * 31 28 * @version SVN: $Id$ -
trunk/core/preprocessor.core.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/remotefetch.core.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/renderer/csv.renderer.php
r4500 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/renderer/json.renderer.php
r4500 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 - onwards) 29 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005 - onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/renderer/pdf.renderer.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/renderer/php.renderer.php
r4493 r4578 4 4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 * 7 * This file is part of "Clansuite - just an eSports CMS". 6 8 * 7 9 * LICENSE: … … 21 23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 22 24 * 23 * @license GNU/GPL, see COPYING.txt 24 * 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 25 26 * @author Jens-André Koch <vain@clansuite.com> 26 27 * @copyright Jens-André Koch (2005 - onwards) 27 *28 28 * @link http://www.clansuite.com 29 * @link http://gna.org/projects/clansuite30 29 * 31 30 * @version SVN: $Id$ -
trunk/core/renderer/phptal.renderer.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/renderer/renderer.base.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ … … 209 206 { 210 207 # 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(); 213 210 214 211 # 1. because controlcenter or admin is requested, it has to be a BACKEND theme … … 216 213 { 217 214 # (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; 225 223 } 226 224 # (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; 230 228 } 231 229 } … … 233 231 { 234 232 # (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; 238 237 } 239 238 # (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; 243 242 } 244 243 # (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; 248 247 } 249 248 } … … 301 300 $template_constants['www_root'] = WWW_ROOT; 302 301 $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(); 304 303 $template_constants['www_root_theme'] = WWW_ROOT_THEMES .'/'. $_SESSION['user']['theme']; 305 304 $template_constants['www_root_themes'] = WWW_ROOT_THEMES; … … 355 354 356 355 # Debug Display 357 # clansuite_xdebug::printR($template_constants);356 #Clansuite_Debug::printR($template_constants); 358 357 359 358 return $template_constants; -
trunk/core/renderer/serialized.renderer.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/renderer/smarty.renderer.php
r4568 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 172 169 * CACHING OPTIONS (set these options if caching is enabled) 173 170 */ 174 # clansuite_xdebug::printr($this->config['cache']);171 #Clansuite_Debug::printr($this->config['cache']); 175 172 # var_dump($this->config['cache']); 176 173 if($this->renderer->debugging == true) … … 254 251 255 252 # 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') 257 254 { 258 255 # Backend Theme Detections 259 256 $_SESSION['user']['backendtheme'] = 'admin'; 260 257 $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; 262 259 } 263 260 else … … 265 262 # Frontend Theme Detections 266 263 $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; 268 265 } 269 266 … … 273 270 # 3) + 4) modules dir 274 271 $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; 276 273 277 274 # 5) themes dir … … 279 276 280 277 # 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') 282 279 { 283 280 $this->renderer->template_dir[] = ROOT_THEMES . 'admin' . DS; … … 287 284 $this->renderer->template_dir[] = ROOT_THEMES; 288 285 289 # clansuite_xdebug::printR($this->renderer->template_dir);286 #Clansuite_Debug::printR($this->renderer->template_dir); 290 287 291 288 /** … … 299 296 $this->renderer->plugins_dir[] = ROOT_LIBRARIES . 'smarty/plugins/'; 300 297 $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); 304 301 305 302 /** … … 481 478 * This is used in template_not_found.tpl to provide a link to the templateeditor 482 479 */ 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()); 485 482 $this->renderer->assign('templatename', $template); 486 483 $this->renderer->assign('template_to_render', $template); -
trunk/core/renderer/xslt.renderer.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/renderer/xtemplate.renderer.php
r4556 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/responseencode.core.php
r4498 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/router.core.php
r4568 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 28 * @link http://www.clansuite.com 29 29 * 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$ 34 31 */ 35 32 … … 51 48 * Normally all requests made map to a specific physical resource rather than a logical name. 52 49 * 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/Parameter54 * Map a FileRequest via logical URL (a mod_rewritten one) to a DownloadController/Method/Parameter50 * 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 55 52 * 56 53 * There are two different URL Formatings allowed: … … 58 55 * 2. Fake HTML File Request or SMF-Style, like so: /mod.sub.action.id.html 59 56 * 60 * SPL Iterator and ArrayAccess are used for fast iteration and easier access to the stored routes.61 *62 57 * @category Clansuite 63 58 * @package Core 64 59 * @subpackage Router 65 60 */ 66 class Clansuite_Router implements Iterator,ArrayAccess, Clansuite_Router_Interface61 class Clansuite_Router implements ArrayAccess, Clansuite_Router_Interface 67 62 { 68 63 private static $use_cache = false; … … 70 65 private $uri = ''; 71 66 private $uri_segments = array(); 72 private $extension = '';67 private static $extension = ''; 73 68 74 69 /** … … 83 78 */ 84 79 private $routes = array(); 85 80 86 81 /** 87 82 * 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 93 88 # clean the incomming uri 94 89 $this->uri = self::prepareRequestURI($request_uri); 95 96 # check if routes caching is activated in config, maybe we can load routes from cache97 if(isset($config['routing']['cache_routes']) and true === $config['routing']['cache_routes'])98 {99 self::$use_cache = true;100 }101 else102 {103 self::$use_cache = false;104 }105 90 } 106 91 … … 111 96 * @param array $route_options 112 97 */ 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; 116 164 } 117 165 … … 138 186 return $this->routes; 139 187 } 140 188 141 189 /** 142 190 * Delete a route by its url pattern … … 161 209 public function generateURL($url_pattern, array $params = null, $fragment = null, $absolute = false) 162 210 { 163 211 164 212 } 165 213 … … 194 242 if(empty($this->uri) or $this->uri === '/') 195 243 { 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(); 200 248 } 201 249 202 250 # attach more routes to this object via the event "onInitializeRoutes" 203 Clansuite_CMS::triggerEvent('onInitializeRoutes', $this);251 #Clansuite_CMS::triggerEvent('onInitializeRoutes', $this); 204 252 205 253 # initalize Routes 206 #$this->loadDefaultRoutes();254 $this->loadDefaultRoutes(); 207 255 208 256 # first filter: drop all routes with more segments then uri_segments 209 #self::removeRoutesBySegmentCount();257 self::removeRoutesBySegmentCount(); 210 258 211 259 # 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); 213 335 } 214 336 … … 221 343 * @return bool True, if "RewriteEngine On". False otherwise. 222 344 */ 223 public staticfunction isRewriteEngineOn()345 public function isRewriteEngineOn() 224 346 { 225 347 # maybe, we have a modrewrite config setting, this avoids overhead … … 232 354 if(function_exists('apache_get_modules') and in_array('mod_rewrite', apache_get_modules())) 233 355 { 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 } 237 362 238 363 if(self::$rewriteEngineOn == 1) … … 288 413 $route = new Clansuite_TargetRoute(); 289 414 415 # Controller 290 416 if(isset($this->uri_segments['mod'])) 291 417 { … … 294 420 } 295 421 422 # SubController 296 423 if(isset($this->uri_segments['sub'])) 297 424 { … … 300 427 } 301 428 429 # Action 302 430 if(isset($this->uri_segments['action'])) 303 431 { … … 306 434 } 307 435 308 # the rest of the uri_segments are just params for the method 309 436 # Parameters 310 437 if(count($this->uri_segments) > 0) 311 438 { … … 321 448 * 322 449 * This URLParser has to extract mod, sub, action, id/parameters from the URI. 450 * This is the Standard_Request_Resolver. 323 451 * 324 452 * @param string $url The Request URL 325 453 */ 326 private function UrlParser_NoRewrite($uri) # Standard_Request_Resolver 327 { 328 454 private function UrlParser_NoRewrite($uri) 455 { 329 456 # use some parse_url magic to get the url_query part from the uri 330 457 $uri_query_string = parse_url($uri, PHP_URL_QUERY); … … 346 473 foreach($uri_query_array as $query_pair) 347 474 { 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 } 350 480 } 351 481 } 352 353 482 unset($uri_query_string, $uri_query_array, $query_pair, $key, $value); 354 483 … … 384 513 $uri = mb_substr($uri, 0, $pos); 385 514 } 386 unset($pos);387 515 388 516 /** … … 401 529 $uri_dot_array = explode('.', $uri); 402 530 # chop off the last piece as the extension 403 $this->extension = array_pop($uri_dot_array);531 self::$extension = array_pop($uri_dot_array); 404 532 # there might be multiple dots in the url 405 533 # thats why implode is used to reassemble the segmentized array to a string again … … 407 535 # = ini_get('arg_separator.output') 408 536 $uri = implode('/', $uri_dot_array); 409 }410 unset($uri_dot_array);537 unset($uri_dot_array); 538 } 411 539 unset($pos); 412 540 … … 422 550 #Clansuite_Debug::firebug($uri_split); 423 551 $this->uri_segments = $url_split; 552 unset($url_split); 424 553 } 425 554 … … 461 590 } 462 591 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 463 605 /** 464 606 * Register the default routes. … … 466 608 public function loadDefaultRoutes() 467 609 { 468 # check cache for routes 610 self::checkRouteCachingActive(); 611 612 # Load Routes from Cache 469 613 if(true === self::$use_cache and empty($this->routes) and Clansuite_Cache::contains('clansuite.routes')) 470 614 { … … 472 616 } 473 617 474 if(empty($this->routes)) # load routes table from routes.config.php 618 # Load Routes from routes.config.php 619 if(empty($this->routes)) 475 620 { 476 621 $this->addRoutes( Clansuite_Routes_Manager::loadRoutesFromConfig()); … … 490 635 if(empty($this->routes)) 491 636 { 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 */ 496 647 } 497 648 } … … 535 686 /** 536 687 * 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. 537 692 * 538 693 * @category Clansuite … … 600 755 601 756 # attach subcontroller to classname 602 if( $subcontroller !== null)757 if(isset($subcontroller)) 603 758 { 604 759 $classname .= '_' . ucfirst($subcontroller); … … 609 764 610 765 /** 611 * Maps the action to anmethod name.612 * The p seudo-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()" 614 769 * This is also a way to ensure some kind of whitelisting via namespacing. 615 770 * … … 617 772 * In this case the actionname is action_admin_show(). 618 773 * 619 * @param string the action620 * @param string the submodule621 * @return string the mapped method name774 * @param string $action the action 775 * @param string $submodule the submodule 776 * @return string the mapped method name 622 777 */ 623 778 public static function mapActionToActioname($action, $submodule = null) 624 779 { 625 # action not set by URL, so we set action from config/this class780 # set default value for action, when not set by URL 626 781 if(false === isset($action)) 627 782 { 628 # set the method name629 783 $action = self::$defaultAction; 630 784 } 631 785 632 # if $submodule is set, use it as a prefixon $action633 if(isset($submodule) and ($submodule !== null))786 # if a $submodule is set, use it as a PREFIX on $action 787 if(isset($submodule)) 634 788 { 635 789 $action = $submodule . '_' . $action; 636 790 } 637 791 792 #Clansuite_Debug::firebug($action); 793 638 794 # all clansuite actions are prefixed with 'action_' 639 return 'action_' . $action;795 return self::METHOD_PREFIX . '_' . $action; 640 796 } 641 797 } 642 798 799 /** 800 * Clansuite_TargetRoute (processed RequestObject) 801 */ 643 802 class Clansuite_TargetRoute extends Clansuite_Mapper 644 803 { 645 private static $parameters = array( 804 public static $parameters = array( 805 # File 646 806 'filename' => null, 647 807 'classname' => null, 808 # Call 648 809 'controller' => 'index', 649 810 'subcontroller' => null, … … 651 812 'method' => null, 652 813 'params' => null, 814 # Output 653 815 'format' => 'html', 654 816 'language' => 'en', … … 660 822 ); 661 823 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 662 839 public static function setFilename($filename) 663 840 { … … 695 872 } 696 873 874 /** 875 * Returns Name of the Controller 876 * 877 * @return string Controller/Modulename 878 */ 697 879 public static function getController() 698 880 { … … 700 882 } 701 883 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 702 894 public static function setSubController($subcontroller) 703 895 { … … 710 902 } 711 903 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 712 914 public static function setAction($action) 713 915 { … … 718 920 { 719 921 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']; 720 942 } 721 943 … … 732 954 return self::$parameters['method']; 733 955 } 734 else # add method prefix 735 { 736 $method = 'action_' . self::$parameters['action'];737 738 # action + prefix = method, set it739 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 #} 740 962 } 741 963 … … 791 1013 { 792 1014 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; 793 1026 } 794 1027 } … … 802 1035 class Clansuite_Routes_Manager 803 1036 { 804 public staticfunction addRoutesOfModule($modulename)1037 public function addRoutesOfModule($modulename) 805 1038 { 806 1039 self:updateApplicationRoutes($modulename); 807 1040 } 808 1041 809 public staticfunction delRoutesOfModule($modulename)1042 public function delRoutesOfModule($modulename) 810 1043 { 811 1044 $module_routes_file = ROOT_MOD . '/' . $modulename . '/' . $modulename . '.routes.php'; … … 825 1058 { 826 1059 $routes_count = count($this->routes); 1060 1061 # loop over all routes 827 1062 for($i == 0; $i < $routes_count; $i++) 828 1063 { 1064 # check if there is a route with the given name 829 1065 if($this->routes[$i]['name'] == $route_name) 830 1066 { 1067 # got one? then remove it from the routes array and stop 831 1068 array_splice($this->routes, $i, 1); 832 1069 break; 833 1070 } 834 1071 } 1072 835 1073 return $this->routes;; 836 1074 } … … 841 1079 * @param string $modulename Name of module 842 1080 */ 843 public staticfunction updateApplicationRoutes($modulename = null)1081 public function updateApplicationRoutes($modulename = null) 844 1082 { 845 1083 $activated_modules = array(); … … 884 1122 { 885 1123 # load common routes configuration 886 $routes = include ROOT . 'configuration/routes.config.php'; 1124 # includes array $routes 1125 include ROOT . 'configuration/routes.config.php'; 887 1126 } 888 1127 else 889 1128 { 890 1129 # load specific routes config file 891 $routes =include ROOT . $routes_config_file;1130 include ROOT . $routes_config_file; 892 1131 } 893 1132 -
trunk/core/security.core.php
r4498 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/session.core.php
r4500 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 87 84 */ 88 85 89 function __construct( $config, Clansuite_HttpRequest $request)86 function __construct(Clansuite_Config $config, Clansuite_HttpRequest $request) 90 87 { 91 88 $this->config = $config; … … 115 112 116 113 # use a cookie to store the session id 114 # @todo force session cookies? 117 115 ini_set('session.use_cookies', $this->config['session']['use_cookies'] ); 118 116 ini_set('session.use_only_cookies', $this->config['session']['use_cookies_only'] ); -
trunk/core/user.core.php
r4493 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 599 596 ->fetchOne(array(1), Doctrine::HYDRATE_ARRAY);*/ 600 597 601 #Clansuite_ XDebug::firebug($rights);598 #Clansuite_Debug::firebug($rights); 602 599 603 600 /* … … 611 608 */ 612 609 613 #Clansuite_ XDebug::firebug($_SESSION);610 #Clansuite_Debug::firebug($_SESSION); 614 611 } 615 612 } -
trunk/core/viewhelper/blockcontainer.core.php
r4377 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagrid.core.php
r4500 r4578 24 24 * 25 25 * @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> 28 27 * @copyright Jens-André Koch (2005-onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcol.core.php
r4493 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/checkbox.column.php
r4376 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/date.column.php
r4376 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/editbutton.column.php
r4376 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/email.column.php
r4464 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/image.column.php
r4493 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/integer.column.php
r4376 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite29 * 32 30 * 33 31 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/link.column.php
r4493 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/datagridcols/string.column.php
r4376 r4578 2 2 /** 3 3 * Clansuite - just an eSports CMS 4 * Jens-Andr ᅵ Koch ᅵ2005 - onwards4 * Jens-André Koch © 2005 - onwards 5 5 * http://www.clansuite.com/ 6 6 * … … 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/form.core.php
r4498 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 608 605 $formelements = $this->getFormelements(); 609 606 610 # clansuite_xdebug::printR($formelements);607 #Clansuite_Debug::printR($formelements); 611 608 612 609 # sort formelements by index … … 631 628 /*if($formelement_position == 1) 632 629 { 633 clansuite_xdebug::printR($formelements);630 Clansuite_Debug::printR($formelements); 634 631 }*/ 635 632 636 # clansuite_xdebug::printR($formelement);633 #Clansuite_Debug::printR($formelement); 637 634 638 635 # then render this formelement (pure) … … 653 650 } 654 651 655 # clansuite_xdebug::printR($html_form);652 #Clansuite_Debug::printR($html_form); 656 653 return $html_form; 657 654 } … … 941 938 { 942 939 # Debug of incomming decorators 943 # clansuite_xdebug::printR($decorators);940 #Clansuite_Debug::printR($decorators); 944 941 945 942 # check if multiple decorators are incomming at once … … 971 968 $decorator = $this->decoratorFactory($decorators); 972 969 $decoratorname = $decorator->name; 973 # clansuite_xdebug::printR($decorator);970 #Clansuite_Debug::printR($decorator); 974 971 } 975 972 -
trunk/core/viewhelper/formdecorator.core.php
r4507 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/div.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/errors.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/fieldset.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/form.form.php
r4493 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/label.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/list.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/tab.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/form/table.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/formelement/description.form.php
r4445 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/ 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ -
trunk/core/viewhelper/formdecorators/formelement/div.form.php
r4445 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/formelement/formelement.form.php
r4445 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/formelement/label.form.php
r4445 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formdecorators/formelement/none.form.php
r4445 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelement.core.php
r4500 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 487 484 public function getIncommingFormData($formmethod) 488 485 { 489 $request = $this-> injector->instantiate('Clansuite_HttpRequest');486 $request = $this->getHttpRequest(); 490 487 491 488 # better use this -> $formmethod = $request->getMethod(); … … 608 605 # Insted the decorator is returned, to apply some properties. 609 606 # @return decorator object 610 # clansuite_xdebug::printR($this->formelementdecorators[$decoratorname]);607 #Clansuite_Debug::printR($this->formelementdecorators[$decoratorname]); 611 608 #Clansuite_Debug::printR($this->name); 612 609 -
trunk/core/viewhelper/formelements/button.form.php
r4446 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/buttonbar.form.php
r4377 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/cancelbutton.form.php
r4446 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/captcha.form.php
r4493 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/checkbox.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/checkboxlist.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/confirmsubmitbutton.form.php
r4446 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/errors.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/ 32 * 29 * 33 30 * @version SVN: $Id$ 34 31 */ -
trunk/core/viewhelper/formelements/file.form.php
r4500 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/hidden.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/image.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/imagebutton.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/input.form.php
r4446 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/jqconfirmsubmitbutton.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ … … 66 63 $this->class = 'ButtonGreen'; 67 64 68 # clansuite_xdebug::printR($this->formid);65 #Clansuite_Debug::printR($this->formid); 69 66 70 67 # Add the Form Submit Confirmation Javascript. This is a jQuery UI Modal Confirm Dialog. -
trunk/core/viewhelper/formelements/jqselectcolor.form.php
r4377 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/jqselectdate.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ … … 107 104 public function getAttributes() 108 105 { 109 # clansuite_xdebug::printR($this->attributes);106 #Clansuite_Debug::printR($this->attributes); 110 107 $attributes_html = ''; 111 108 foreach($this->attributes as $attribute => $value) -
trunk/core/viewhelper/formelements/jqselectimage.form.php
r4394 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/label.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/multiselect.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/password.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/radio.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/radiolist.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ … … 97 94 $html .= $radio; 98 95 99 # clansuite_xdebug::printR($html);96 #Clansuite_Debug::printR($html); 100 97 101 98 # if we have more options comming up, add a seperator -
trunk/core/viewhelper/formelements/recaptcha.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite29 * 32 30 * 33 31 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/resetbutton.form.php
r4376 r4578 23 23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 24 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 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) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/securitytoken.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/select.form.php
r4446 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/selectcolor.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/selectcountry.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/selectdate.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/selectlanguage.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/selectyesno.form.php
r4377 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/simplecaptcha.form.php
r4500 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 106 103 * 107 104 * @link http://www.clansuite.com 108 * @link http://gna.org/projects/clansuite105 * 109 106 * 110 107 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/submitbutton.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/text.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/textarea.form.php
r4493 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/timetoken.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/uploadajax.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/uploadapc.form.php
r4446 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/uploadify.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/wysiwygckeditor.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id: wysiwygckeditor.form.php 3631 2009-11-10 21:31:15Z vain $ -
trunk/core/viewhelper/formelements/wysiwygmarkitup.form.php
r4371 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/wysiwygnicedit.form.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formelements/wysiwygtinymce.form.php
r4371 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/formgenerator.core.php
r4500 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ … … 221 218 foreach($form_array as $form_array_section => $form_array_elements) 222 219 { 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); 225 222 226 223 foreach($form_array_elements as $form_array_element_number => $form_array_element) 227 224 { 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); 230 227 231 228 # this does the validation. it ensures that required keys are present … … 252 249 { 253 250 # debug display incomming form description array 254 # clansuite_xdebug::firebug($this->array);251 #Clansuite_Debug::firebug($this->array); 255 252 256 253 # loop over all elements of the form description array 257 254 foreach($this->form_array as $form_array_section => $form_array_elements) 258 255 { 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); 261 258 262 259 foreach($form_array_elements as $form_array_element_number => $form_array_element) 263 260 { 264 # clansuite_xdebug::firebug($form_array_element);261 #Clansuite_Debug::firebug($form_array_element); 265 262 266 263 # @todo ensure these elements exist !!! -
trunk/core/viewhelper/formvalidation.core.php
r4428 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/html.core.php
r4453 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/javascripts.core.php
r4371 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 * @copyright Jens-André Koch (2005 - onwards) 29 * 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/layout.core.php
r4376 r4578 24 24 * 25 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 * 26 * @author Jens-André Koch <vain@clansuite.com> 27 * @copyright Jens-André Koch (2005-onwards) 30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/core/viewhelper/smarty/block.t.php
r4377 r4578 89 89 $text = stripslashes($text); 90 90 91 //set escape mode91 # set escape mode 92 92 if (isset($params['escape'])) 93 93 { … … 96 96 } 97 97 98 //set plural version98 # set plural version 99 99 if (isset($params['plural'])) 100 100 { … … 102 102 unset($params['plural']); 103 103 104 //set count104 # set count 105 105 if (isset($params['count'])) 106 106 { … … 110 110 } 111 111 112 //use plural if required parameters are set112 # use plural if required parameters are set 113 113 if (isset($count) and isset($plural)) 114 114 { … … 116 116 } 117 117 else 118 { //use normal118 { # use normal 119 119 $text = T_gettext($text); # vain: prefixed "T_" for usage of php-gettext 120 120 } 121 121 122 //run strarg if there are parameters122 # run strarg if there are parameters 123 123 if (count($params)) 124 124 { … … 126 126 } 127 127 128 if (!isset($escape) or $escape == 'html') 129 { // html escape, default 128 if (false === isset($escape) or $escape == 'html') 129 { 130 # html escape, default 130 131 $text = nl2br(htmlspecialchars($text)); 131 132 } … … 136 137 case 'javascript': 137 138 case 'js': 138 //javascript escape139 # javascript escape 139 140 $text = str_replace('\'', '\\\'', stripslashes($text)); 140 141 break; 141 142 case 'url': 142 //url escape143 # url escape 143 144 $text = urlencode($text); 144 145 break; -
trunk/core/viewhelper/smarty/function.breadcrumbs.php
r4493 r4578 2 2 function smarty_function_breadcrumbs($params, $smarty) 3 3 { 4 # handle trail params set directly to the smarty function call in the template 4 5 if (isset($params['trail']) && is_array($params['trail'])) 5 6 { … … 11 12 } 12 13 14 Clansuite_Debug::firebug($trail); 15 16 # is the seperator element set via the smarty function call? 13 17 if (isset($params['separator'])) 14 18 { 15 19 $separator = $params['separator']; 16 20 } 17 else 21 else # no, take default seperator 18 22 { 19 23 $separator = ' > '; … … 39 43 if (isset($trail[$i]['link']) && $i < $trailSize - 1) 40 44 { 41 //if parameter heading is not set, give links45 # if parameter heading is not set, give links 42 46 if (!isset($params['title'])) 43 47 { 44 48 $links[] = '<a href="'. $trail[$i]['link'] .'" title="'. htmlspecialchars($trail[$i]['title']). '">'. $title .'</a>'; 45 49 } 46 //if heading is set, just titles50 # if heading is set, just titles 47 51 else 48 52 { … … 56 60 } 57 61 58 #$breadcrumb_string = join($separator . "\n", $links);59 62 $breadcrumb_string = join($separator . ' ', $links); 60 63 -
trunk/core/viewhelper/smarty/function.icon.php
r4498 r4578 58 58 if(isset($src) and is_int($pos)) 59 59 { 60 # clansuite_xdebug::printR($pos);60 #Clansuite_Debug::printR($pos); 61 61 $src = mb_substr($src, $pos + mb_strlen($needle)); 62 62 $name = basename($src); -
trunk/core/viewhelper/smarty/function.load_module.php
r4493 r4578 37 37 /*if($params['name'] == 'news') 38 38 { 39 clansuite_xdebug::firebug($params);39 Clansuite_Debug::firebug($params); 40 40 }*/ 41 41 42 42 # 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; 47 47 48 48 # WATCH it, this resets the incomming parameters array … … 51 51 $module_classname = 'clansuite_module_'; 52 52 # Construct the variable module_name 53 if (isset($submodule) and mb_strlen($submodule) > 0)53 if(isset($submodule) and mb_strlen($submodule) > 0) 54 54 { 55 55 # like "clansuite_module_admin_menu" 56 $module_classname .= $module . '_' . $submodule;56 $module_classname .= $module . '_' . $submodule; 57 57 } 58 58 else … … 65 65 66 66 # Load class, if not already loaded 67 if (class_exists($module_classname, false) == false)67 if(class_exists($module_classname, false) == false) 68 68 { 69 69 # Check if class was loaded 70 if( Clansuite_Loader::loadModul($module_classname) == false)70 if(Clansuite_Loader::loadModul($module_classname) == false) 71 71 { 72 return '<br/>Module missing or misspelled: <strong>' . $module_classname.'</strong>';72 return '<br/>Module missing or misspelled: <strong>' . $module_classname . '</strong>'; 73 73 } 74 74 } 75 75 76 76 # 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 ); 78 81 $controller->setView($smarty); 79 82 $controller->initModel($module); … … 82 85 * Get the Ouptut of the Object->Method Call 83 86 */ 84 if( method_exists( $controller, $action ))87 if(method_exists($controller, $action)) 85 88 { 86 89 # exceptional handling of parameters and output for adminmenu 87 if ( $module_classname == 'clansuite_module_menu_admin')90 if($module_classname == 'clansuite_module_menu_admin') 88 91 { 89 92 $parameters = array(); 90 93 91 94 # Build a Parameter Array from Parameter String like: param|param|etc 92 if( empty($params['params']))95 if(empty($params['params'])) 93 96 { 94 97 $parameters = null; … … 102 105 } 103 106 104 # fastcall107 # call 105 108 $controller->$action($items); 106 107 #Clansuite_Loader::callClassMethod($controller, $action, $items);108 109 109 110 /** … … 116 117 * wich is defined by $smarty->template_dir. 117 118 * 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); 119 120 */ 120 121 if($smarty->templateExists($module.DS.$action.'.tpl')) 121 if($smarty->templateExists($module . DS . $action . '.tpl')) 122 122 { 123 123 # $smarty->template_dir[s]..\news\widget_news.tpl 124 return $smarty->fetch($module .DS.$action.'.tpl');124 return $smarty->fetch($module . DS . $action . '.tpl'); 125 125 } 126 elseif($smarty->templateExists($module .DS.'view'.DS.$action.'.tpl'))126 elseif($smarty->templateExists($module . DS . 'view' . DS . $action . '.tpl')) 127 127 { 128 128 # $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'); 130 130 } 131 131 else 132 132 { 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 . ')'); 134 134 } 135 135 } 136 136 else 137 137 { 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 . ')'); 139 139 } 140 140 } -
trunk/core/viewhelper/smarty/function.modulenavigation.php
r4453 r4578 27 27 function smarty_function_modulenavigation($params, $smarty) 28 28 { 29 $modulename = Clansuite_ Module_Controller_Resolver::getModuleName();29 $modulename = Clansuite_HttpRequest::getRoute()->getModuleName(); 30 30 $modulenavigation_file = ROOT_MOD. $modulename . DS . $modulename . '.menu.php'; 31 31 … … 36 36 # The file is located in clansuite/themes/core/view/modulenavigation-generic.tpl 37 37 return $smarty->fetch('modulenavigation-generic.tpl'); 38 39 38 } 40 39 else -
trunk/core/viewhelper/smarty/resource.make_template.php
r4359 r4578 1 1 <?php 2 2 3 function smarty_make_template($resource_type, $resource_name, &$template_source, &$template_timestamp, $smarty_obj) 3 4 { 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. 7 10 $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); 10 19 return true; 11 20 } 12 } else { 13 // not a file 21 } 22 else # not a file 23 { 14 24 return false; 15 25 } -
trunk/index.php
r4371 r4578 28 28 * 29 29 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 30 *31 30 * @author Jens-André Koch <vain@clansuite.com> 32 31 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005 - onwards) 33 *34 32 * @link http://www.clansuite.com 35 * @link http://gna.org/projects/clansuite36 *37 33 * @version SVN: $Id$ 38 34 */ -
trunk/installation/converter/converter-step1.php
r4493 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter-step2.php
r4493 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter-step3.php
r4377 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter-step4.php
r4493 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter-step5.php
r4493 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter-step6.php
r4493 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter-step7.php
r4493 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter_footer.php
r4517 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter_header.php
r4377 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/converter_menu.php
r4377 r4578 29 29 * 30 30 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite31 * 32 32 * 33 33 * @version SVN: $Id$ -
trunk/installation/converter/index.php
r4493 r4578 26 26 * 27 27 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 28 *29 28 * @author Jens-André Koch <vain@clansuite.com> 30 29 * @copyright Jens-André Koch (2005 - onwards) 31 *32 30 * @link http://www.clansuite.com 33 * @link http://gna.org/projects/clansuite34 31 * 35 32 * @category Clansuite -
trunk/installation/converter/languages/english.converter.php
r4361 r4578 31 31 * 32 32 * @link http://www.clansuite.com 33 * @link http://gna.org/projects/clansuite33 * 34 34 * 35 35 * @version SVN: $Id$ -
trunk/installation/converter/languages/german.converter.php
r4361 r4578 31 31 * 32 32 * @link http://www.clansuite.com 33 * @link http://gna.org/projects/clansuite33 * 34 34 * 35 35 * @version SVN: $Id$ -
trunk/installation/index.php
r4493 r4578 5 5 * http://www.clansuite.com/ 6 6 * 7 * Clansuite Installer7 * This file is part of "Clansuite - just an eSports CMS". 8 8 * 9 9 * LICENSE: … … 22 22 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 23 * 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) 27 27 * @author Florian Wolf <xsign.dll@clansuite.com> 2005-2006 28 28 * @copyright Florian Wolf (2005-2006) 29 29 * 30 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE".31 *32 * @link http://gna.org/projects/clansuite33 * @since File available since Release 0.134 *35 30 * @version SVN: $Id$ 36 31 */ 32 37 33 session_start(); 38 34 -
trunk/installation/webinstaller/webinstaller-mini.php
r4493 r4578 48 48 * @copyright 2007 Clansuite Group 49 49 * @license see COPYING.txt 50 * @link http://gna.org/projects/clansuite50 * 51 51 * @since File available since Release 0.1 52 52 * -
trunk/installation/webinstaller/webinstaller.php
r4517 r4578 49 49 * @copyright 2007 Clansuite Group 50 50 * @license see COPYING.txt 51 * @link http://gna.org/projects/clansuite51 * 52 52 * @since File available since Release 0.1 53 53 * -
trunk/libraries/gravatar/clansuite_gravatar.class.php
- Property svn:keywords set to Date Author Id Revision HeadURL
r2675 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Copyleft: All rights reserved. Jens-André Koch (2005-onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 * @since File available since Release 0.233 29 * 34 30 * @version SVN: $Id$ -
trunk/tests/index.php
r3741 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/tests/runAllTests.php
r4370 r4578 24 24 * 25 25 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 26 *27 26 * @author Jens-André Koch <vain@clansuite.com> 28 27 * @copyright Jens-André Koch (2005 - onwards) 29 *30 28 * @link http://www.clansuite.com 31 * @link http://gna.org/projects/clansuite32 29 * 33 30 * @version SVN: $Id$ -
trunk/themes/admin/index.tpl
r4426 r4578 1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 2 <html><head> 3 <title>{if isset($pagetitle)}{$pagetitle} - {/if}{breadcrumbs title="1" trail=$trail separator=" » " length=30}</title> 3 4 4 {* display cache time as comment*}5 {* Metatags *} 5 6 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"}. --> 7 22 8 23 <!-- jQuery --> … … 17 32 <link rel="stylesheet" type="text/css" href="{$www_root_themes}/core/css/jquery.pnotify.default.css" /> 18 33 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 36 34 {* Clansuite Cascading Style Sheets *} 37 35 … … 42 40 43 41 <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=" » " length=30}</title>48 42 49 43 </head> … … 61 55 62 56 {include file="firebug_active_warning.tpl"} 57 63 58 {flashmessages} 64 59 … … 72 67 <tr> 73 68 <td class="admin_header"> 69 74 70 {include file='breadcrumbs.tpl'} 71 75 72 {include file='help_button.tpl'} 76 73 -
trunk/themes/core/view/copyright.tpl
r3728 r4578 1 1 <div id="footer"> 2 2 <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> 6 6 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é Koch</a> & 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é Koch</a> & Clansuite Development Team. 11 </p> 12 12 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> 16 16 </div> -
trunk/themes/core/view/security_breach.php
r4377 r4578 22 22 * 23 23 * @license GNU/GPL v2 or (at your option) any later version, see "/doc/LICENSE". 24 *25 24 * @author Jens-André Koch <vain@clansuite.com> 26 25 * @copyright Jens-André Koch (2005-$Date$), Florian Wolf (2006-2007) 27 *28 26 * @link http://www.clansuite.com 29 * @link http://gna.org/projects/clansuite30 * @since File available since Release 0.231 27 * 32 28 * @version SVN: $Id$
Note: See TracChangeset
for help on using the changeset viewer.
