forked from FreePBX/ucp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.inc.php
23 lines (23 loc) · 903 Bytes
/
install.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
* This is the User Control Panel Object.
*
* License for all code of this FreePBX module can be found in the license file inside the module directory
* Copyright 2006-2014 Schmooze Com Inc.
*/
function ucp_module_install_check_callback($mods = array()) {
global $active_modules;
$ret = array();
$current_mod = 'fw_ari';
$conflicting_mods = array('ucp');
foreach($mods as $k => $v) {
if (in_array($k, $conflicting_mods) && !empty($active_modules[$current_mod]) && !in_array($active_modules[$current_mod]['status'],array(MODULE_STATUS_NOTINSTALLED,MODULE_STATUS_BROKEN))) {
$ret[] = $v['name'];
}
}
if (!empty($ret)) {
$modules = implode(',',$ret);
return sprintf(_('Failed to install %s due to the following conflicting module(s): %s'),$modules,$active_modules[$current_mod]['displayname']);
}
return TRUE;
}