more shit
This commit is contained in:
parent
3d93375bf4
commit
443887dc10
13 changed files with 170 additions and 24 deletions
44
index.php
44
index.php
|
@ -1,15 +1,43 @@
|
|||
<?php
|
||||
// load config
|
||||
$cfg=parse_ini_file("serve.ini", true);
|
||||
|
||||
// load locale
|
||||
#$lang=locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
|
||||
$lang="en_US";
|
||||
$strings=parse_ini_file("data/locale/".$lang."/strings/main.ini");
|
||||
|
||||
// cookies
|
||||
if(!isset($_COOKIE['sts_theme'])){
|
||||
setcookie('sts_theme','default');
|
||||
$_COOKIE['sts_theme'] = 'default';
|
||||
}
|
||||
if(!isset($_COOKIE['sts_scripting'])){
|
||||
setcookie('sts_scripting','none');
|
||||
$_COOKIE['sts_scripting'] = 'none';
|
||||
}
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title><?</title>
|
||||
<title><?php echo $cfg['META']['name']; ?></title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<?php
|
||||
echo "<link rel=\"stylesheet\" href=\"assets/themes/".$_COOKIE['sts_theme']."/main.css\">";
|
||||
echo "<link rel=\"stylesheet\" href=\"assets/themes/".$_COOKIE['sts_theme']."/index.css\">";
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<?php echo '<p>Hello World</p>'; ?>
|
||||
<?php
|
||||
echo "<h1 title=\"".$strings['misc_stslogohover']."\">".file_get_contents("data/misc/icon/html.html")."</h1><br>";
|
||||
?>
|
||||
<?php
|
||||
echo "<div class=\"searchbox\"><form id=\"searchbox\">\n";
|
||||
echo "<input class=\"sbox\" type=\"text\" placeholder=\"".$strings['interactions_searcharea_hint']."\" name=\"query\">";
|
||||
echo "<input type=\"submit\" value=\"".$strings['interactions_basic_search']."\">\n";
|
||||
echo "</form></div>"
|
||||
?>
|
||||
|
||||
<!--
|
||||
This script places a badge on your repl's full-browser view back to your repl's cover
|
||||
page. Try various colors for the theme: dark, light, red, orange, yellow, lime, green,
|
||||
teal, blue, blurple, magenta, pink!
|
||||
-->
|
||||
<script src="https://replit.com/public/js/replit-badge.js" theme="blue" defer></script>
|
||||
<iframe style="position:absolute;bottom:30px;right:10px;" src="dynamicGen.php?content=aboutserver" width="376" height="276"></iframe>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue