root/contributed_modules/modules/endpointman/page.epm_advanced.php

Revision 10052, 1.7 kB (checked in by p_lindheimer, 3 years ago)

first attempt to split into multiple pages, I have not tested everything so there is likely some loose ends, but it is a start

Line 
1 <?php
2 /*
3 Endpoint Manager V2
4 Copyright (C) 2009-2010  Ed Macri, John Mullinix and Andrew Nagy
5
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; either version 2
9 of the License, or (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19
20 http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 */
22
23 // Check for safe mode
24 if( ini_get('safe_mode') ){
25     die(_('Turn Off Safe Mode'));
26 }
27
28 if(file_exists('/tftpboot')) {
29     if(!is_writeable('/tftpboot')) {
30         die(_('/tftpboot is not writable'));
31     }
32 } else {
33     die(_("Please create /tftpboot, even if you won't use it"));
34 }
35
36 include 'includes/functions.inc';
37
38 global $endpoint, $debug;
39
40 $debug = NULL;
41
42 $endpoint = new endpointmanager();
43
44 global $global_cfg, $debug;
45
46 if(!is_writeable(LOCAL_PATH)) {
47     chmod(LOCAL_PATH, 0764);
48 }
49
50 if(!is_writeable(PHONE_MODULES_PATH)) {
51     chmod(PHONE_MODULES_PATH, 0764);
52 }
53
54 if($amp_conf['AMPENGINE'] != 'asterisk') {
55     die(_("Sorry, Only Asterisk is supported currently"));
56 }
57
58 if (isset($_REQUEST['page'])) {
59     $page = $_REQUEST['page'];
60 } else {
61     $page = "";
62 }
63
64 if($global_cfg['debug']) {
65     $debug .= "Request Variables: \n".print_r($_REQUEST, TRUE);
66 }
67
68 include LOCAL_PATH.'includes/advanced.inc';   
69 ?>
70
Note: See TracBrowser for help on using the browser.