root/modules/branches/2.6/callforward/uninstall.php

Revision 7470, 1.1 kB (checked in by mickecarlsson, 4 years ago)

Added missing GPL text, corrected license version

  • Property svn:mime-type set to text/html
  • Property svn:eol-style set to native
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 qldrob
18 //
19 // TODO, is this needed...?
20 // is this global...? what if we include this files
21 // from a function...?
22 global $astman;
23
24 // remove all Call Forward options in effect on extensions
25 if ($astman) {
26   $astman->database_deltree('CF');
27   $astman->database_deltree('CFB');
28   $astman->database_deltree('CFU');
29 } else {
30   fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]);
31 }
32
33 ?>
Note: See TracBrowser for help on using the browser.