@@ 332-346 (lines=15) @@ | ||
329 | } |
|
330 | } |
|
331 | ||
332 | function tep_not_null($value) { |
|
333 | if (is_array($value)) { |
|
334 | if (sizeof($value) > 0) { |
|
335 | return true; |
|
336 | } else { |
|
337 | return false; |
|
338 | } |
|
339 | } else { |
|
340 | if ( (is_string($value) || is_int($value)) && ($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) { |
|
341 | return true; |
|
342 | } else { |
|
343 | return false; |
|
344 | } |
|
345 | } |
|
346 | } |
|
347 | ||
348 | function tep_browser_detect($component) { |
|
349 | return stristr(getenv('HTTP_USER_AGENT'), $component); |
@@ 1163-1177 (lines=15) @@ | ||
1160 | return $get_string; |
|
1161 | } |
|
1162 | ||
1163 | function tep_not_null($value) { |
|
1164 | if (is_array($value)) { |
|
1165 | if (sizeof($value) > 0) { |
|
1166 | return true; |
|
1167 | } else { |
|
1168 | return false; |
|
1169 | } |
|
1170 | } else { |
|
1171 | if (($value != '') && (strtolower($value) != 'null') && (strlen(trim($value)) > 0)) { |
|
1172 | return true; |
|
1173 | } else { |
|
1174 | return false; |
|
1175 | } |
|
1176 | } |
|
1177 | } |
|
1178 | ||
1179 | //// |
|
1180 | // Output the tax percentage with optional padded decimals |