mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update app_defaults.php
This commit is contained in:
@@ -34,16 +34,16 @@
|
||||
unset($sql);
|
||||
|
||||
if ($num_rows == 0) {
|
||||
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles/*.xml.noload')) {
|
||||
if (file_exists('/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles')) {
|
||||
$sip_profile_dir = '/usr/share/examples/fusionpbx/resources/templates/conf/sip_profiles/*.xml.noload';
|
||||
}
|
||||
elseif (file_exists('/usr/local/share/fusionpbx/resources/templates/conf/sip_profiles/*.xml.noload')) {
|
||||
elseif (file_exists('/usr/local/share/fusionpbx/resources/templates/conf/sip_profiles')) {
|
||||
$sip_profile_dir = '/usr/local/share/fusionpbx/resources/templates/conf/sip_profiles/*.xml.noload';
|
||||
}
|
||||
elseif (file_exists('/usr/local/www/fusionpbx/app/switch/resources/conf/sip_profiles/*.xml.noload')) {
|
||||
elseif (file_exists('/usr/local/www/fusionpbx/app/switch/resources/conf/sip_profiles')) {
|
||||
$sip_profile_dir = '/usr/local/www/fusionpbx/app/switch/resources/conf/sip_profiles/*.xml.noload';
|
||||
}
|
||||
elseif (file_exists('/var/www/fusionpbx/app/switch/resources/conf/sip_profiles/*.xml.noload')) {
|
||||
elseif (file_exists('/var/www/fusionpbx/app/switch/resources/conf/sip_profiles')) {
|
||||
$sip_profile_dir = '/var/www/fusionpbx/app/switch/resources/conf/sip_profiles/*.xml.noload';
|
||||
}
|
||||
else {
|
||||
@@ -119,7 +119,7 @@
|
||||
}
|
||||
|
||||
//execute inserts
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
if (!empty($array)) {
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p->add('sip_profile_add', 'temp');
|
||||
@@ -197,7 +197,7 @@
|
||||
}
|
||||
|
||||
//execute inserts
|
||||
if (is_array($array) && @sizeof($array) != 0) {
|
||||
if (!empty($array)) {
|
||||
//grant temporary permissions
|
||||
$p = new permissions;
|
||||
$p->add('sip_profile_domain_add', 'temp');
|
||||
|
||||
Reference in New Issue
Block a user