Index: trunk/kernel/action.php =================================================================== diff -u -r189 -r203 --- trunk/kernel/action.php (.../action.php) (revision 189) +++ trunk/kernel/action.php (.../action.php) (revision 203) @@ -4,11 +4,31 @@ if( defined('DEBUG_ACTIONS') && (DEBUG_ACTIONS & KERNEL_ACTIONS) == KERNEL_ACTIONS ) { - echo "Kernel Action $Action
\n"; - echo 'REQUEST:'; - print_pre($_REQUEST); + if($Action) echo "Kernel Action [$Action]
\n"; } +if( defined('DEBUG_ACTIONS') && (DEBUG_ACTIONS & SHOW_REQUEST) == SHOW_REQUEST ) +{ + // don't show debug output in tree & header of admin & while logging in + $script = basename($_SERVER['PHP_SELF']); + $skip_debug = Array('index.php','tree.php','head.php'); + if( !in_array($script, $skip_debug) ) + { + echo "ScriptName: $script (".dirname($_SERVER['PHP_SELF']).")

"; + echo ''; + echo ''; + + foreach($_REQUEST as $key => $value) + { + if( trim($value) == '' ) $value = ' '; + $src = isset($_GET[$key]) ? 'GE' : (isset($_POST[$key]) ? 'PO' : (isset($_COOKIE[$key]) ? 'CO' : '?') ); + echo ''; + } + echo '
SrcNameValue
'.$src.''.$key.''.$value.'
'; + } + unset($script, $skip_debug); +} + switch($Action) { case "m_add_user": @@ -279,6 +299,7 @@ if($_POST["CatEditStatus"] != -1) { + $objSession->SetVariable('PermCache_UpdateRequired', 1); $GroupId = $_POST["GroupId"]; $CatId = $_POST["CategoryId"]; $Module = $_POST["Module"];