Changeset 1012 in ExiteCMS for modules/common/ad_side_panel/php-files/modules/ad_side_panel/ad_side_panel.php
- Timestamp:
- 10/24/07 21:03:42 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/ad_side_panel/php-files/modules/ad_side_panel/ad_side_panel.php
r996 r1012 17 17 } else { 18 18 19 // load the locale for this module20 require_once PATH_LOCALE.LOCALESET."admin/adverts.php";19 // check if the advertising module is installed 20 if (file_exists(PATH_MODULES."advertising/get_ad.php")) { 21 21 22 // check if the advertising module is installed 23 if (file_exists(PATH_INCLUDES."advertisement.php")) { 24 25 // load the advertisement include module 26 require_once PATH_INCLUDES."advertisement.php"; 22 // load the locale for this panel 23 if (file_exists(PATH_MODULES."advertising/locale/".$settings['locale'].".php")) { 24 $locale_file = PATH_MODULES."advertising/locale/".$settings['locale'].".php"; 25 } else { 26 $locale_file = PATH_MODULES."advertising/locale/English.php"; 27 } 28 include $locale_file; 29 30 // load the ad include module 31 require_once PATH_MODULES."advertising/get_ad.php"; 27 32 28 33 // array's to store the variables for this panel 29 $ad = get_ad vert(0,0,0);34 $ad = get_ad(0,0,0); 30 35 31 36 } else {
Note: See TracChangeset
for help on using the changeset viewer.
