root/contributed_modules/modules/weather/install.php

Revision 5069, 494 bytes (checked in by p_lindheimer, 1 year ago)

#1767 add weather to contributed module repository

  • Property svn:executable set to *
Line 
1 <?php
2
3 $ampwebroot_path = (isset($amp_conf['AMPWEBROOT']) && !empty($amp_conf['AMPWEBROOT'])) ?  $amp_conf['AMPWEBROOT'] : '/var/www/html';
4
5 $fd = fopen($ampwebroot_path.'/admin/modules/weather/zipcodes.sql','r'); while ($fd && !feof($fd)) { $line = fgets($fd, 4096); $db->query($line); } fclose($fd);
6
7 // Register FeatureCode - Weather using flite
8 $fcc = new featurecode('weather', 'weather');
9 $fcc->setDescription('Weather Report');
10 $fcc->setDefault('*61');
11 $fcc->update();
12 unset($fcc);
13
14 ?>
Note: See TracBrowser for help on using the browser.