';
if ($totalpages > 1) {
echo '
';
echo '
';
if ($page != 1) {
$prev = $page - 1;
echo ' ';
}
$firstdotflag = 0;
$lastdotflag = 0;
for ($i = 1; $i <= $totalpages; $i++) {
if ($page - $i < 4 && $page - $i > -4 || $i == 1 || $i == $totalpages) {
if ($page == $i) {
echo ''.$i.' ';
} else {
echo ''.$i.' ';
}
} elseif ($page - $i >= 4 && $firstdotflag == 0) {
echo ".. ";
$firstdotflag = 1;
} elseif ($page - $i <= -4 && $lastdotflag == 0) {
echo ".. ";
$lastdotflag = 1;
}
}
if ($page != $totalpages) {
$next = $page + 1;
echo '';
}
echo '';
echo '
';
}
if ($incbanner == '1') {
echo '';
echo '
Part of the Lainchan Webring.
';
echo '
';
echo '
';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo '';
echo 'Clearnet: | ';
echo '< | ';
echo '? | ';
echo '> | ';
echo '
';
echo '';
echo 'Onion: | ';
echo '< | ';
echo '? | ';
echo '> | ';
echo '
';
echo '';
echo '
';
echo '
';
}
echo '';
}
require $root."includes/archive.php";
if (!isset($includearr)) {
echo '';
echo 'Looks like there\'s nothing here yet.
That\'s probably not good.';
echo '
Return';
echo '
';
} elseif (isset($_GET['post']) && $_GET['post'] == 'archive') {
archive($includearr);
} else {
$incbanner = 0;
numberLinks($page,$totalpages, $incbanner);
while ($inc <= $incend && $inc < sizeof($includearr)) {
include $root."includes/section-start.php";
include $includearr[$inc][0];
include $root."includes/section-end.php";
if ($stype == 3) {
$stype = 1;
} else {
$stype = $stype + 1;
}
$inc++;
}
archiveLink();
$incbanner = 0;
numberLinks($page,$totalpages, $incbanner);
echo '';
}
?>