|
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 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 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 |
|
|---|