  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: shipping.php 151 2005-08-02 14:33:25Z mattice $ |
| |
| 3 | + | $Id: shipping.php 368 2005-12-22 16:27:23Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
15 | 15 | | |
| |
16 | 16 | | // class constructor |
| |
17 | 17 | | function shipping($module = '') { |
  |
18 | | - | if (PHP_VERSION < 4.1) { |
| |
19 | | - | global $_SERVER; |
| |
20 | | - | } |
| |
21 | | - | |
| |
22 | | - | global $osC_Session; |
| |
23 | | - | |
|
24 | 18 | | if (defined('MODULE_SHIPPING_INSTALLED') && tep_not_null(MODULE_SHIPPING_INSTALLED)) { |
| |
25 | 19 | | $this->modules = explode(';', MODULE_SHIPPING_INSTALLED); |
| |
26 | 20 | | |
| |
|
|
 |
… |
|
37 | 31 | | } |
| |
38 | 32 | | |
| |
39 | 33 | | for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) { |
  |
40 | | - | include(DIR_WS_LANGUAGES . $osC_Session->value('language') . '/modules/shipping/' . $include_modules[$i]['file']); |
| |
41 | | - | include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']); |
| |
| 34 | + | include('includes/languages/' . $_SESSION['language'] . '/modules/shipping/' . $include_modules[$i]['file']); |
| |
| 35 | + | include('includes/modules/shipping/' . $include_modules[$i]['file']); |
  |
42 | 36 | | |
| |
43 | 37 | | $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class']; |
| |
44 | 38 | | } |