root/modules/branches/2.6/backup/uninstall.php
| Revision 7470, 1.2 kB (checked in by mickecarlsson, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | <?php |
| 2 | //This file is part of FreePBX. |
| 3 | // |
| 4 | // FreePBX is free software: you can redistribute it and/or modify |
| 5 | // it under the terms of the GNU General Public License as published by |
| 6 | // the Free Software Foundation, either version 2 of the License, or |
| 7 | // (at your option) any later version. |
| 8 | // |
| 9 | // FreePBX is distributed in the hope that it will be useful, |
| 10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | // GNU General Public License for more details. |
| 13 | // |
| 14 | // You should have received a copy of the GNU General Public License |
| 15 | // along with FreePBX. If not, see <http://www.gnu.org/licenses/>. |
| 16 | // |
| 17 | // Copyright (C) 2005 VerCom Systems, Inc. & Ron Hartmann (rhartmann@vercomsystems.com) |
| 18 | // Asterisk Management Portal Copyright (C) 2004 Coalescent Systems Inc. (info@coalescentsystems.ca) |
| 19 | // |
| 20 | |
| 21 | global $db; |
| 22 | global $asterisk_conf; |
| 23 | $sql = "DELETE FROM Backup"; |
| 24 | $result = $db->query($sql); |
| 25 | if(DB::IsError($result)) { |
| 26 | die_freepbx($result->getMessage()); |
| 27 | } |
| 28 | //$Cron_Script=$asterisk_conf['astvarlibdir']."/bin/retrieve_backup_cron.php"; |
| 29 | //exec($Cron_Script); |
| 30 | backup_retrieve_backup_cron(); |
| 31 | sql('DROP TABLE Backup'); |
| 32 | |
| 33 | ?> |
| 34 |
Note: See TracBrowser for help on using the browser.
