root/contributed_modules/modules/bosssecretary/uninstall.php

Revision 8394, 0.6 kB (checked in by Maikel, 3 years ago)

Boss secretary module

Line 
1 <?php
2
3
4
5 // shall delete features codes
6
7 $fct = new featurecode('bosssecretary', 'bsc_toggle');
8 $fcu = new featurecode('bosssecretary', 'bsc_on');
9 $fcl = new featurecode('bosssecretary', 'bsc_off');
10
11
12 $fcl->delete();
13 $fcu->delete();
14 $fct->delete();
15
16
17 unset($fcl);
18 unset($fcu);
19 unset($fct);
20
21 // deleted features codes
22
23 // shall delete bosssecretary tree
24
25 global $astman;
26 global $amp_conf;
27
28
29
30 //add details to astdb
31 if ($astman) {
32         $astman->database_deltree("bosssecretary/group");
33 } else {
34         echo _("Cannot connect to Asterisk Manager with
35 ").$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"];
36 }
37
38
39 // deleted bosssecretary tree
40
41 ?>
Note: See TracBrowser for help on using the browser.