Commit Graph

45 Commits

Author SHA1 Message Date
FusionPBX cb12138405
Update domains.php 2018-02-25 01:08:54 -07:00
Mafoo 7015209e54 Enhance [master] provide $app_path during upgrade (#2573)
if a application is installed via a symlink PHP will resolve the symlink
for __DIR__ and __FILE__ making it impossible for an application to work
out it's relative path withing the fusion system.
By providing $app_path during upgrade routines an application will
beable to provide the correct link for menu items (e.g.
/opt/languages/index.php) instead of having to hard code it where it
could change depending on how the application was installed
2017-06-08 09:41:56 -06:00
Mafoo 2c97ce1144 Enhance - Display text on app_defaults (#2645)
enable display_type on domains (and therefore app_defaults)
capture the output of app_defaults
format if statements to project preference
use more generic label display for results reducing number of translations required
change upgrade.php to use the more consistent $display_type
2017-06-08 09:39:50 -06:00
FusionPBX a5e47971be Update domains.php 2017-01-17 13:37:26 -07:00
FusionPBX dad5aecd49 Update domains.php 2017-01-14 18:17:21 -07:00
FusionPBX b34f1769f0 Update domains.php 2017-01-14 18:15:34 -07:00
FusionPBX 0601c4ad71 Minor syntax fix spotted in dry run now activate. 2017-01-14 14:39:05 -07:00
FusionPBX 7c93ac7901 Add the settings method to the upgrade method. 2017-01-14 14:33:05 -07:00
FusionPBX 6dcf03f23c Add the settings method to the domains class. 2017-01-14 13:15:03 -07:00
FusionPBX 60c9477d2f Update domains.php 2016-09-10 17:33:47 -06:00
Harry G. Coin 89e5ecbcdf The goal is to increase confidence in fusionpbx, one step is to run by default with error_reporting (E_ALL ^ E_NOTICE);
So, please find in this set numerous small changes which eliminate numerous php warning messages.

Also, a small bug fix in an sql statistics routine, naming a count(*) field as count, so displaying correct detail.

If any of the proposed changes are omitted, the relevant page will experience php warnings.

There are no doubt fusionpbx pages I've yet to visit that still generate warnings, this set is nearly certainly not comprehensive.
2016-04-25 20:19:58 -05:00
markjcrane b3ba1aaf6f Use intuitive names for the arrays and move one of the queries out of the loop. 2016-04-15 00:47:49 -06:00
markjcrane 69d36b806d Add class_exists 2016-04-14 23:23:14 -06:00
markjcrane cfb1b28a54 Add a contructor to the dialplan class. 2016-04-14 22:34:10 -06:00
markjcrane b7d8b3c23f Update domains and schema classes. 2016-04-14 22:10:47 -06:00
markjcrane ac36bf07f7 Only call the scripts class if its installed. 2016-03-27 00:33:19 -06:00
markjcrane 83edd6a7fd On windows force to / instead of the backslash \ as path. This fixes a problem where recording c:\pathtofusionpbx\recordings fails because the \r gets understood as a carriage return in the session:record in FreeSWITCH. 2016-03-24 15:02:04 -06:00
markjcrane a89ad63831 Remove the domain name from the switch recordings SESSION variable. The path for single and multi-tenant are handled the same and all will used their domain name. 2015-12-06 12:36:08 -07:00
Matthew Vale 761a7b0717 made reference to install resource literal 2015-12-02 16:07:23 +00:00
markjcrane 96273e0bc3 Use the new config class in the domains and schema classes. 2015-11-27 19:59:50 -07:00
Mark Crane 4ec6c893c1 Account for the fact that mb_strtolower is not always available. 2015-06-01 04:54:21 +00:00
Mark Crane 227faa2489 More work to make domain names case insensitive. 2015-05-30 20:59:11 +00:00
Mark Crane b2a4a112f4 Update release to fix big for systems where GLOB_BRACE is not available. 2015-05-13 04:37:36 +00:00
Nate Jones e00f3ce583 Misc: Removed use of GLOB_BRACE as doesn't work on some systems, use non-GLOB_BRACE method instead. Thanks [xming] and Risk64. Should resolve Issue 916, as well. 2015-05-12 18:11:05 +00:00
Nate Jones 827701409b Default Settings: Fix set() function in domains class to first clear ALL default/domain settings, then only load settings that are currently enabled. 2015-05-01 12:14:52 +00:00
Mark Crane 127adbf7a5 Get a new set of default and domain settings for use when http_domain_filter is set to false. Remove debug numbers from access denied messages in provisioning and remove other redundant code. 2015-03-28 11:37:56 +00:00
Mark Crane a051c70ad1 A little more work to get rid of the default context. 2015-03-10 10:47:25 +00:00
Mark Crane cec874e932 Need to add GLOB_BRACE to support the {menu,config} 2014-12-27 17:30:07 +00:00
Mark Crane 449daffbef Change the | to a comma had to review the syntax on the glob command. 2014-12-27 17:28:07 +00:00
Mark Crane 177b5105c3 Add a check for domain_uuid session. 2014-10-17 22:59:47 +00:00
Mark Crane 6d1e4033a9 Fix the domain array settings 2014-08-09 16:32:52 +00:00
Mark Crane b64b6055a6 Cleanup previous default settings 2014-08-09 16:05:03 +00:00
Mark Crane 9dcf8aa2a8 Get the domain settings only if the domain_uuid has a value 2014-07-25 09:08:51 +00:00
Mark Crane e785dfd499 Change the logic a little more for the smooth fall back 2014-07-25 01:38:17 +00:00
Mark Crane ef6a37a66a Make the setting order with a try catch to make the upgrade smoother 2014-07-25 01:32:36 +00:00
Mark Crane 2a3be99035 Add default,domain, and user settings 2014-07-25 00:43:15 +00:00
Mark Crane 6f3a3c20f7 Remove the string length requirement on the domain_settings 2014-07-22 18:26:02 +00:00
Mark Crane d0a1b862d1 Make the domain and schema work with the PHP classes 2014-07-16 04:30:49 +00:00
Mark Crane 681a72367f Add globals needed by the app defaults in domains upgrade method. 2014-07-15 17:49:28 +00:00
Mark Crane 205792242e Add to the schema class and adjust the db connection obect in the domains class 2014-07-15 07:58:01 +00:00
Mark Crane b379375529 Move domain upgrade into the domain class and upgrade_schema into the schema class 2014-07-15 05:46:15 +00:00
Mark Crane 299d2081f4 Fix the menu and labels when switching domains in certain circumstances 2014-06-10 20:04:14 +00:00
Mark Crane b210e4358a Fix the user setting so they work. User settings need to be set after login 2014-05-12 23:30:26 +00:00
Mark Crane 68c735db30 Add the uuid to the SESSion array. 2014-03-21 23:49:26 +00:00
Mark Crane 93adbba412 Move the class files from includes to the resources directory. 2013-07-06 07:16:58 +00:00