-
Notifications
You must be signed in to change notification settings - Fork 93
/
uninstall.php
56 lines (49 loc) · 1.23 KB
/
uninstall.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
Caller ID Superfecta is being uninstalled.<br>
<?php
global $db;
global $amp_conf;
global $astman;
if(!function_exists("out"))
{
function out($text)
{
echo $text."<br />";
}
}
if (! function_exists("outn")) {
function outn($text) {
echo $text;
}
}
// drop the tables
$sql = "DROP TABLE IF EXISTS superfectaconfig";
$check = $db->query($sql);
if (DB::IsError($check))
{
die_freepbx( "Can not delete superfectaconfig table: " . $check->getMessage() . "\n");
}
$sql = "DROP TABLE IF EXISTS superfectacache";
$check = $db->query($sql);
if (DB::IsError($check))
{
die_freepbx( "Can not delete superfectacache table: " . $check->getMessage() . "\n");
}
$sql = "DROP TABLE IF EXISTS superfecta_to_incoming";
$check = $db->query($sql);
if (DB::IsError($check))
{
die_freepbx( "Can not delete superfecta_to_incoming table: " . $check->getMessage() . "\n");
}
$sql = "DROP TABLE IF EXISTS superfecta_mf";
$check = $db->query($sql);
if (DB::IsError($check))
{
die_freepbx( "Can not delete superfecta_mf table: " . $check->getMessage() . "\n");
}
$sql = "DROP TABLE IF EXISTS superfecta_mf_child";
$check = $db->query($sql);
if (DB::IsError($check))
{
die_freepbx( "Can not delete superfecta_mf_child table: " . $check->getMessage() . "\n");
}
?>