root/modules/branches/2.4/backup/uninstall.php

Revision 4796, 302 bytes (checked in by p_lindheimer, 5 years ago)

Auto Check-in of any outstanding patches

Line 
1 <?php
2
3 global $db;
4 global $asterisk_conf;
5 $sql = "DELETE FROM Backup";
6 $result = $db->query($sql);
7 if(DB::IsError($result)) {
8   die_freepbx($result->getMessage());
9 }
10 $Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron_from_mysql.pl";
11 exec($Cron_Script);
12 sql('DROP TABLE Backup');
13
14 ?>
Note: See TracBrowser for help on using the browser.