Index: trunk/kernel/action.php
===================================================================
diff -u -r4476 -r4490
--- trunk/kernel/action.php (.../action.php) (revision 4476)
+++ trunk/kernel/action.php (.../action.php) (revision 4490)
@@ -1,31 +1,31 @@
HasSystemPermission("SYSTEM_ACCESS.READONLY");
-
-// ====== Debugger related: begin ======
-$script = basename($_SERVER['PHP_SELF']);
-$skipDebug = Array('index.php', 'tree.php', 'head.php', 'credits.php');
-if( admin_login() && !in_array($script, $skipDebug) )
-{
- if( IsDebugMode() )
+ $ro_perm = $objSession->HasSystemPermission("SYSTEM_ACCESS.READONLY");
+
+ // ====== Debugger related: begin ======
+ $script = basename($_SERVER['PHP_SELF']);
+ $skipDebug = Array('index.php', 'tree.php', 'head.php', 'credits.php');
+ if( admin_login() && !in_array($script, $skipDebug) )
{
- if($Action) $debugger->setHTMLByIndex(1,'Kernel Action: '.$Action.'','append');
- if (!constOn('REDIRECT_REQUIRED')) {
- echo '';
- if (!constOn('DBG_ZEND_PRESENT')) {
- echo '
';
+ if( IsDebugMode() )
+ {
+ if($Action) $debugger->setHTMLByIndex(1,'Kernel Action: '.$Action.'','append');
+ if (!constOn('REDIRECT_REQUIRED')) {
+ echo '';
+ if (!constOn('DBG_ZEND_PRESENT')) {
+ echo '
';
+ }
}
}
}
-}
-unset($script, $skipDebug);
-// ====== Debugger related: end ======
+ unset($script, $skipDebug);
+ // ====== Debugger related: end ======
-// Session expiration related
+ // Session expiration related
-require_login( !admin_login() && $Action, 'expired=1', true );
+ require_login( !admin_login() && $Action, 'expired=1', true );
-// End session exipration related
+ // End session exipration related
switch($Action)
{