usort($this->data['available_price_range'], array('Search', 'cmp_val')); //in this case function_name = cmp foreach ($facilities as $name => $facility) { $filter_link = $this->get_filter_url($name); $count = isset($facilities[$name]['count']) ? $facilities[$name]['count'] : 0; if ($filter_link['active']) { $this->data['restaurants']->addQuery($name, 1); } $this->data['available_facilities'][] = array('active' => $filter_link['active'], 'name' => $name, 'css' => $filter_link['css'], 'icon' => $facility['icon'], 'url' => $filter_link['url'], 'title' => $facility['title'], 'desc' => $facility['desc'], 'count' => $count);
Key | Value |
USER | www-data |
HOME | /var/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /home/ubuntu/websites/tasty/websites/tasty.lk/public/index.php |
QUERY_STRING | q=/restaurants/cuisine/chinese&outdoor=1&five_star=1 |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /restaurants/cuisine/chinese?outdoor=1&five_star=1 |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /home/ubuntu/websites/tasty/websites/tasty.lk/public |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.12.2 |
REMOTE_ADDR | 172.71.222.119 |
REMOTE_PORT | 56098 |
SERVER_ADDR | 183.174.12.7 |
SERVER_PORT | 80 |
SERVER_NAME | tasty.saberion.org |
REDIRECT_STATUS | 200 |
HTTP_HOST | www.tasty.lk |
HTTP_CONNECTION | Keep-Alive |
HTTP_ACCEPT_ENCODING | gzip, br |
HTTP_X_FORWARDED_FOR | 35.173.254.36 |
HTTP_CF_RAY | 86c10bf96e252027-IAD |
HTTP_X_FORWARDED_PROTO | https |
HTTP_CF_VISITOR | {"scheme":"https"} |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_REFERER | http://www.tasty.lk/restaurants/cuisine/chinese?outdoor=1&five_star=1 |
HTTP_CF_CONNECTING_IP | 35.173.254.36 |
HTTP_CDN_LOOP | cloudflare |
HTTP_CF_IPCOUNTRY | US |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727753.5885 |
REQUEST_TIME | 1711727753 |
Key | Value |
q | /restaurants/cuisine/chinese |
outdoor | 1 |
five_star | 1 |