diff --git a/html/do.php b/html/do.php index d668aa8e7..8fa3c80d8 100644 --- a/html/do.php +++ b/html/do.php @@ -78,73 +78,12 @@ $style_user=$http->post("style_user","string",$_SESSION[SESSION_KEY.'g_theme']); html_page_start($style_user); if ( DEBUGNOALYSS > 1 ) { -/** - * Debug Design - */ -echo <<Small -Medium -Large -X Large -EOF; - - ?> - - Memory Usage - - - - $_POST - - - - - $_GET - - - - $_REQUEST - - - - $_SESSION - - - - - $GLOBALS - - - - - - - - - 1 ) { + /** + * Debug Design + */ + debug_show_size(); + debug_show_request(); + debug_show_global(); +} //<--- if DEBUG $ac=new Database(); $hi=new HttpInput(); diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php index a6955346d..4c390adc3 100644 --- a/include/lib/ac_common.php +++ b/include/lib/ac_common.php @@ -1682,4 +1682,59 @@ function linkTo($p_url) } else { return $p_url; } -} \ No newline at end of file +} +function debug_show_size() +{ + echo <<Xtra Small +Small +Medium +Large +X Large +EOF; +} +/** + * @brief for development , show request (POST, GET) + * @return void + */ + function debug_show_request() { + $id=uniqid("debug"); + $title=\HtmlInput::title_box(_("REQUEST"),$id,"hide"); + ?> + + =$title?> + + Memory Usage + + + $_POST + + $_GET + =print_r($_GET)?> + $_REQUEST + =print_r($_REQUEST)?> + =\HtmlInput::button_hide($id)?> + + + + + =$title?> + $GLOBALS + =print_r($GLOBALS)?> + + =\HtmlInput::button_hide($id)?> + + +
- - -
- -
=print_r($_GET)?>
=print_r($_REQUEST)?>
=print_r($GLOBALS)?>