forked from FreePBX-ContributedModules/endpointman
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
32 lines (26 loc) · 699 Bytes
/
config.php
File metadata and controls
32 lines (26 loc) · 699 Bytes
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
<?php
/**
* Endpoint Manager config File
*
* @author Andrew Nagy
* @license MPL / GPLv2 / LGPL
* @package Provisioner
*/
include 'includes/functions.inc';
$debug = NULL;
$endpoint = new endpointmanager();
if (!is_writeable(PHONE_MODULES_PATH)) {
chmod(PHONE_MODULES_PATH, 0764);
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PHONE_MODULES_PATH), RecursiveIteratorIterator::SELF_FIRST);
foreach ($iterator as $item) {
chmod($item, 0764);
}
}
if (isset($_REQUEST['page'])) {
$page = $_REQUEST['page'];
} else {
$page = "";
}
if ($endpoint->global_cfg['debug']) {
$debug .= "Request Variables: \n" . print_r($_REQUEST, TRUE);
}