Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change to superglobal variables

  • Loading branch information...
commit fd54577661955bedd888ba9c6c67624e3f5a7c9b 1 parent 7f57a7b
@acidvertigo acidvertigo authored
Showing with 3 additions and 7 deletions.
  1. +3 −7 catalog/includes/functions/general.php
View
10 catalog/includes/functions/general.php
@@ -167,8 +167,7 @@ function tep_break_string($string, $len, $break_char = '-') {
////
// Return all HTTP GET variables, except those passed as a parameter
function tep_get_all_get_params($exclude_array = '') {
- global $_GET;
-
+
if (!is_array($exclude_array)) $exclude_array = array();
$get_url = '';
@@ -260,9 +259,8 @@ function tep_get_path($current_category_id = '') {
////
// Returns the clients browser
function tep_browser_detect($component) {
- global $HTTP_USER_AGENT;
- return stristr($HTTP_USER_AGENT, $component);
+ return stristr($_SERVER['HTTP_USER_AGENT'] , $component);
}
////
@@ -888,7 +886,6 @@ function tep_is_leap_year($year) {
////
// Return table heading with sorting capabilities
function tep_create_sort_heading($sortby, $colnum, $heading) {
- global $PHP_SELF;
$sort_prefix = '';
$sort_suffix = '';
@@ -1277,8 +1274,7 @@ function tep_validate_ip_address($ip_address) {
}
function tep_get_ip_address() {
- global $_SERVER;
-
+
$ip_address = null;
$ip_addresses = array();
Please sign in to comment.
Something went wrong with that request. Please try again.