Commit Graph

6475 Commits

Author SHA1 Message Date
Harry G. Coin bda6861f88 \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 8abe003a71 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 b4c5c79a4d Users: Correct username input field type (from 'txt' to 'text'). 2016-04-25 15:07:42 -06:00
reliberate f1300d1ac6 Theme: Revert CSS change.
Contacts: Change email input field type to 'text' instead of 'email'.
2016-04-25 10:34:39 -06:00
reliberate bb93aea5ba Theme: Add input[type=email] to styles. 2016-04-25 10:26:17 -06:00
FusionPBX 6a1a208864 Update user_dashboard.php
Add an inline if statement to the user dashboard.
2016-04-22 13:43:02 -06:00
markjcrane 386dcb0521 Minor change to contact edit. 2016-04-22 10:35:27 -06:00
markjcrane 85439ff62e 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 a62123c3e3 Add the lan acl as a default again. 2016-04-19 00:21:52 -06:00
FusionPBX cdba087744 Merge pull request #1553 from moteus/intercept_direction
Add. optional intercept only inbound/outbound calls.
2016-04-18 22:54:03 -06:00
FusionPBX 5b779b5882 Merge pull request #1450 from daniel-lucio/patch-3
Wrong variable in freeswitch.email
2016-04-18 21:20:44 -06:00
Alexey Melnichuk 07b2858852 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 38922f6bc5 Restore the path to config.lua. 2016-04-16 00:44:10 -06:00
markjcrane 6b7513dcb0 Use the connect method in the constructor. 2016-04-16 00:27:24 -06:00
markjcrane 9c0c7dbfcf Get the db_type, db_username, db_password, and more using the constructor. 2016-04-16 00:21:01 -06:00
markjcrane 37e42ae754 Set the full path to the config.lua script. 2016-04-15 23:16:19 -06:00
markjcrane 44850f0246 Set the sciprt directory from the session variable. 2016-04-15 19:57:29 -06:00
markjcrane 29e3c2eda2 Get the database connection for save_phrases_xml.php. 2016-04-15 19:52:21 -06:00
markjcrane f1ac6eb9bd Only set switch default settings for variables that are enabled. 2016-04-15 19:44:55 -06:00
markjcrane 6a8ee0e075 Only set the SESSION variables from default settings for the switch category. 2016-04-15 19:39:55 -06:00
markjcrane 31b6597c19 Change the object name install_fusionpbx.php uses dbh instead of db. 2016-04-15 19:31:47 -06:00
markjcrane 12420d1534 Update the install to set the default setting session variables. 2016-04-15 19:27:19 -06:00
markjcrane 343abf2511 Fix the redirect on two more files. 2016-04-15 18:40:23 -06:00
markjcrane c99caf57bb Fix the install path for the redirect. 2016-04-15 18:39:12 -06:00
markjcrane 7a8587184c If the event socket information is not set then use the defaults. 2016-04-15 18:22:28 -06:00
markjcrane 403ab64339 Add missing 'this' 2016-04-15 18:07:47 -06:00
markjcrane 2b5075b2f4 Add the switch default settings in a more efficient way. 2016-04-15 17:59:34 -06:00
markjcrane 8731afb5e2 Use a more efficient way to add the default settings. 2016-04-15 09:24:55 -06:00
markjcrane 9dac571bdb 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 4b55af24f7 Add class_exists 2016-04-14 23:23:14 -06:00
markjcrane 3ecb6afea2 Update groups.php. 2016-04-14 23:12:57 -06:00
markjcrane 317a47582e Update the scripts class. 2016-04-14 23:09:49 -06:00
markjcrane e9415fd26c Missed two of the $db connections. 2016-04-14 23:05:05 -06:00
markjcrane 8392bdeafa 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 a6cd585315 Update the constructor and $db connection handling in the groups and switch_settings classes. 2016-04-14 22:38:28 -06:00
markjcrane c2ecb23413 Add a contructor to the dialplan class. 2016-04-14 22:34:10 -06:00
markjcrane 45c391ab76 Update domains and schema classes. 2016-04-14 22:10:47 -06:00
markjcrane d34d709e37 Schema use $this->$db instead of $db. 2016-04-14 21:51:11 -06:00
markjcrane 5799ce6497 Work on the install. 2016-04-14 21:14:40 -06:00
markjcrane 3f5f268c15 Set extension summary to use GET instead of POST. 2016-04-14 21:11:05 -06:00
markjcrane 19f9bc58cd Remove the last contact_email field that was deprecated. 2016-04-14 20:13:40 -06:00
markjcrane 67e1e7b798 Combine some of the default settings. 2016-04-14 20:11:47 -06:00
markjcrane 2d03d7f961 Update the extension summary in preparation to expand it further. 2016-04-14 15:08:16 -06:00
markjcrane 29ef9d4b6d Make the advanced -> command execute page more compact. 2016-04-14 14:50:06 -06:00
markjcrane c630449636 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 43e15018f0 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 85454fbc9c Add. `allowed_extension` array to specify allowed files in email. 2016-04-14 17:38:33 +03:00
reliberate e31985db96 Login: Add IDs to submit buttons. 2016-04-13 16:32:40 -06:00
reliberate aeabb4a072 Misc: Fix datetimepicker on Time Conditions, CDR, Contact Times, etc.
Misc: Fix textarea height.
Theme: CSS adjustments to correct misc bugs.
2016-04-13 13:23:07 -06:00
reliberate f0372faed1 Theme: Rework login settings, add settings to enable ability control login page background image(s) and color(s) separately from standard background image(s) and color(s). 2016-04-12 16:18:50 -06:00