I see the problem. The WEB page swallowed some slashes. Everywhere it says echo "n it should be echo "\n
Here is the complete function:
`function printPageListWithNav($prevtext, $nexttext, $nextprev=true, $class="pagelist", $id=NULL) {
echo "";
$total = getTotalPages();
$current = getCurrentPage();
echo "\n<ul class="$class">";
if ($nextprev) {
echo "\n <li class="prev">";
printPrevPageLink($prevtext, "Previous Page");
echo "</li>";
}
for ($i=($j=max(1, $current-2)); $i <= min($total, $j+5); $i++) {
echo "\n <li" . (($i == $current) ? " class="current"" : "") . ">";
printLink(getPageURL($i), $i, "Page $i" . (($i == $current) ? " (Current Page)" : ""));
echo "</li>";
}
if ($i < ($total-2)) {echo "n [*]<a>" . ". . ." . "</a>"; }
for ($i=max($i+1, $total-2); $i <= $total; $i++) {
echo "\n <li" . (($i == $current) ? " class="current"" : "") . ">";
printLink(getPageURL($i), $i, "Page $i" . (($i == $current) ? " (Current Page)" : ""));
echo "</li>";
}
if ($nextprev) {
echo "\n <li class="next">";
printNextPageLink($nexttext, "Next Page");
echo "</li>";
}
echo "\n</ul>";
echo "\nn";
}`
and copy the code from the included files.