diff --git a/uninstall.php b/uninstall.php index b1375b6..37954c1 100644 --- a/uninstall.php +++ b/uninstall.php @@ -1,35 +1,6 @@ " . _("Create Config BackUp") . ""); - $cnf_int = \FreePBX::Config(); - $backup_files = array('extconfig','extconfig','res_mysql', 'res_config_mysql','sccp'); - $backup_ext = array('_custom.conf', '.conf'); - $dir = $cnf_int->get('ASTETCDIR'); - $zip = new \ZipArchive(); - $filename = $dir . "/sccp_uninstall_backup" . date("Ymd"). ".zip"; - if ($zip->open($filename, \ZIPARCHIVE::CREATE)) { - foreach ($backup_files as $file) { - foreach ($backup_ext as $b_ext) { - if (file_exists($dir . '/'.$file . $b_ext)) { - $zip->addFile($dir . '/'.$file . $b_ext); - } - } - } - $zip->close(); - } else { - outn("
  • " . _("Error Create BackUp: ") . $filename ."
  • "); - } - outn("
  • " . _("Create Config BackUp: ") . $filename ."
  • "); -} -*/ if (!defined('FREEPBX_IS_AUTH')) { die('No direct script access allowed'); } @@ -102,6 +73,7 @@ if (!empty($version)) { //foreach ($sqlTables as $table) { //$sql = "DROP TABLE IF EXISTS {$table}"; //} + // Still need to handle views as FreePBX does not know about these. outn("
  • " . _('Removing all Sccp_manager views') . "
  • "); $db->query("DROP VIEW IF EXISTS sccpdeviceconfig");