Index: trunk/kernel/constants.php =================================================================== diff -u -r4702 -r6093 --- trunk/kernel/constants.php (.../constants.php) (revision 4702) +++ trunk/kernel/constants.php (.../constants.php) (revision 6093) @@ -23,7 +23,16 @@ define('erFATAL', -2); // event experienced FATAL error - no hooks should continue! define('erPERM_FAIL', -3); // event failed on internal permission checking (user has not permission) + // permission types + define('ptCATEGORY', 0); + define('ptSYSTEM', 1); + $application =& kApplication::Instance(); $spacer_url = $application->BaseURL().'kernel/admin_templates/img/spacer.gif'; define('SPACER_URL', $spacer_url); + + if (!$application->IsAdmin()) { + // don't show debugger buttons on front (if not overrided in "debug.php") + safeDefine('DBG_TOOLBAR_BUTTONS', 0); + } ?> \ No newline at end of file