From 8f0b94bd6c27f3a8580d0b6a39a6820f6558af62 Mon Sep 17 00:00:00 2001 From: whotookelburg <> Date: Fri, 24 Feb 2023 08:28:19 +0000 Subject: [PATCH] sorry im too tired to write a git log so just know that i did some shit to sts okay? thanks! <3 --- data/locale/en_US.ini | 5 -- data/regex/decodeUA/w3m.regex | 1 + dynamicGen.php | 5 +- index.php | 3 +- src/debug/dumpSuperGlobals.php | 118 +++++++++++++++++++++++++ src/determineBrowser.php | 5 ++ src/error.php | 0 src/pages/modern/dynamic/aboutPage.php | 5 ++ 8 files changed, 135 insertions(+), 7 deletions(-) create mode 100644 data/regex/decodeUA/w3m.regex create mode 100644 src/debug/dumpSuperGlobals.php create mode 100644 src/determineBrowser.php create mode 100644 src/error.php diff --git a/data/locale/en_US.ini b/data/locale/en_US.ini index 89dfc7b..c1984ab 100644 --- a/data/locale/en_US.ini +++ b/data/locale/en_US.ini @@ -1,8 +1,3 @@ -aboutpage_a = '
%s: %s' -aboutpage_b = 'running v%s' -aboutpage_ca = 'if there are problems with this page or any other page, contact' -aboutpage_cb = 'if there are problems with this page or any other page, contact either' -aboutpage_d = ' %s (email)' interactions_adv_aboutx = "About $" interactions_basic_about = "About" interactions_basic_cancel = "Cancel" diff --git a/data/regex/decodeUA/w3m.regex b/data/regex/decodeUA/w3m.regex new file mode 100644 index 0000000..f37fb3a --- /dev/null +++ b/data/regex/decodeUA/w3m.regex @@ -0,0 +1 @@ +/^w3m/ \ No newline at end of file diff --git a/dynamicGen.php b/dynamicGen.php index a53b73b..2bb396c 100644 --- a/dynamicGen.php +++ b/dynamicGen.php @@ -1,6 +1,7 @@ -'; die; + }else{ + include 'src/debug/dumpSuperGlobals.php'; } ?> \ No newline at end of file diff --git a/index.php b/index.php index d563e5d..c36b9b8 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,5 @@ -- + + <?php echo $cfg['META']['name']; ?> diff --git a/src/debug/dumpSuperGlobals.php b/src/debug/dumpSuperGlobals.php new file mode 100644 index 0000000..e3bce20 --- /dev/null +++ b/src/debug/dumpSuperGlobals.php @@ -0,0 +1,118 @@ + + + + + + +=$top){ + $top=$cur; + } + } + } + + return $top; + } + function row($k,$v){ + // echo "\n"; + echo "\n"; + echo "\t\n"; + echo sprintf("\t\n",gettype($v)); + echo "\t\n\n"; + } + function loop($kn,$a){ + // echo "\n"; + foreach ($a as $key => $val) { + // echo "\n"; + if($key!="GLOBALS"){ + row($kn."/$".$key,$val); + if(gettype($val)=="array"){ + loop($kn."/\$".$key,$val); + } + }else{ + echo ""; + } + } + } + loop("\$GLOBALS",$GLOBALS); + // foreach ($_SERVER as $key => $val) { + // echo "\t"; + // echo $b."\$_SERVER".$c."td>"; + // echo $b.$key.$c."td>"; + // echo $b.$val.$c."td>\n"; + // echo "\t".$c."tr>\n"; + // } + // foreach ($_GET as $key => $val) { + // echo "\t"; + // echo $b."\$_GET".$c."td>"; + // echo $b.$key.$c."td>"; + // echo $b.$val.$c."td>\n"; + // echo "\t".$c."tr>\n"; + // } + // foreach ($_POST as $key => $val) { + // echo "\t"; + // echo $b."\$_POST".$c."td>"; + // echo $b.$key.$c."td>"; + // echo $b.$val.$c."td>\n"; + // echo "\t".$c."tr>\n"; + // } + // foreach ($_FILES as $key => $val) { + // echo "\t"; + // echo $b."\$_FILES".$c."td>"; + // echo $b.$key.$c."td>"; + // echo $b.$val.$c."td>\n"; + // echo "\t".$c."tr>\n"; + // } + // foreach ($_COOKIE as $key => $val) { + // echo "\t"; + // echo $b."\$_COOKIE".$c."td>"; + // echo $b.$key.$c."td>"; + // echo $b.$val.$c."td>\n"; + // echo "\t".$c."tr>\n"; + // } + // foreach ($_REQUEST as $key => $val) { + // echo "\t"; + // echo $b."\$_REQUEST".$c."td>"; + // echo $b.$key.$c."td>"; + // echo $b.$val.$c."td>\n"; + // echo "\t".$c."tr>\n"; + // } + // foreach ($_ENV as $key => $val) { + // echo "\t"; + // echo $b."\$_ENV".$c."td>"; + // echo $b.$key.$c."td>"; + // echo $b.$val.$c."td>\n"; + // echo "\t".$c."tr>\n"; + // } +?> +
KeyTypeValue
$k%s"; + if (gettype($v)=="string"){ + echo ""; + }elseif (gettype($v)=="array"){ + echo ""; + }elseif (gettype($v)=="boolean"){ + echo "True"; + }else{ + echo "red\">False"; + } + echo ""; + }else{ + echo $v; + } + echo "
\ No newline at end of file diff --git a/src/determineBrowser.php b/src/determineBrowser.php new file mode 100644 index 0000000..0422c85 --- /dev/null +++ b/src/determineBrowser.php @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/src/error.php b/src/error.php new file mode 100644 index 0000000..e69de29 diff --git a/src/pages/modern/dynamic/aboutPage.php b/src/pages/modern/dynamic/aboutPage.php index 74030ac..5ae7712 100644 --- a/src/pages/modern/dynamic/aboutPage.php +++ b/src/pages/modern/dynamic/aboutPage.php @@ -1,3 +1,8 @@ +# aboutpage_a = '
%s: %s' +# aboutpage_b = 'running v%s' +# aboutpage_ca = 'if there are problems with this page or any other page, contact' +# aboutpage_cb = 'if there are problems with this page or any other page, contact either' +# aboutpage_d = ' %s (email)'