Commit Graph

6500 Commits

Author SHA1 Message Date
Harry G. Coin
64eeca8e2d Fix so fusionpbx doesn't fail on servers with php versions later than 5. (e.g. php7).
Also a few warning causes fixed.
Also, one step along the way to allow freeswitch to be u freeswitch g freeswitch and fusionpbx to run www-data:www-data.
2016-04-25 20:52:21 -05:00
Harry G. Coin
179f4840a8 include omitted column name, partial fix to support mariadb 10.1. 2016-04-25 20:44:30 -05:00
Harry G. Coin
96e71eadf7 ensure the directory variable actually has a directory name. 2016-04-25 20:40:23 -05:00
Harry G. Coin
91a92d8e5e \r\n --> \n
Cause all the .php files containing lines ending with \r\n to instead end with \n.

DYI with:

find fusionpbx -type f -name '*.php' -exec dos2unix '{}' \;
2016-04-25 20:30:23 -05: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
reliberate
48876aa39b Users: Correct username input field type (from 'txt' to 'text'). 2016-04-25 15:07:42 -06:00
reliberate
b1becf5f17 Theme: Revert CSS change.
Contacts: Change email input field type to 'text' instead of 'email'.
2016-04-25 10:34:39 -06:00
reliberate
7531cc15e5 Theme: Add input[type=email] to styles. 2016-04-25 10:26:17 -06:00
FusionPBX
3b73e0c1d1 Update user_dashboard.php
Add an inline if statement to the user dashboard.
2016-04-22 13:43:02 -06:00
markjcrane
81746f1233 Minor change to contact edit. 2016-04-22 10:35:27 -06:00
markjcrane
2fd1a44842 voicemail_id is not guaranteed to be numeric so can't use the cast unless we protect against non numeric ids. 2016-04-19 14:05:12 -06:00
markjcrane
3758d84216 Add the lan acl as a default again. 2016-04-19 00:21:52 -06:00
FusionPBX
06f6f1302e Merge pull request #1553 from moteus/intercept_direction
Add. optional intercept only inbound/outbound calls.
2016-04-18 22:54:03 -06:00
FusionPBX
4230d3b414 Merge pull request #1450 from daniel-lucio/patch-3
Wrong variable in freeswitch.email
2016-04-18 21:20:44 -06:00
Alexey Melnichuk
15fbc21b4d Add. optional intercept only inbound/outbound calls.
Note.
  * `inbound` is call to some extension
  * `outbound` is call from some extension to external number.

Currently there no way to find call from extension to extension as `outbound`
2016-04-18 16:06:27 +03:00
markjcrane
a54772c406 Restore the path to config.lua. 2016-04-16 00:44:10 -06:00
markjcrane
09d304a1aa Use the connect method in the constructor. 2016-04-16 00:27:24 -06:00
markjcrane
a2b6f24a36 Get the db_type, db_username, db_password, and more using the constructor. 2016-04-16 00:21:01 -06:00
markjcrane
ca06335136 Set the full path to the config.lua script. 2016-04-15 23:16:19 -06:00
markjcrane
7277ed8f49 Set the sciprt directory from the session variable. 2016-04-15 19:57:29 -06:00
markjcrane
abb6a9b770 Get the database connection for save_phrases_xml.php. 2016-04-15 19:52:21 -06:00
markjcrane
2b1ede0b70 Only set switch default settings for variables that are enabled. 2016-04-15 19:44:55 -06:00
markjcrane
406c36b6b4 Only set the SESSION variables from default settings for the switch category. 2016-04-15 19:39:55 -06:00
markjcrane
a59bfe1021 Change the object name install_fusionpbx.php uses dbh instead of db. 2016-04-15 19:31:47 -06:00
markjcrane
157f49a303 Update the install to set the default setting session variables. 2016-04-15 19:27:19 -06:00
markjcrane
df9d9a5e9d Fix the redirect on two more files. 2016-04-15 18:40:23 -06:00
markjcrane
f03cbc7b1a Fix the install path for the redirect. 2016-04-15 18:39:12 -06:00
markjcrane
49a53db5d1 If the event socket information is not set then use the defaults. 2016-04-15 18:22:28 -06:00
markjcrane
3efb6881db Add missing 'this' 2016-04-15 18:07:47 -06:00
markjcrane
e8640966fd Add the switch default settings in a more efficient way. 2016-04-15 17:59:34 -06:00
markjcrane
4a564a1215 Use a more efficient way to add the default settings. 2016-04-15 09:24:55 -06: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
fdc0435ab3 Update groups.php. 2016-04-14 23:12:57 -06:00
markjcrane
6828efb12c Update the scripts class. 2016-04-14 23:09:49 -06:00
markjcrane
2e875b106b Missed two of the $db connections. 2016-04-14 23:05:05 -06:00
markjcrane
4702530944 Remove the global $db connection in switch.php. Future will move all of these functions to php class methods. 2016-04-14 23:00:36 -06:00
markjcrane
70524407a6 Update the constructor and $db connection handling in the groups and switch_settings classes. 2016-04-14 22:38:28 -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
6e5fe31303 Schema use $this->$db instead of $db. 2016-04-14 21:51:11 -06:00
markjcrane
f16259f268 Work on the install. 2016-04-14 21:14:40 -06:00
markjcrane
ed06174cda Set extension summary to use GET instead of POST. 2016-04-14 21:11:05 -06:00
markjcrane
fbc3ac5e70 Remove the last contact_email field that was deprecated. 2016-04-14 20:13:40 -06:00
markjcrane
5ca4307ef1 Combine some of the default settings. 2016-04-14 20:11:47 -06:00
markjcrane
7fc9e44768 Update the extension summary in preparation to expand it further. 2016-04-14 15:08:16 -06:00
markjcrane
ea0c3e9220 Make the advanced -> command execute page more compact. 2016-04-14 14:50:06 -06:00
markjcrane
8b5e166eda Remove contact_email from v_contacts table as this was replaced by the v_contact_emails table. 2016-04-14 10:40:25 -06:00
FusionPBX
d709dc3595 Merge pull request #1547 from moteus/fax_allowed_extension
Add. `allowed_extension` array to specify allowed files in email.
2016-04-14 09:32:17 -06:00
Alexey Melnichuk
969889cc98 Add. allowed_extension array to specify allowed files in email. 2016-04-14 17:38:33 +03:00