website

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

commit 3dbde7db288941be4ace91f949dd7f50183860ee
parent 9cf83b5f99f00ebf80d838d3ba22e1b962166624
Author: Nixx <nixx@firemail.cc>
Date:   Fri, 13 Nov 2020 15:22:02 +0000

Removing page links when only one page in index

Diffstat:
Aimages/backgrounds/stars-bg.gif | 0
Aimages/head6.gif | 0
Mincludes/aside.php | 2+-
Mincludes/listing-content.php | 12+++++-------
4 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/images/backgrounds/stars-bg.gif b/images/backgrounds/stars-bg.gif Binary files differ. diff --git a/images/head6.gif b/images/head6.gif Binary files differ. 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"); +$heads = array("head.gif", "head2.gif", "head3.gif", "head4.gif", "head5.gif", "head6.gif"); $usehead = array_rand($heads); function asideLink ($linkname, $page, $root) { diff --git a/includes/listing-content.php b/includes/listing-content.php @@ -14,6 +14,7 @@ function numberLinks ($page, $totalpages, $incbanner) { $curfile = $_SERVER['PHP_SELF']; echo '<center>'; + if ($totalpages > 1) { echo '<div class="section numlist">'; echo '<span class="homesubmessage"><b>'; if ($page != 1) { @@ -45,18 +46,15 @@ } echo '</b></span>'; echo '</div>'; - if ($incbanner == '1') { - echo '<img src="/images/banner.gif" class="banner" />'; - } + } + if ($incbanner == '1') { + echo '<a href="/Other/lainchanwebring.php"><img src="/images/banner.gif" class="banner" /></a>'; + } echo '</center>'; } require $root."includes/archive.php"; - /*if ($root == "../../") { - $indexfile = "home.php"; - }*/ - if (!isset($includearr)) { echo '<div class="section nothinghere">'; echo 'Looks like there\'s nothing here yet. <br /><span class="notgood">That\'s probably not good.</span>';