// Values that can be used in other PHP code on the page
$paginate_num_pages = 97;
$paginate_num_sections = 9733;
$paginate_page_selector = 'page';
$paginate_current_page = $_GET['page'];
// Pin page selector to a valid number (or 'all')
if($paginate_current_page=='')
$paginate_current_page = '1';
if($paginate_current_page != 'all') {
if($paginate_current_page == 'first')
$paginate_current_page = 1;
elseif($paginate_current_page == 'last')
$paginate_current_page = 97;
elseif($paginate_current_page < 1)
$paginate_current_page = 1;
elseif($paginate_current_page > 97)
$paginate_current_page = 97;
$paginate_sections = array( 0
, 406, 798, 1206, 1636, 2084, 2526, 2977, 3409, 3842, 4251, 4692, 4837, 4890, 4943, 4995, 5045, 5096, 5149, 5201, 5253, 5304, 5356, 5410, 5463, 5516, 5569, 5625, 5678, 5730, 5783, 5834, 5888, 5940, 5994, 6046, 6097, 6150, 6203, 6256, 6309, 6362, 6414, 6468, 6520, 6573, 6626, 6679, 6733, 6785, 6837, 6890, 6941, 6994, 7047, 7100, 7152, 7206, 7258, 7309, 7361, 7414, 7466, 7520, 7572, 7626, 7678, 7729, 7781, 7833, 7886, 7939, 7991, 8043, 8095, 8147, 8199, 8249, 8299, 8350, 8404, 8459, 8511, 8581, 8659, 8742, 8829, 8915, 9003, 9093, 9184, 9273, 9357, 9445, 9533, 9620, 9701, 9733);
$paginate_top_section = $paginate_sections[$paginate_current_page-1]+1;
$paginate_bottom_section = $paginate_sections[$paginate_current_page];
} else {
$paginate_top_section = 1;
$paginate_bottom_section = 9733;
}
$paginate_self = '&' . $_SERVER['QUERY_STRING'] . '&';
$paginate_self = preg_replace("/&page=[^&]*&/", "&", $paginate_self);
$paginate_self = substr($paginate_self, 0, strlen($paginate_self) - 1);
if($paginate_self == '&')
$paginate_self = '';
$paginate_self = basename($_SERVER['PHP_SELF']) . "?${paginate_self}page";
?>
gooya news :: advertisement