sorry im too tired to write a git log so just know that i did some shit to sts okay? thanks! <3

master
whotookelburg 1 year ago
parent b201dbfc75
commit 8f0b94bd6c

@ -1,8 +1,3 @@
aboutpage_a = '<hr><a href="%s">%s</a>: %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 = '&emsp;%s&emsp;(<a href="mailto:%s">email</a>)'
interactions_adv_aboutx = "About $"
interactions_basic_about = "About"
interactions_basic_cancel = "Cancel"

@ -1,6 +1,7 @@
<?php
<?php require 'src/loadEnv.php';
if(!$_GET && !$_POST){
http_response_code(400);
include 'src/debug/dumpSuperGlobals.php';
die;
}
if($_GET['content']=='aboutserver'){
@ -12,5 +13,7 @@
echo $out;
echo '</body></html>';
die;
}else{
include 'src/debug/dumpSuperGlobals.php';
}
?>

@ -1,4 +1,5 @@
<?php require 'src/loadEnv.php';?>-
<?php require 'src/loadEnv.php';?>
<!--<?php $_SERVER['HTTP_USER_AGET'];?>-->
<html>
<head>
<title><?php echo $cfg['META']['name']; ?></title>

@ -0,0 +1,118 @@
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Value</th>
</tr>
<?php
$femboysAreCute=true;
$_SERVER;$_REQUEST;$_SESSION;$_ENV;
function calcRows($str){
return preg_match_all("/\n/",$str)+1;
}
function calcCols($str){
$cur=0;
$top=0;
foreach(mb_str_split($str) as $char){
if ($char=="\n"){
$cur=0;
}else{
$cur++;
if ($cur>=$top){
$top=$cur;
}
}
}
return $top;
}
function row($k,$v){
// echo "<!--\trow() called!\t\$k:\t$k\t\t\$v:\t$v\t-->\n";
echo "<tr>\n";
echo "\t<td>$k</td>\n";
echo sprintf("\t<td>%s</td>\n",gettype($v));
echo "\t<td>";
if (gettype($v)=="string"){
echo "<textarea rows=\"".calcRows($v)."\" cols=\"".calcCols($v)."\" readonly=\"true\">$v</textarea>";
}elseif (gettype($v)=="array"){
echo "";
}elseif (gettype($v)=="boolean"){
echo "<font style=\"color:";
if ($v){
echo "green\">True";
}else{
echo "red\">False";
}
echo "</font>";
}else{
echo $v;
}
echo "</td>\n</tr>\n";
}
function loop($kn,$a){
// echo "<!--\tloop() called!\t\$kn:\t$kn\t\t\$a:\t$a\t-->\n";
foreach ($a as $key => $val) {
// echo "<!--\tforeach() called!\t\$key:\t$key\t\t\t\$val:\t$val\t-->\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<tr>";
// 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<tr>";
// 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<tr>";
// 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<tr>";
// 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<tr>";
// 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<tr>";
// 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<tr>";
// echo $b."\$_ENV".$c."td>";
// echo $b.$key.$c."td>";
// echo $b.$val.$c."td>\n";
// echo "\t".$c."tr>\n";
// }
?>
</table>

@ -0,0 +1,5 @@
<?php
function &parseUserAgent(ua_string): ?string {
}
?>

@ -1,3 +1,8 @@
# aboutpage_a = '<hr><a href="%s">%s</a>: %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 = '&emsp;%s&emsp;(<a href="mailto:%s">email</a>)'
<?php
function &genAbout($language): ?string{
$strings=array_merge(

Loading…
Cancel
Save