Remove old comments
Remove old commented text and update comments
This commit is contained in:
parent
9ac0d59c66
commit
1751e9dd9c
|
@ -1,35 +1,6 @@
|
|||
<?php
|
||||
/* $Id:$ */
|
||||
|
||||
/* !TODO!: In an ideal world this should roll back everything the install.php script did, except for what existed before install.php was run */
|
||||
/* !TODO!: This would require the install.php to make a note of all the actions that were skipped and/or performed */
|
||||
/* !TODO!: Might be a good idea to create a backup of the database before removing anything */
|
||||
// !TODO!: -TODO-: I remove only that which is related to the Manager, it is in my opinion not a critical configuration information. This information is partially present in other files.
|
||||
/*
|
||||
function CreateBackUpConfig() {
|
||||
global $amp_conf;
|
||||
outn("<li>" . _("Create Config BackUp") . "</li>");
|
||||
$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("<li>" . _("Error Create BackUp: ") . $filename ."</li>");
|
||||
}
|
||||
outn("<li>" . _("Create Config BackUp: ") . $filename ."</li>");
|
||||
}
|
||||
*/
|
||||
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("<li>" . _('Removing all Sccp_manager views') . "</li>");
|
||||
$db->query("DROP VIEW IF EXISTS sccpdeviceconfig");
|
||||
|
||||
|
|
Loading…
Reference in a new issue