Optimize check if DB_SERVER is empty
Tep_not_null is_object update

Changed tep_not_null so to chcek if value is object because it returned warnings such as:

Warning: strtolower() expects parameter 1 to be string, object given in
and
Warning: trim() expects parameter 1 to be string, object given in
Merge pull request #162 from gadlol/patch-4

Tep_not_null is_object update
replace global $currency scope with $_SESSION
Merge pull request #163 from haraldpdl/superglobals

replace global $currency scope with $_SESSION
Change while loop with foreach
change getnv to $_SERVER superglobal
Change while loop with foreach and count with !empty
change while loops with foreach
Change while loop with foreach
Change while loop with foreach
Change while loop with foreach
Change getenv('HTTPS') to $_SERVER['HTTPS']

Checking also connection port as on some environments $_SERVER['HTTPS'] can be empty
Merge pull request #25 from acidvertigo/patch-25

Change while loop with foreach
Merge pull request #26 from acidvertigo/patch-26

change getnv to $_SERVER superglobal
Merge pull request #27 from acidvertigo/patch-27

Change while loop with foreach and count with !empty
Merge pull request #28 from acidvertigo/patch-28

change while loops with foreach
Merge pull request #30 from acidvertigo/patch-31

Change while loop with foreach
Merge pull request #31 from acidvertigo/patch-32

Change while loop with foreach
tep_string_to_int as anonymous function

Remove tep_string_to_int function and convert it to anonymous function inside tep_parse_category_path. So in $cPath_array the array_map will call the the anonymous function directly avoiding outside function callback.