Changeset 999 in ExiteCMS for modules/common/advertising/php-files/modules/advertising/module_installer.php
- Timestamp:
- 10/23/07 14:49:17 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/advertising/php-files/modules/advertising/module_installer.php
r998 r999 17 17 18 18 if (file_exists(PATH_MODULES."advertising/locale/".$settings['locale'].".php")) { 19 $locale_file =PATH_MODULES."advertising/locale/".$settings['locale'].".php";19 include PATH_MODULES."advertising/locale/".$settings['locale'].".php"; 20 20 } else { 21 $locale_file =PATH_MODULES."advertising/locale/English.php";21 include PATH_MODULES."advertising/locale/English.php"; 22 22 } 23 include $locale_file;24 23 25 24 /*---------------------------------------------------+ 26 25 | Module identification | 27 26 +----------------------------------------------------*/ 28 $mod_title = $locale[' 402']; // title or name of this module29 $mod_description = $locale[' 406'];// short description of it's purpose27 $mod_title = $locale['ads402']; // title or name of this module 28 $mod_description = $locale['ads406']; // short description of it's purpose 30 29 $mod_version = "1.0.0"; // module version number 31 30 $mod_developer = "WanWizard"; // author's name … … 66 65 67 66 $mod_site_links = array(); // site_links definitions. Multiple can be defined 68 $mod_site_links[] = array('name' => $locale[' 402'], 'url' => 'advertising.php', 'panel' => '', 'visibility' => 100);67 $mod_site_links[] = array('name' => $locale['ads402'], 'url' => 'advertising.php', 'panel' => '', 'visibility' => 100); 69 68 70 69 /*---------------------------------------------------+ … … 123 122 if (is_array($group)) { 124 123 // modify the visibility 125 $result = dbquery("UPDATE ".$db_prefix."site_links SET link_visibility = '".$group['group_id']."' WHERE link_name = '".$locale[' 402']."' AND link_url = 'advertising.php'");124 $result = dbquery("UPDATE ".$db_prefix."site_links SET link_visibility = '".$group['group_id']."' WHERE link_name = '".$locale['ads402']."' AND link_url = 'advertising.php'"); 126 125 } 127 126 }
Note: See TracChangeset
for help on using the changeset viewer.
