website

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

commit 0ea6036a75d8e98561ca77cbccc378edca8c10d4
parent f13811c9b0212c379a394c069d1ecf7e28e2ee82
Author: Nixx <nixx@firemail.cc>
Date:   Sat, 26 Sep 2020 21:31:04 +0100

Changed page listing from prev/next to first/last

Diffstat:
Mincludes/listing-content.php | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/includes/listing-content.php b/includes/listing-content.php @@ -17,8 +17,9 @@ echo '<div class="section numlist">'; echo '<span class="homesubmessage"><b>'; if ($page != 1) { - $prev = $page - 1; - echo '<a href="'.$curfile.'?page='.$prev.'">Previous</a> < '; + #$prev = $page - 1; + #echo '<a href="'.$curfile.'?page='.$prev.'">Previous</a> < '; + echo '<a href="'.$curfile.'">First</a> < '; } $firstdotflag = 0; $lastdotflag = 0; @@ -38,8 +39,9 @@ } } if ($page != $totalpages) { - $next = $page + 1; - echo '> <a href="'.$curfile.'?page='.$next.'">Next</a>'; + #$next = $page + 1; + #echo '> <a href="'.$curfile.'?page='.$next.'">Next</a>'; + echo '> <a href="'.$curfile.'?page='.$totalpages.'">Last</a>'; } echo '</b></span>'; echo '</div>';