Commit Graph

49 Commits

Author SHA1 Message Date
FusionPBX
dda18481ec Refactor PHP code (#7574)
* Use settings-get method
- get default, domain and user settings
- Replace _SESSION

* Simplify get domain paging

* Change isset using empty

* Fix token name and hash

* Add new default settings category: contact, name: default_sort_column, and default_sort_order

* Update app_config.php

* Update footer.php

* Fix require.php and core/dashboard/index.php (#7563)

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Fix require.php and core/dashboard/index.php

* Update destinations.php

* Update permission.php

* Update require.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
Co-authored-by: FusionPBX <mark@fusionpbx.com>

* Update header.php

* Use settings get classes (#7567)

* access_control

* azure

* azure

* basic_operator_panel

* bridges

* call_block

* call_broadcast

* call_center

* call_flows

* call_forward

* call_recordings

* do_not_disturb

* feature_event_notify

* follow_me

* remove unused object properties

* fix esl command

* fix esl command

* conference_centers

* conference_centers - remove whitespace

* conference_controls

* conference_profiles

* conference_profiles

* Delete core/websockets/resources/classes/socket_exception.php.original~

* Delete core/websockets/resources/classes/websocket_server.php.original~

* conferences

* destinations

* device

* dialplan

* email_queue

* event_guard

* extension_settings

* extension

* fax

* fax_queue

* fifo

* gateways

* ivr_menu

* modules

* switch_music_on_hold

* number_translations

* phrases

* pin_numbers

* provision

* switch_recordings

* registrations

* ring_groups

* sip_profiles

* sofia_global_settings

* streams

* presence

* switch_files

* time_conditions

* vars

* voicemail_greetings

* voicemail

* ringbacks

* contacts

* xml_cdr

* authentication

* dashboard

* default_settings

* domain_settings

* email_templates

* permission

* user_logs

* user_settings

* users

* button

* cache

* captcha

* remove cli_option

* remove directory.php for switch_directory class

* email

* file

* groups

* event_socket use config object

* Use intval to give an integer port

* switch_settings

* tones

* fix object used before initialization

* menu

* fix copy paste error for switch_files.php

* always include require.php for framework files

* Fix missing properties

* set the action

* Use the $database object

* Add missing class properties

* Fix the domain_name

* Use public scope for domain_uuid and domain_name

* Add missing parameters

* Correct the user_uuid parameter

* Add json_validate and use it in the dashboard
update indentation on functions.php

* Intialize the active_registrations variable

* Define the $parameters

* Set a default value for user_setting_enabled

* Add condition domain_uuid not empty

* Add not empty condition for domain_uuid

* Declare the global variables

* Update how the defaults are set use ??

* Use ?? to set the default values

* Update call_center_queue_edit.php

* Prevent an error

* Add domain_name property

* Fix the null coalescing operator

* Removed domain_uuid from the URL

* Change condition to check sip_profile_domain_name

* Refactor domain_uuid declaration and comments

Removed redundant domain_uuid declaration and updated comments.

* Account for an empty value

* Refactor constructor to use settings array

Updated constructor to accept settings array for domain UUID and database initialization.

* Refactor xml_cdr.php to improve variable organization

Removed duplicate domain_uuid declaration and reorganized private variables for better structure.

* Enhance transcription button logic and icon display

Updated transcription button visibility conditions and improved application icon handling in the call flow summary.

* Refactor settings initialization in domains.php

Updated settings initialization to include domain_uuid and user_uuid.

* Modify domain change condition in require.php

Updated condition to check if 'domain_change' is not empty before proceeding.

* Set default_setting_enabled to true by default

* Enhance domain UUID check in access controls

* Enhance domain UUID check in settings list

* Refactor category display logic in vars.php

* Simplify list row URL generation

Removed domain UUID check from list row URL construction.

* Refactor module category display logic

* Fix SQL query by removing parameters variable

* Initialize result_count variable for call recordings

* Refactor leg variable usage in xml_cdr_details.php

* Update conference_room_edit.php

* Change GET to REQUEST for order and search variables

* Set timezone and SQL time format in recordings.php

Added timezone and SQL time format settings.

* Set default for ring group greeting

* Improve domain UUID check in stream listing

* Handle null voicemail_option_param safely

* Add file existence check for greeting files

Check if greeting file exists before getting size and date.

* Improve domain UUID check in email templates

* Update FIFO strategy dropdown and description text

* Add multilingual agent descriptions

Added multilingual descriptions for agents in the app_languages.php file.

* Add music on hold descriptions

* Add the chime list description

Updated copyright year from 2024 to 2025.

* Fix domain UUID check and handle email subject decoding

* Add null coalescing for $value in email_test.php

Ensure $value is not null by providing a default empty string.

* Handle undefined dialplan_uuid in input field

* Add translations for 'Status' label in multiple languages

* Fix typo in config instance check

---------

Co-authored-by: frytimo <tim@fusionpbx.com>
2025-10-15 21:24:59 -06:00
fusionate
d234fb185a Multiple Apps: Integrate content cards. 2024-09-04 16:55:24 -06:00
frytimo
3a4c2f72e2 Event socket bug fix and more docs (#6823)
* Add documentation to methods. Use is_resource for added type detection

* Allow connect to specify timeout in microseconds with default 30,000

* Update calling mechanism for event sockets

* Update project for new singleton event sockets

* remove unused variable

* catch errors on closing the socket
2023-12-02 17:16:18 -07:00
fusionate
d9d17a6917 Misc: Remove parameters from event_socket_create() calls. 2023-09-20 18:43:17 +00:00
FusionPBX
c393b27bf3 Bug fixed for conference active 2023-06-27 10:15:05 -06:00
frytimo
d7bbcd89f5 Use magic constant dir (#6711)
* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__

* use magic constant __DIR__ to load only functions.php

* replace spaces with tab character

* update dirname command to use levels instead of nesting

* use magic constant __DIR__

* update dirname command to use levels instead of nesting

* Update access_control_edit.php

* Update access_control_import.php

* Update access_controls.php

* Update dnd.php

* Update access_controls_reload.php

* Update call_center_agents.php

* Update call_center_agents.php

* Update fax_queue.php

* Update login.php

* Update pdo.php

* Update pdo_vm.php

* Update switch.php

* Update index.php

* Update css.php

* Update v_mailto.php

* Update fax_to_email.php

---------

Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-06-15 11:28:23 -06:00
Alex
410f5e6f68 more php 8.1 changes (#6727)
* Update call_broadcast.php

* Update call_broadcast_edit.php

* Update conference_center_edit.php

* Update call_flows.php

* Update conference_room_edit.php

* Update conference_sessions.php

* Update conference_session_details.php

* Update conference_rooms.php

* Update conference_controls.php

* Update conference_control_edit.php

* Update conference_control_details.php

* Update conference_control_detail_edit.php

* Update conference_profiles.php

* Update conference_profile_edit.php

* Update conference_profile_params.php

* Update conference_profile_param_edit.php

* Update conferences.php

* Update conference_edit.php

* Update conferences.php

* Update conference_interactive_inc.php

* Update contacts.php
2023-05-31 09:11:50 -06:00
fusionate
c92ebd8f0a Active Conferences - Interactive: Adjust Joined and Quiet formatting. 2023-05-27 18:54:43 +00:00
fusionate
035ba1b86b Active Conferences: Updates for PHP 8.1 2023-05-25 21:08:30 +00:00
frytimo
fef8165be2 Frytimo pr patches for php8.1 (#6630)
* Passing null to parameter #2 ($string) of type string is deprecated

* Passing null to parameter #1 ($string) of type string is deprecated

* php 8.1 fixes

* php 8.1 fixes - replace strlen($var) > 0 with !empty($var)

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - replace ${var} with {$var}

* php 8.1 fixes - strlower with null

* php 8.1 fixes - strreplace with null

* php 8.1 fixes - passing null to base64_decode

* php 8.1 fixes - check for false and check for null on $this->dir

* php 8.1 fixes - remove assignment of $db variable to modules object

* php 8.1 fixes - avoid sending null to substr

* php 8.1 fixes - change ${var} to {$var}

* php 8.1 fixes - check for null before preg_replace

* php 8.1 fixes - remove setting db variable on domains object

* php 8.1 fixes - set empty string if $row['domain_setting_subcategory'] is null

* php 8.1 fixes - set empty string if $_REQUEST['show'] is not available

* php 8.1 fixes

* php 8.1 fixes - correct $_POST checking syntax

* php 8.1 fixes - correct $_POST variables

* php 8.1 fixes

* Use brackets consistently

* Update user_setting_edit.php

* Change to not empty

* Update device.php

* Update text.php

---------

Co-authored-by: Tim Fry <tim@voipstratus.com>
Co-authored-by: FusionPBX <markjcrane@gmail.com>
2023-05-05 10:46:37 -06:00
fusionate
a7437be120 Interactive Conference - Add left margin to video icon, like others. 2023-02-02 20:06:40 +00:00
fusionate
2092156157 Active Conferences: Show Conference/Room name and extension numbers. Conferences - Edit: Fix View button. Conferences - List: Add View link. 2023-01-31 19:59:08 +00:00
markjcrane
d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
markjcrane
88f730b251 Change simple conference switch name from uuid@domain to extension@domain 2021-04-28 14:23:35 -06:00
FusionPBX
7e52d8b132 Fix Caller ID name and number URL decoding. 2020-07-23 10:41:59 -06:00
hershyheilpern
3a97d75136 conference_interactive_inc.php change talking png to font-awesome (#5219)
* Update conference_interactive_inc.php

* Delete talking.png
2020-03-29 13:59:57 -06:00
hershyheilpern
f38b5f4938 Update conference_interactive_inc.php (#5217) 2020-03-27 14:06:38 -06:00
hershyheilpern
c1f47f31da Conference center raise hand feature (#5212)
* Update app_languages.php
* Update conference_interactive_inc.php
* Update conference_exec.php
* Create raise_hand.lua
* Update conference.conf
* Update app_languages.php
2020-03-26 21:22:44 -06:00
Nate
dbbcefe2c7 Conferences Inter/Active: Button updates. 2020-01-13 13:54:08 -07:00
FusionPBX
9f70993ba8 Update conference_interactive_inc.php 2019-08-10 11:00:31 -06:00
FusionPBX
d342cc04d5 Update conference_interactive_inc.php 2019-08-10 10:25:12 -06:00
FusionPBX
6422e7fd72 Update conference_interactive_inc.php 2019-06-16 15:04:43 -06:00
FusionPBX
e5af2e2552 Update conference_interactive_inc.php 2019-06-16 10:08:00 -06:00
Stefan Siegel
dc54439760 Fix the interactive conference "+Vol" button control (#2564) 2017-05-07 11:35:41 -06:00
Stefan Siegel
1ee633cd10 Make presence for conferences work out of the box (#2514)
Use '@' instead of '-' for separating conference name and domain, which
is what FreeSWITCH mod_conference uses.
2017-04-17 09:01:04 -06:00
markjcrane
4427abbf52 Fix the warning for the interactive conference page. 2016-04-29 17:55:27 -06:00
markjcrane
cde9debb29 After removing domain name from the default recordings dir path need to add the domain name every where the recordings directory is currently used. 2015-12-06 13:37:35 -07:00
Nate Jones
c4fc6ac111 Interactive Conference: Removed some testing code, fixed formatting of Joined and Quiet times. 2015-02-25 21:03:15 +00:00
Nate Jones
f047fd90b1 Interactive Conference: Simplified layout a bit, added icons. 2015-02-25 20:38:24 +00:00
Nate Jones
18589125d3 Conferences: Visual adjustments, fixed Active Conferences links.
Active Conferences: Reworked/renamed permissions, removed Active Conference from the User's menu (addressing Issue 662), misc visual adjustments.
Conference Center: Misc visual adjustments.
2015-02-12 02:09:59 +00:00
Nate Jones
c8bad65314 Interactive Conference: Removed echo of error on try/catch. 2015-02-05 02:59:49 +00:00
Nate Jones
04b1f9a0bc Interactive Conference: Replace recording status text with an icon. 2015-02-05 00:43:17 +00:00
Mark Crane
c5755666cb Add the text class to more of the applications. 2015-01-18 10:06:08 +00:00
Nate Jones
f2e32f4909 Interactive Conference: URL Decode Caller ID Name. 2014-06-21 10:54:37 +00:00
Mark Crane
8f8fd3e3e8 Audited the permissions names. Permissions names are to be non plural. 2013-09-21 21:45:35 +00:00
Mark Crane
c44d39dcf9 Change the path for includes/require.php to the resources directory. 2013-07-06 06:03:27 +00:00
Mark Crane
6a70d8db41 Change includes/checkauth.php to resources/check_auth.php. 2013-07-06 05:50:55 +00:00
Mark Crane
f66717487b Change the active conference links into buttons. 2013-03-26 19:32:38 +00:00
Mark Crane
faeee96624 Change kick and kick all to uuid_kill so that the participant's call is logged to the database. Fix recordings and the announce that the call is being recorded for the first person to join the conference. Add a permission to control the conference session 'details' column in the conference sessions so CDR link can be hidden from the user. Don't allow a conference moderator and participant to use the same pin number. 2013-03-15 17:12:13 +00:00
Mark Crane
f7d6b9a148 When the conference call is record is selected then play an announcement for an active call.
Add a permission for showing the active conference video column.
2013-02-27 11:06:44 +00:00
Mark Crane
476041bce3 Improve some of the text in conference center. Toggle mute all with unmute all. A few other minor adjustments. 2013-02-02 09:54:20 +00:00
Mark Crane
b80c2912eb Add title to 'Mute All' so that however displays 'Mute all but moderator'. Fix the lock button label on the active conferences. 2013-02-02 06:32:40 +00:00
Mark Crane
c7ad809ed1 Add mute all and end conference to active conferences. 2013-02-01 15:49:37 +00:00
Mark Crane
026242ac71 Update active conference add a column to identifier the moderator. 2013-01-25 15:42:52 +00:00
Mark Crane
d92d1e06b5 Record the conference call using the option from conference center. 2013-01-23 14:48:47 +00:00
James Rose
4104f5a51f App->conferences_active, added preliminary support for translations. 2012-11-24 17:58:54 +00:00
Mark Crane
012e7e8b9b Get the uuid and record, use both to improve recordings. 2012-10-27 02:01:36 +00:00
Mark Crane
9009ed0fbd Update the links to the file names that have changed. 2012-09-13 08:17:15 +00:00
Mark Crane
9aaad604bf Remove the v_ from the php file name. 2012-09-13 08:12:40 +00:00