Changeset 1422

Show
Ignore:
Timestamp:
04/09/06 08:27:07 (7 years ago)
Author:
mheydon1973
Message:

This will allow upgrade scripts to include the '/admin/functions.inc.php' file so they can access shared functions etc.etc. in there

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/install_amp

    r1390 r1422  
    7272} 
    7373 
    74 function parse_amportal_conf($filename) { 
     74function install_parse_amportal_conf($filename) { 
    7575  $file = file($filename); 
    7676  foreach ($file as $line) { 
     
    9393 
    9494//get the version number 
    95 function getversion() { 
     95function install_getversion() { 
    9696  global $db; 
    9797  $sql = "SELECT value FROM admin WHERE variable = 'version'"; 
     
    388388/** Set reload flag for AMP admin 
    389389 */ 
    390 function needreload() { 
     390function install_needreload() { 
    391391  global $db; 
    392392  $sql = "UPDATE admin SET value = 'true' WHERE variable = 'need_reload'";  
     
    655655 
    656656outn("Reading ".AMP_CONF.".."); 
    657 $amp_conf = parse_amportal_conf(AMP_CONF); 
     657$amp_conf = install_parse_amportal_conf(AMP_CONF); 
    658658if (count($amp_conf) == 0) { 
    659659  fatal("FAILED"); 
     
    770770if (!isset($version)) { 
    771771  outn("Checking current version of AMP.."); 
    772   $version = getversion(); 
     772  $version = install_getversion(); 
    773773  if (!$version) { 
    774774    out("no version information"); 
     
    863863 
    864864// **** Set reload flag for AMP admin 
    865 needreload(); 
     865install_needreload(); 
    866866 
    867867if ($amp_conf["AMPWEBADDRESS"])