\n";
$cpt_debug++;
echo "
Variables envoyées en POST: ";
if(count($_POST)==0) {
echo "aucune";
}
else {
echo "(*)";
}
echo "
\n";
echo "
\n";
echo "\n";
$cpt_debug++;
echo "\n";
/*
echo "
\n";
foreach($_POST as $post => $val){
//echo "\$_POST['".$post."']=".$val."
\n";
//echo "\$_POST['".$post."']= | ".$val." |
\n";
echo "\$_POST['".$post."']= | ".$val;
if(is_array($_POST[$post])) {
echo " (*)";
echo "\n";
foreach($_POST[$post] as $key => $value) {
echo "\$_POST['$post'][$key]= | $value | \n";
}
echo " \n";
//echo "\n";
$cpt_debug++;
}
echo " |
\n";
}
echo "
\n";
*/
function tab_debug_var($chaine_tab_niv1,$tableau,$pref_chaine,$cpt_debug) {
//global $cpt_debug;
global $debug_var_count;
echo " (
*)\n";
echo "
\n";
foreach($tableau as $post => $val) {
echo "".$pref_chaine."['".$post."']= | ".$val;
if(is_array($tableau[$post])) {
tab_debug_var($chaine_tab_niv1,$tableau[$post],$pref_chaine.'['.$post.']',$cpt_debug);
$cpt_debug++;
}
elseif(isset($debug_var_count[$chaine_tab_niv1])) {
$debug_var_count[$chaine_tab_niv1]++;
}
echo " |
\n";
}
echo "
\n";
}
echo "
\n";
foreach($_POST as $post => $val) {
echo "\$_POST['".$post."']= | ".$val;
if(is_array($_POST[$post])) {
tab_debug_var('POST',$_POST[$post],'$_POST['.$post.']',$cpt_debug);
$cpt_debug++;
}
else {
$debug_var_count['POST']++;
}
echo " |
\n";
}
echo "
\n";
echo "
Nombre de valeurs en POST: ".$debug_var_count['POST']."
\n";
echo "
\n";
echo "
\n";
echo "
Variables envoyées en GET: ";
if(count($_GET)==0) {
echo "aucune";
}
else {
echo "(*)";
}
echo "
\n";
echo "
\n";
echo "\n";
$cpt_debug++;
echo "
";
foreach($_GET as $get => $val){
//echo "\$_GET['".$get."']=".$val."
\n";
//echo "\$_GET['".$get."']= | ".$val." |
\n";
echo "\$_GET['".$get."']= | ".$val;
if(is_array($_GET[$get])) {
tab_debug_var('GET',$_GET[$get],'$_GET['.$get.']',$cpt_debug);
$cpt_debug++;
}
else {
$debug_var_count['GET']++;
}
echo " |
\n";
}
echo "
\n";
echo "
\n";
echo "
\n";
echo "
Variables envoyées en SESSION: ";
if(count($_SESSION)==0) {
echo "aucune";
}
else {
echo "(*)";
}
echo "
\n";
echo "
\n";
echo "\n";
$cpt_debug++;
echo "
";
foreach($_SESSION as $variable => $val){
//echo "\$_SESSION['".$variable."']=".$val."
\n";
echo "\$_SESSION['".$variable."']= | ".$val." |
\n";
}
echo "
\n";
echo "
\n";
echo "
\n";
echo "
Variables envoyées en SERVER: ";
if(count($_SERVER)==0) {
echo "aucune";
}
else {
echo "(*)";
}
echo "
\n";
echo "
\n";
echo "\n";
$cpt_debug++;
echo "
";
foreach($_SERVER as $variable => $valeur){
//echo "\$_SERVER['".$variable."']=".$valeur."
\n";
echo "\$_SERVER['".$variable."']= | ".$valeur." |
\n";
}
echo "
\n";
echo "
\n";
echo "
\n";
echo "
Variables envoyées en FILES: ";
if(count($_FILES)==0) {
echo "aucune";
}
else {
echo "(*)";
}
echo "
\n";
echo "
\n";
echo "\n";
$cpt_debug++;
echo "
\n";
foreach($_FILES as $key => $val) {
echo "\$_FILES['".$key."']= | ".$val;
if(is_array($_FILES[$key])) {
tab_debug_var('FILES',$_FILES[$key],'$_FILES['.$key.']',$cpt_debug);
$cpt_debug++;
}
echo " |
\n";
}
echo "
\n";
echo "
\n";
echo "
\n";
echo "
Variables COOKIES: ";
if(count($_COOKIE)==0) {
echo "aucune";
}
else {
echo "(*)";
}
echo "
\n";
echo "
\n";
echo "\n";
$cpt_debug++;
echo "
";
foreach($_COOKIE as $get => $val){
echo "\$_COOKIE['".$get."']= | ".$val;
if(is_array($_COOKIE[$get])) {
tab_debug_var('COOKIE',$_COOKIE[$get],'$_COOKIE['.$get.']',$cpt_debug);
$cpt_debug++;
}
else {
$debug_var_count['COOKIE']++;
}
echo " |
\n";
}
echo "
\n";
echo "
\n";
echo "
\n";
echo "\n";
echo "