if ( (count($q_arr) >= 2) && (is_numeric($q_arr[0])) && (is_numeric($q_arr[1])) ) { echo "<h1>Show all rows by abc: <u>{$q_arr[0]}</u></h1>"; echo "<h2>Page: {$q_arr[1]}</h2>"; $row = DB::select('select start, end from data_number WHERE abc = ?', [$q_arr[0]]); $start = intval($row[$q_arr[1]]->start); $end = intval($row[$q_arr[1]]->end); $array = array(); # echo $end; # $end = 1500000; for ($i = $start; $i <= $end; $i++) { $ii = str_pad($i, 7, '0', STR_PAD_LEFT); $array[] = '7'.$q_arr[0].$ii; } if (count($array) < $max_visible) { foreach ($array as $value) { echo "<a href='/number/$value'>+$value</a><br />"; # echo "<a href='/number/$value/address'>+$value / Адрес</a><br />"; # echo "<a href='/number/$value/reviews'>+$value / Комментарии</a><br />"; } } else { $array_chunk = array_chunk($array, $max_visible); echo '<p>'; foreach ($array_chunk as $key => $value) { $string = "<a href='/sitemap/{$q_arr[0]}/{$q_arr[1]}/$key'>$key</a> "; echo $string; } echo '</p>'; if ( (count($q_arr) == 3) && (is_numeric($q_arr[2])) ) { if ($q_arr[2] < count($array_chunk)) { echo "<h3>Current subpage: {$q_arr[2]}</h3>"; foreach ($array_chunk[$q_arr[2]] as $value) {
Key | Value |
query | 981/2/163 |
Key | Value |
_token | 5190366046eba328e9da64101bb87bfa |
Key | Value |
REDIRECT_HTTPS | on |
REDIRECT_STATUS | 200 |
HTTPS | on |
HTTP_HOST | phone-996.ru |
HTTP_X_REAL_IP | 18.232.35.62 |
HTTP_X_FORWARDED_FOR | 18.232.35.62 |
HTTP_X_FORWARDED_PORT | 443 |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CONNECTION | close |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
SERVER_SIGNATURE | <address>Apache/2.4.56 (Debian) Server at phone-996.ru Port 443</address> |
SERVER_SOFTWARE | Apache/2.4.56 (Debian) |
SERVER_NAME | phone-996.ru |
SERVER_ADDR | 127.0.0.1 |
SERVER_PORT | 443 |
REMOTE_ADDR | 18.232.35.62 |
DOCUMENT_ROOT | /var/www/fastuser-phone/data/www/phone-996.ru |
REQUEST_SCHEME | https |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /var/www/fastuser-phone/data/www/phone-996.ru |
SERVER_ADMIN | admin@phone-996.ru |
SCRIPT_FILENAME | /var/www/fastuser-phone/data/www/phone-996.ru/sitemap/sitemap.php |
REMOTE_PORT | 53076 |
REDIRECT_URL | /sitemap/981/2/163 |
REDIRECT_QUERY_STRING | query=981/2/163 |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.0 |
REQUEST_METHOD | GET |
QUERY_STRING | query=981/2/163 |
REQUEST_URI | /sitemap/981/2/163 |
SCRIPT_NAME | /sitemap/sitemap.php |
PHP_SELF | /sitemap/sitemap.php |
REQUEST_TIME_FLOAT | 1711703783.7945 |
REQUEST_TIME | 1711703783 |