//-------------------------------------------------------------------------------------
//-this script is copyright © 2001 by brian of xposure, all rights reserved
// +do NOT remove ANY of the copyright notices
// +do not take credit for making this scipt
// +do not distribute this script on your site, unless special permission by me
//--------------------------------------------------------------------------------------
$config = "config.php";
include $config;
?>
">
if ($show == "limit") {
$limits = $limit-1;
if ($max) {} else { $max="$limits"; }
if ($min) {} else { $min="0"; }
$tag = file ("entries.db");
$count = "0"; while (list ($key, $val) = each ($tag)) {
if ($key >= $min && $key <= $max) {
$old = fopen ("entries.db", "r");
$old2 = fread ($old, filesize ("entries.db"));
fclose ($old);
$tosplit = "|";
$contarr = explode($tosplit,$val);
$name = $contarr[0];
$comment = $contarr[1];
$website = $contarr[2];
$date = $contarr[3];
$ip = $contarr[4];
if ($website == "http://" || $website == "") {
echo "$name$spacer $comment
";
}
else {
echo "$name$spacer $comment
";
}
}
$count++;
}
if ($min > 0) {
$n_max = $max - 10;
$n_min = $min - 10;
}
if ($count > $max) {
$n_max = $max + 10;
$n_min = $min + 10;
}
}
if ($show == "all") {
$limits = $limit-1;
if ($max) {} else { $max="$limits"; }
if ($min) {} else { $min="0"; }
$tag = file ("entries.db");
$count = "0"; while (list ($key, $val) = each ($tag)) {
if ($key >= $min && $key <= $max) {
$old = fopen ("entries.db", "r");
$old2 = fread ($old, filesize ("entries.db"));
fclose ($old);
$tosplit = "|";
$contarr = explode($tosplit,$val);
$name = $contarr[0];
$comment = $contarr[1];
$website = $contarr[2];
$date = $contarr[3];
$ip = $contarr[4];
if ($website == "http://" || $website == "") {
echo "$name$spacer $comment
";
}
else {
echo "$name$spacer $comment
";
}
}
$count++;
}
echo "";
if ($count == "0") {
echo "there is 0 entries in total";
}
if ($count == "1") {
echo "there is 1 entry in total";
}
if ($count >= "2") {
echo "there is $count entries in total
";
}
if ($min > 0) {
$n_max = $max - $limit;
$n_min = $min - $limit;
echo "back ";
}
if ($count > $max) {
$n_max = $max + $limit;
$n_min = $min + $limit;
echo "more";
}
echo "
tagger version two";
}
?>