Changeset 1506 in ExiteCMS for modules/common/download_statistics/php-files/modules/download_statistics/module_installer.php
- Timestamp:
- 07/02/08 17:27:46 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/download_statistics/php-files/modules/download_statistics/module_installer.php
r1499 r1506 17 17 $mod_title = "Download Statistics"; 18 18 $mod_description = "Gather and display download statistics from download mirror logs. includes a Google Map with downloaders per country"; 19 $mod_version = "1. 0.8";19 $mod_version = "1.1.1"; 20 20 $mod_developer = "WanWizard"; 21 21 $mod_email = "wanwizard@gmail.com"; … … 94 94 $localestrings['en']['dls511'] = "Google Maps API key:"; 95 95 $localestrings['en']['dls512'] = "Click <a href='http://code.google.com/apis/maps/signup.html' target='_blank'>here</a> to sign up for a key."; 96 $localestrings['en']['dls513'] = "Download Statistics Panel Title"; 97 $localestrings['en']['dls514'] = "Used as title of the statistics panel. You can use %s as a placeholder for the total download count"; 96 98 // Statistics counter panel 97 99 $localestrings['en']['dls600'] = "Download Statistics Panel"; … … 163 165 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##configuration (cfg_name, cfg_value) VALUES ('dlstats_remote', '0')"); 164 166 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##configuration (cfg_name, cfg_value) VALUES ('dlstats_google_api_key', '')"); 167 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##configuration (cfg_name, cfg_value) VALUES ('dlstats_title', '')"); 165 168 166 169 // Geomap information table … … 229 232 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'dlstats_remote'"); 230 233 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'dlstats_google_api_key'"); 234 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'dlstats_title'"); 231 235 232 236 // delete the tables … … 262 266 263 267 switch ($current_version) { 264 case "1.0.0": // current release version 268 case "1.1.0": 269 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES ('dlstats_title', '')"); 270 271 case "1.1.1": // current release version 272 265 273 } 266 274 }
Note: See TracChangeset
for help on using the changeset viewer.
