Changeset 1522
- Timestamp:
- 04/12/06 18:40:04 (7 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/page.modules.php
r1520 r1522 268 268 // if the epoch in the db is more than 2 hours old, then regrab xml 269 269 if((time() - $result['time']) > 14400) { 270 $fn = "http://amportal.sourceforge.net/modules.xml"; 270 $version = getversion(); 271 $version = $version[0][0]; 272 // we need to know the freepbx major version we have running (ie: 2.1.2 is 2.1) 273 preg_match('/(\d+\.\d+)/',$version,$matches); 274 //echo "the result is ".$matches[1]; 275 $fn = "http://amportal.sourceforge.net/modules-".$matches[1].".xml"; 271 276 //$fn = "/usr/src/freepbx-modules/modules.xml"; 272 277 $data = file_get_contents($fn);
