forked from mx504/freepbx-endpointmanager
-
Notifications
You must be signed in to change notification settings - Fork 72
/
page.endpointman.php
49 lines (39 loc) · 1.05 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';
break;
case 'epm_oss':
include LOCAL_PATH . 'includes/advanced.inc';
break;
case 'template_manager':
include LOCAL_PATH . 'includes/template_manager.inc';
break;
case 'devices_manager';
include LOCAL_PATH . 'includes/devices_manager.inc';
break;
case 'brand_model_manager':
include LOCAL_PATH . 'includes/brand_model_manager.inc';
break;
case 'installer':
include LOCAL_PATH . 'install.inc';
break;
default:
include LOCAL_PATH . 'includes/devices_manager.inc';
}