Index: trunk/kernel/action.php =================================================================== diff -u -r787 -r817 --- trunk/kernel/action.php (.../action.php) (revision 787) +++ trunk/kernel/action.php (.../action.php) (revision 817) @@ -5,7 +5,7 @@ $AdminLogin = admin_login(); if( defined('DEBUG_ACTIONS') && (DEBUG_ACTIONS & KERNEL_ACTIONS) == KERNEL_ACTIONS && $AdminLogin ) { - if($Action) echo 'Kernel Action ['.$Action."]
\n"; + if($Action) $debugger->appendHTML('Kernel Action: '.$Action.''); } if( defined('DEBUG_ACTIONS') && (DEBUG_ACTIONS & SHOW_REQUEST) == SHOW_REQUEST && $AdminLogin ) @@ -15,24 +15,28 @@ $skip_debug = Array('index.php','tree.php','head.php','credits.php'); if( !in_array($script, $skip_debug) ) { - //echo 'Open This File
'; - echo "ScriptName: $script (".dirname($_SERVER['PHP_SELF']).")

"; - $div_height = (count($_REQUEST)+1)*26; - if($div_height > 300) $div_height = 300; - echo '
'; - echo ''; - echo ''; + $debugger->appendHTML('ScriptName: '.$script.' ('.dirname($_SERVER['PHP_SELF']).')'); + $requestTable = '
SrcNameValue
+ '; foreach($_REQUEST as $key => $value) { - if( !is_array($value) && trim($value) == '' ) $value = ' '; + if( !is_array($value) && trim($value) == '' ) + { + $value = 'no value'; + } + else + { + $value = htmlspecialchars(print_r($value, true)); + } $src = isset($_GET[$key]) ? 'GE' : (isset($_POST[$key]) ? 'PO' : (isset($_COOKIE[$key]) ? 'CO' : '?') ); - echo ''; + $requestTable .= ''; } - echo '
SrcNameValue
'.$src.''.$key.''.print_r($value, true).'
'.$src.''.$key.''.$value.'
'; + $requestTable .= ''; + $debugger->appendHTML($requestTable); echo 'Reload Frame
'; } - unset($script, $skip_debug); + unset($script, $skip_debug, $requestTable); } switch($Action)