Changed Mainpage_amount and pagelink

$mainpage_amount = 0 for show all entries
more flexible $next_page_link