Set the current page.
$number: If provided, the page number will be set to this. If NOT provided, the page number will be set from the global page array.
function set_current_page($number = NULL) {
if (!is_numeric($number) || $number < 0) {
$number = 0;
}
$this->current_page = $number;
}