sum stuff :3

This commit is contained in:
whotookelburg 2023-02-25 02:01:38 +00:00
parent aaa9eb154c
commit 369a66073b
6 changed files with 52 additions and 15 deletions

View file

@ -1,21 +1,35 @@
h1 {
text-align: center;
margin-top: 15%;
font-size: 14vw;
font-size: 11vw;
}
div {
white-space: nowrap;
width: auto;
display: block;
margin-left: 30%;
margin-right: 30%;
/*margin-left: 30%;
margin-right: 30%; */
line-height: 1.5;
}
div.quotebox {
width: fit-content;
display: block;
color: slateblue;
text-align: center;
border: 3px solid darkblue;
}
div.quotebox p#qoti{
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
input[type="submit"]{
/*margin: 0;*/
margin-right: 30;
text-align: center;
}
input[type="text"]{
width: 85%;
width: 43vw;
}

View file

@ -1,3 +1,4 @@
alerts_privacy_instance = "Despite %s being geared towards user privacy, this instance might not respect such values..."
interactions_adv_aboutx = "About $"
interactions_basic_about = "About"
interactions_basic_cancel = "Cancel"

View file

@ -5,7 +5,7 @@
die;
}
if($_GET['content']=='aboutserver'){
require 'src/pages/aboutPage.php';
require 'src/pages/modern/dynamic/aboutPage.php';
echo '<html><head>';
echo "<link rel=\"stylesheet\" href=\"assets/themes/".$_COOKIE['sts_theme']."/main.css\">";
echo '</head><body>';

View file

@ -56,7 +56,7 @@
// 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"){
if(gettype($val)=="array" or gettype($val)=="object"){
loop($kn."/\$".$key,$val);
}
}else{

View file

@ -1,14 +1,28 @@
<?php
<?php //require __DIR__.'/../../debug/dumpSuperGlobals.php';
echo "<h1 title=\"".$strings['misc_stslogohover']."\">".file_get_contents("data/misc/icon/html.html")."</h1><br>";
?>
<center>
<div class="searchbox">
<form id="searchbox">
<?php
echo "<div class=\"searchbox\"><form id=\"searchbox\">\n";
echo "<input class=\"sbox\" type=\"".$_COOKIE['sts_flags']['index']['sbox_type']."\" placeholder=\"".$strings['interactions_searcharea_hint']."\" name=\"query\">";
echo "<input type=\"submit\" action=\"search.php\" formmethod=\"get\" value=\"".$strings['interactions_basic_search']."\">\n";
echo "</form></div>"
echo "<input class=\"sbox\" type=\"".$_COOKIE['sts_flags']->any->sbox->input_type->__toString()."\" placeholder=\"".$strings['interactions_searcharea_hint']."\" name=\"query\">\n";
echo "\t<input type=\"submit\" action=\"search.php\" formmethod=\"get\" value=\"".$strings['interactions_basic_search']."\">\n";
?>
</form>
</div>
<div class="quotebox">
<p id="qtoi">
<?php
require __DIR__.'/../../privacyCheck.php';
if(checkPrivacy()){
echo sprintf($strings['alerts_privacy_instance'],$strings['meta_project_name']);
}
?>
</p>
</div>
</center>
<iframe style="position:absolute;bottom:30px;right:10px;" src="dynamicGen.php?content=aboutserver" width="376" height="276"></iframe>
<!--<iframe style="position:absolute;bottom:30px;right:10px;" src="dynamicGen.php?content=aboutserver" width="376" height="276"></iframe>-->
<div class="footer">
<div class="footeri right">
</div>

8
src/privacyCheck.php Normal file
View file

@ -0,0 +1,8 @@
<?php $GLOBALS;$_SERVER;$_REQUEST;$_SESSION;$_ENV;
function checkPrivacy(){
// check if host is replit
if(isset($_ENV['REPLIT_DB_URL'])){
return 1;
}
}
?>