Changeset 6279

Show
Ignore:
Timestamp:
08/04/08 14:57:41 (2 months ago)
Author:
ethans
Message:

Removed retrieve_backup_cron_from_mysql.pl script and replaced with retrieve_backup_cron.php script to support database engines other than mysql.
- No more perl, written in php
- uses same mechanisms for parsing amportal database configuration as retrieve_conf script...eventually this functionality should probably be separated
and included commonly, same with db_connect.php probably

Closes #2995

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/backup/schedule_functions.php

    r5919 r6279  
    200200        global $db; 
    201201        global $asterisk_conf; 
     202        global $amp_conf; 
    202203        $sql = "DELETE FROM Backup  WHERE ID = '$ID'"; 
    203204        $result = $db->query($sql); 
     
    205206                die_freepbx($result->getMessage()); 
    206207        } 
    207         $Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron_from_mysql.pl"; 
     208        $Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron.php"; 
    208209        exec($Cron_Script); 
    209210} 
     
    212213        global $db; 
    213214        global $asterisk_conf; 
     215        global $amp_conf; 
    214216        if ($Backup_Parms[1]=="now") 
    215217        { 
     
    236238                die_freepbx($result->getMessage().'<hr>'.$sql); 
    237239        } 
    238         $Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron_from_mysql.pl"; 
    239         exec($Cron_Script); 
     240        $Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron.php"; 
    240241         
    241242} 
  • modules/branches/2.5/backup/uninstall.php

    r4796 r6279  
    88        die_freepbx($result->getMessage()); 
    99} 
    10 $Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron_from_mysql.pl"; 
     10$Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron.php"; 
    1111exec($Cron_Script); 
    1212sql('DROP TABLE Backup'); 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads