forked from billsimon/endpointman
-
Notifications
You must be signed in to change notification settings - Fork 1
/
page.endpointman.php
49 lines (39 loc) · 1.08 KB
/
page.endpointman.php
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
global $active_modules;
if (!empty($active_modules['endpoint']['rawname'])) {
if (FreePBX::Endpointman()->configmod->get("disable_endpoint_warning") !== "1") {
include('page.epm_warning.php');
}
}
?>
<?PHP
/**
* Endpoint Manager Master Page File
*
* @author Andrew Nagy
* @license MPL / GPLv2 / LGPL
* @package Endpoint Manager
*/
require_once dirname(__FILE__).'/config.php';
switch ($page) {
case 'advanced':
include LOCAL_PATH . 'includes/advanced.inc.php';
break;
case 'epm_oss':
include LOCAL_PATH . 'includes/advanced.inc.php';
break;
case 'template_manager':
include LOCAL_PATH . 'includes/template_manager.inc.php';
break;
case 'devices_manager';
include LOCAL_PATH . 'includes/devices_manager.inc.php';
break;
case 'brand_model_manager':
include LOCAL_PATH . 'includes/brand_model_manager.inc.php';
break;
case 'installer':
include LOCAL_PATH . 'install.inc.php';
break;
default:
include LOCAL_PATH . 'includes/devices_manager.inc.php';
}