website

Code for the bare sturcture of concealed.world.
git clone git://git.concealed.world/website
Log | Files | Refs | README | LICENSE

commit 37195fd40c95eadb012d3eebef16f5b6892ee854
parent 3dbde7db288941be4ace91f949dd7f50183860ee
Author: Nixx <nixx@firemail.cc>
Date:   Wed,  2 Dec 2020 16:20:04 +0000

Depreciating the 'center' tag, and some much-needed housekeeping

Diffstat:
M404.php | 4++--
Aimages/backgrounds/lake-bg.gif | 0
Aimages/backgrounds/window-bg.gif | 0
Aimages/head7.gif | 0
Mincludes/archive.php | 24+++++++++++-------------
Mincludes/article-start.php | 52+++++++++++++++++++++++++---------------------------
Mincludes/aside.php | 16++++++++--------
Mincludes/blogpanel.php | 7++-----
Mincludes/end.php | 8++++----
Mincludes/formatindex.php | 6+++---
Mincludes/homepanel.php | 24+++++++++++-------------
Mincludes/listing-content.php | 6+++---
Mincludes/start-meta.php | 9++++-----
Mincludes/subdirs.php | 4+---
Mindex.php | 4++--
Mmobile-menu.php | 8+++-----
Mscrollbar.php | 4++--
Mstyles/default.css | 9++++++++-
18 files changed, 89 insertions(+), 96 deletions(-)

diff --git a/404.php b/404.php @@ -11,7 +11,7 @@ <marquee scrollamount="10"> <h1>Uh oh</h1> </marquee> - <center> + <div style="text-align: center; margin-left: auto; margin-right: auto;"> <span class="notfound">404 - Not Found</span> <p>There is nothing here.</p> <p>We appear to be lost.</p> @@ -22,5 +22,5 @@ </a> <a href="/home.php"><img src="/images/404.png" /></a> </div> - </center> + </div> </body> diff --git a/images/backgrounds/lake-bg.gif b/images/backgrounds/lake-bg.gif Binary files differ. diff --git a/images/backgrounds/window-bg.gif b/images/backgrounds/window-bg.gif Binary files differ. diff --git a/images/head7.gif b/images/head7.gif Binary files differ. diff --git a/includes/archive.php b/includes/archive.php @@ -1,17 +1,15 @@ <?php function archiveLink () { - echo '<center>'; - echo '<div class="section numlist">'; - echo '<span class="homesubmessage"><b>'; - $file = $_SERVER['PHP_SELF']; - if ($file == "/home.php") { - echo '<a href="'.$file.'?post=archive">Search All Posts</a>'; - } else { - echo '<a href="'.$file.'?post=archive">Search All Posts in '.$_SESSION['title'].'</a>'; - } - echo '</b></span>'; - echo '</div>'; - echo '</center>'; + echo '<div class="section numlist centre">'; + echo '<span class="homesubmessage"><b>'; + $file = $_SERVER['PHP_SELF']; + if ($file == "/home.php") { + echo '<a href="'.$file.'?post=archive">Search All Posts</a>'; + } else { + echo '<a href="'.$file.'?post=archive">Search All Posts in '.$_SESSION['title'].'</a>'; + } + echo '</b></span>'; + echo '</div>'; } function archive ($includearr) { @@ -58,7 +56,7 @@ function archive ($includearr) { echo '</tr>'; } echo '</table>'; - echo '</center>'; + echo '</div>'; echo '</div>'; } ?> diff --git a/includes/article-start.php b/includes/article-start.php @@ -10,34 +10,32 @@ echo '<body>'; require "".$root."includes/aside.php"; echo '</div>'; echo '<div class="content">'; - echo '<center>'; - echo '<div class="section upperdirs">'; - echo '<span class="homesubmessage"><b>'; - $dirs = explode("/usr/share/nginx/html/", getcwd())[1]; - $dirs = explode("/", $dirs); - echo '<a href="'.$root.'home.php">Home</a>'; - $newroot = $root; - $i = 0; - foreach ($dirs as $di) { - if ($i < sizeof($dirs)) { - echo ' > '; - } - $i++; - # Start handling for using top bar on Other pages - $diname = $di; - $newrootname = $newroot; - if ($di == "Other") { - $newrootname = ""; - $di = ""; - $indexfile = "other.php"; - } - echo '<a href="'.$newrootname.$di.'/'.$indexfile.'">'.$diname.'</a> '; - # End handling - $newroot = substr($newroot, 0, -3); + echo '<div class="section upperdirs centre">'; + echo '<span class="homesubmessage"><b>'; + $dirs = explode("/usr/share/nginx/html/", getcwd())[1]; + $dirs = explode("/", $dirs); + echo '<a href="'.$root.'home.php">Home</a>'; + $newroot = $root; + $i = 0; + foreach ($dirs as $di) { + if ($i < sizeof($dirs)) { + echo ' > '; } - echo '</b></span>'; - echo '</div>'; - echo '</center>'; + $i++; + # Start handling for using top bar on Other pages + $diname = $di; + $newrootname = $newroot; + if ($di == "Other") { + $newrootname = ""; + $di = ""; + $indexfile = "other.php"; + } + echo '<a href="'.$newrootname.$di.'/'.$indexfile.'">'.$diname.'</a> '; + # End handling + $newroot = substr($newroot, 0, -3); + } + echo '</b></span>'; + echo '</div>'; echo '<div class="article">'; echo '<a href="#" autofocus tabindex="1"></a>'; ?> diff --git a/includes/aside.php b/includes/aside.php @@ -5,7 +5,7 @@ if (!$root) { $returnlink = $root; } $indexfile = "_index.php"; -$heads = array("head.gif", "head2.gif", "head3.gif", "head4.gif", "head5.gif", "head6.gif"); +$heads = array("head.gif", "head2.gif", "head3.gif", "head4.gif", "head5.gif", "head6.gif", "head7.gif"); $usehead = array_rand($heads); function asideLink ($linkname, $page, $root) { @@ -26,7 +26,7 @@ function asideSubLink ($linkname, $root, $indexfile) { } } -echo '<div class="asidehomeimage"><center><a href="'.$root.'home.php"><img src="'.$root.'images/'.$heads[$usehead].'" alt="Go Home" /></a></center></div>'; +echo '<div class="asidehomeimage centre"><a href="'.$root.'home.php"><img src="'.$root.'images/'.$heads[$usehead].'" alt="Home" /></a></div>'; echo '<span class="asidehometext"><a href="'.$root.'home.php">Home</a></span>'; echo '<ul>'; echo '<ul class="blogbox">'; @@ -44,11 +44,11 @@ echo '<ul>'; asideLink('Other', 'other.php', $root); echo '<li class="asideitem"><a href="'.$returnlink.'">Return</a></li>'; echo '</ul>'; -echo '<center>'; - echo '<a href="https://concealed.world/rss.xml" target="_blank"><img class="asidebottomimage" src="'.$root.'images/rss.png" /></a>'; - echo '<a href="https://git.concealed.world" target="_blank"><img class="asidebottomimage" src="'.$root.'images/git.png" /></a>'; -echo '</center>'; -echo '<center>'; +echo '<div class="centre">'; + echo '<a href="https://concealed.world/rss.xml" target="_blank"><img class="asidebottomimage" src="'.$root.'images/rss.png" alt="RSS" /></a>'; + echo '<a href="https://git.concealed.world" target="_blank"><img class="asidebottomimage" src="'.$root.'images/git.png" alt="Git Server" /></a>'; +echo '</div>'; +echo '<div class="centre">'; echo '<p class="coloureditalic asidebottomtext"><b>Minetest</b>: concealed.world:30000</p>'; -echo '</center>'; +echo '</div>'; ?> diff --git a/includes/blogpanel.php b/includes/blogpanel.php @@ -1,18 +1,15 @@ <?php if ($_GET['post'] != 'archive'){ - echo '<center>'; - echo '<div class="section homesection">'; + echo '<div class="section homesection centre">'; echo '<a href="'.$indexfile.'">'; echo '<span class="homemessage">'.$message.'</span>'; echo '</a>'; echo '<br />'; echo '<span class="homesubmessage">'.$submessage.'</span>'; echo '</div>'; - echo '</center>'; } else { $file = basename($_SERVER['PHP_SELF']); - echo '<div class="archivespan">'; - echo '<center>'; + echo '<div class="archivespan centre">'; echo '<div class="section archivereturn">'; echo '<a href="'.$indexfile.'">'; echo '<span class="homemessage">Return to '.$message.'</span>'; diff --git a/includes/end.php b/includes/end.php @@ -1,12 +1,12 @@ <?php echo '</div>'; echo '<div class="bottom">'; - echo '<span class="bottomcell">'; + echo '<div class="bottomcell">'; echo '<p>BTC: <a href="bitcoin:18XfSy6o4uozbFdWN2ixTy1XZjt5jKxwkg">18XfSy6o4uozbFdWN2ixTy1XZjt5jKxwkg</a></p>'; - echo '</span>'; - echo '<span class="bottomcell">'; + echo '</div>'; + echo '<div class="bottomcell">'; echo '<p>Contact Me: <a href="mailto:nixx@firemail.cc">nixx@firemail.cc</a></p>'; - echo '</span>'; + echo '</div>'; echo '</div>'; echo '</body>'; echo '</html>'; diff --git a/includes/formatindex.php b/includes/formatindex.php @@ -2,11 +2,11 @@ if (isset($_GET['post']) == 1 && $_GET['post'] != 'archive') { require $root."includes/article-start.php"; if (!file_exists($_GET['post'])) { - echo '<div class="lostimg">'; - echo '<center><a class="lostimglink" href="/home.php">'; + echo '<div class="lostimg centre">'; + echo '<a class="lostimglink" href="/home.php">'; echo '<span class="largefont">404 - File Not Found. Press left mouse button to continue.<br /><br />'; echo 'Guru Meditation #4C4F5354.46494C45</span>'; - echo '</a></center>'; + echo '</a>'; echo '</div>'; } else { require $_GET['post']; diff --git a/includes/homepanel.php b/includes/homepanel.php @@ -1,29 +1,27 @@ <?php if ($_GET['post'] != 'archive') { if (!preg_match('/page/', $_SERVER['QUERY_STRING']) || $_SERVER['QUERY_STRING'] == 'page=1') { - $message = "Nixx's Weird Blog-thing"; + $message = "Nixx's Blog"; $submessages = array("Welcome to my Magical Realm.", "Presently not Experiencing an Outage!", "Banished to /dev/null.", "The Internet is Serious Business."); $motd = array_rand($submessages); - echo '<center>'; - echo '<div class="section homesection">'; - echo '<a href="'.$root.'home.php">'; - echo '<img class="homelargeimg" src="'.$root.'images/front.gif" alt="Front Page" />'; - echo '<img class="homesmallimg" src="'.$root.'images/frontsmall.gif" alt="Front Page" />'; - echo '<span class="homemessage">'.$message.'</span>'; - echo '</a>'; - echo '<br />'; - echo '<span class="homesubmessage">'.$submessages[$motd].'</span>'; - echo '</div>'; - echo '</center>'; + echo '<div class="section homesection centre">'; + echo '<a href="'.$root.'home.php">'; + echo '<img class="homelargeimg" src="'.$root.'images/front.gif" alt="Welcome Image - Large" />'; + echo '<img class="homesmallimg" src="'.$root.'images/frontsmall.gif" alt="Welcome Image - Small" />'; + echo '<span class="homemessage">'.$message.'</span>'; + echo '</a>'; + echo '<br />'; + echo '<span class="homesubmessage">'.$submessages[$motd].'</span>'; + echo '</div>'; } } else { $file = basename($_SERVER['PHP_SELF']); echo '<div class="archivespan">'; - echo '<center>'; + echo '<div class="centre">'; echo '<div class="section archivereturn">'; echo '<a href="home.php">'; echo '<span class="homemessage">Return Home</span>'; diff --git a/includes/listing-content.php b/includes/listing-content.php @@ -13,7 +13,7 @@ function numberLinks ($page, $totalpages, $incbanner) { $curfile = $_SERVER['PHP_SELF']; - echo '<center>'; + echo '<div class="centre">'; if ($totalpages > 1) { echo '<div class="section numlist">'; echo '<span class="homesubmessage"><b>'; @@ -48,9 +48,9 @@ echo '</div>'; } if ($incbanner == '1') { - echo '<a href="/Other/lainchanwebring.php"><img src="/images/banner.gif" class="banner" /></a>'; + echo '<a href="/Other/lainchanwebring.php"><img src="/images/banner.gif" class="banner" alt="Banner" /></a>'; } - echo '</center>'; + echo '</div>'; } require $root."includes/archive.php"; diff --git a/includes/start-meta.php b/includes/start-meta.php @@ -1,12 +1,11 @@ <?php $_SESSION['title'] = $title; -echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'; -echo '<html xmlns="http://www.w3.org/1999/xhtml">'; +echo '<!DOCTYPE html>'; +echo '<html lang="en">'; echo '<head>'; echo '<title>'.$title.'</title>'; - echo '<meta name="description" content="concealed.world - '.$title.'"></meta>'; - echo '<meta name="keywords" content="'.$tags.'"></meta>'; + echo '<meta name="description" content="concealed.world - '.$title.'" />'; + echo '<meta name="keywords" content="'.$tags.'" />'; echo '<meta name="viewport" content="width=device-width, initial-scale=1.0" />'; echo '<link rel="icon" type="image/x-icon" href="'.$root.'favicon.ico" />'; ?> diff --git a/includes/subdirs.php b/includes/subdirs.php @@ -1,6 +1,5 @@ <?php - echo '<center>'; - echo '<div class="section subdirs">'; + echo '<div class="section subdirs centre">'; echo '<span class="homesubmessage"><b>'; if ($root == "../") { foreach ($scanfiles as $link) { @@ -29,5 +28,4 @@ } echo '</b></span>'; echo '</div>'; - echo '</center>'; ?> diff --git a/index.php b/index.php @@ -7,7 +7,7 @@ require $root."includes/start-meta.php"; <link rel="stylesheet" href="styles/splash.css" /> <link rel="stylesheet" href="styles/fonts.css" /> <link rel="stylesheet" href="styles/cursor.css" /> - <style> + <style type="text/css"> html, body {margin: 0; height: 100%; overflow: hidden} </style> </head> @@ -17,7 +17,7 @@ require $root."includes/start-meta.php"; <?php $usragent=$_SERVER['HTTP_USER_AGENT']; if (!strpos($usragent, 'PaleMoon') !== false) { - echo '<a href="scrollbar.php" style="position: absolute; right: 10px; bottom: 10px;">Display Scrollbar on this Site</a>'; + echo '<p style="position: absolute; right: 10px; bottom: 10px;"><a href="scrollbar.php">Display Scrollbar on this Site</a></p>'; } ?> </body> diff --git a/mobile-menu.php b/mobile-menu.php @@ -5,10 +5,8 @@ $tags="mobile"; require "includes/start.php"; ?> <body> - <center> - <div class="mobilemenu"> - <?php require "includes/aside.php"; ?> - </div> - </center> + <div class="mobilemenu centre"> + <?php require "includes/aside.php"; ?> + </div> </body> <?php require "includes/end.php"; ?> diff --git a/scrollbar.php b/scrollbar.php @@ -15,7 +15,7 @@ require $root."includes/start-meta.php"; <body> <h1>Display Scrollbar on this Site</h1> - <center><div style="width: 80%;"> + <div style="width: 80%; text-align: center; margin-left: auto; margin-right: auto;"> <p>This site hides the scrollbar by default as a stylistic choice.</p> <p>I have found Pale Moon cannot properly render my site because of this. I have attempted to fix this via detecting their user-agent and serving specific CSS, but some users may spoof their user-agent. If you are one of these people, or you use a browser I'm not aware of with the same problem, or you just like it better with one - using this allows you to view the site normally, with a scrollbar.</p> @@ -25,6 +25,6 @@ require $root."includes/start-meta.php"; <p>You can unset this option by entering 'document.cookies="scrollbar=false"' into your browser's JavaScript console, or otherwise clearing the cookies. It will automatically expire 30 days after your last visit of this page.</p> <a style="font-size: 1.8em;" href="home.php">Continue to Homepage</a> - </div></center> + </div> </body> </html> diff --git a/styles/default.css b/styles/default.css @@ -12,7 +12,7 @@ body { background: url("/includes/bg.php") no-repeat var(--bg-col); background-attachment: fixed; - background-position: bottom; + background-position: bottom left; } ul { @@ -454,6 +454,13 @@ input[type="submit" i] { width: 240px; } +.centre { + text-align: center; + text-align: -webkit-center; + margin-left: auto; + margin-right: auto; +} + /* POST TEXT GLOWS .section > p, .article > p { text-shadow: 0 0 3px var(--fg-col);