Commit Graph

79 Commits

Author SHA1 Message Date
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
Alex 43eb2a5b9d
[security] sanitize the xml (#6595)
* Update call_center_queue_edit.php

* fix typo

* Update call_flow_edit.php

* Update conference_center_edit.php

* Update conference_edit.php

* Update destination_edit.php

* Update fax.php

* Update ivr_menu_edit.php

* Update ring_group_edit.php

* Update app_defaults.php

* Update ivr_menu_copy.php

* Update destination_imports.php

* Update app_defaults.php
2023-03-30 12:46:36 -06:00
Alex 7326cb845a
Set default for enabled (#6556)
* Set default for enabled

* Update conference_profile_edit.php

* Update call_block_edit.php

* Update conference_control_edit.php

* Update conference_control_detail_edit.php

* Update conference_profile_edit.php

* Update conference_profile_param_edit.php

* Update conference_edit.php

* Update destination_edit.php

* Update device_edit.php

* Update device_profile_edit.php

* Update device_vendor_edit.php

* Update email_template_edit.php

* Update extension_edit.php

* Update module_edit.php

* Update phrase_edit.php

* Update ring_group_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update time_condition_edit.php

* Update var_edit.php

* Update voicemail_edit.php

* Update call_block_edit.php

* Update default_setting_edit.php

* Update domain_setting_edit.php

* Update domain_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update call_flow_edit.php

* Update email_template_edit.php

* Update call_flow_edit.php

* Update bridge_edit.php

* Update email_template_edit.php

* Update sip_profile_edit.php

* Update sofia_global_setting_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update sip_profile_edit.php

* Update stream_edit.php

* Update default_setting_edit.php

* Update email_template_edit.php

* Update extension_setting_edit.php

* Update default_setting_edit.php

* Update dashboard_edit.php

* Update dashboard_edit.php

* Update default_setting_edit.php
2023-02-17 14:21:41 -07:00
Alex a229d1e46c
Add enabled toggle to more pages and bug fix (#6552)
* Add enabled toggle to more pages and bug fix

* Add device profile enable toggle

* fixed enable on bridge_edit.php

* Fixed enable on call_block_edit.php

* Fixed enable on call_flow_edit.php

* Fixed enable on conference_center_edit.php

* Add conference room enabled toggle

* Fixed enable on conference_control_detail_edit.php

* Fixed enable on conference_control_edit.php

* Fixed enable on conference_profile_edit.php

* Add conference profile param enabled toggle

* Fixed enable on conference_edit.php

* Fixed enabled on device_edit.php

* Fixed enable on extension_edit.php

* Fixed enable on gateway_edit.php

* Fixed enable on number_translation_edit.php

* Fixed enable on phrase_edit.php

* Fixed enable on ring_group_edit.php

* Fixed enable on sip_profile_edit.php

* Fixed enable on stream_edit.php

* Fixed enable on time_condition_edit.php

* Fixed enable on var_edit.php

* Fixed enable on voicemail_edit.php

* Fixed enable on user_edit.php

* Fixed enable on user_setting_edit.php

* Update user_edit.php

* Update bridge_edit.php

* Update call_flow_edit.php

* Update conference_control_edit.php

* Update stream_edit.php

* Fixed enable on default_setting_edit.php

* Fixed enable on domain_edit.php

* Fixed enable on email_template_edit.php

* Fixed enable on module_edit.php
2023-02-14 11:19:02 -07:00
Alex 129d173624
Add enable toggle to more pages (#6549)
* Add bridge enabled toggle

* Update call_block_edit.php

* Add call flows enabled toggle

* Add conference center enabled toggle

* Add conference control detail enabled toggle

* Add conference control enabled toggle

* Add conference enabled toggle

* Add phrase enabled toggle

* Add stream enabled toggle

* Add voicemail enabled toggle

* Add destination enabled toggle

* Add time condition enabled toggle

* Add default settings enabled toggle

* Add domain enabled toggle

* Add email template enabled toggle

* Add module enabled toggle

* Add number translation enabled toggle

* Add sip profile enabled toggle

* Add switch var enabled toggle
2023-02-13 18:02:01 -07:00
yois615 cb1777c794
[call_flow] Adjust lamp on web changes (#6519)
Trigger event on status change from WebUI
2022-12-31 11:49:33 -07:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
fusionate c67c8cd4c2 Destination Select - Dynamic: Clear session array on add/toggle/delete of a destination type record. 2020-11-30 14:15:57 -07:00
FusionPBX ffcbcf289c
Remove the deprecated save_dialplan_xml function. 2020-08-14 00:41:05 -06:00
agree 4d251bd47a
Update call_flow_edit.php 2020-04-02 19:22:56 -04:00
Nate 029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
FusionPBX 72dd15f0d4 Update call_flow_edit.php 2020-02-07 11:37:01 -07:00
Nate ba27607246 Call Flow - Add/Edit: Action bar and button updates. 2020-01-13 10:03:06 -07:00
Nate 6127274cf3 Call Flows: Add window title. 2020-01-06 10:58:55 -07:00
Nate 9acf15d844 Call Flows: Token integration. 2019-09-17 22:03:13 -06:00
Nate be2e3ab2e4 Database class integration. 2019-07-04 08:18:45 -06:00
FusionPBX dfcf4148cf Update call_flow_edit.php 2019-06-19 08:02:05 -06:00
FusionPBX 642c604b6b Update call_flow_edit.php 2019-06-17 08:51:35 -06:00
FusionPBX dd27347353 Update call_flow_edit.php 2018-11-14 15:13:57 -06:00
AlexanderDCrane aed077b313 Update call_flow_edit.php (#3378) 2018-08-31 13:24:03 -06:00
markjcrane a72f1d6266 Change messages class to message 2018-08-31 03:09:01 +00:00
AlexanderDCrane 61776a16d6 Update call_flow_edit.php (#3142) 2018-06-13 01:24:18 -06:00
AlexanderDCrane aaa73d8ca0 Escape user data on call_flow_edit.php (#3093) 2018-06-09 10:55:57 -06:00
FusionPBX 6027045dfd Update call_flow_edit.php 2018-03-19 01:21:41 -06:00
FusionPBX db62bf23ad Update call_flow_edit.php 2018-03-19 00:45:33 -06:00
FusionPBX 97b9096f08 Update call_flow_edit.php 2018-03-19 00:40:17 -06:00
FusionPBX c5ef7e04f4 Update call_flow_edit.php 2018-03-19 00:36:35 -06:00
FusionPBX c86ba536a4 Update call_flow_edit.php 2018-01-25 15:30:00 -07:00
Mafoo 3cab4401cf Enhance - More messages::add updates (#2662)
convert more messages over to messsagse::add
2017-06-09 20:13:40 -06:00
Alexey Melnichuk f939c82862 Add. Allow use `call_flow_subscribe.lua` with feature codes without `flow+` prefix. (#2609)
This commit allows create call flow extension with some feature code (e.g. `*401`)
Then on the phone you can configure BLF like `flow+*401` and use `call_flow_subscribe` to
track current status of this call flow. BLF like `*401` will also works but only if
use `call_flow_monitor` script.
Also it is possible dial `flow+*401` as well as `*401` to toggle call flow state.
2017-06-08 09:44:45 -06:00
FusionPBX c16ac554e4 Update call_flow_edit.php 2017-05-16 17:57:16 -06:00
FusionPBX 3c1a26f4b1 Update call_flow_edit.php 2017-05-02 21:30:49 -07:00
jebsolutions f13020b70c Minor fixes to HTML markup. (#2274)
call_flow_edit.php
- fix: <script> tag output before html headers
2016-12-27 10:06:30 -07:00
FusionPBX 6af1e391fe Update call_flow_edit.php
Escape the + with the back slash when used in the dialplan.
2016-11-11 13:55:11 -07:00
FusionPBX b11f927089 Update call_flow_edit.php
Escape the * with \* if it is used in the extension or feature code.
2016-10-28 15:25:38 -06:00
FusionPBX 6289f80c2d Update call_flow_edit.php 2016-10-21 10:21:56 -06:00
FusionPBX ba35b7042d Update call_flow_edit.php 2016-10-18 09:37:26 -06:00
FusionPBX c06c5fa5a8 Update call_flow_edit.php 2016-10-05 18:40:47 -06:00
FusionPBX 12d45dc5f9 Update call_flow_edit.php 2016-10-04 03:28:31 -06:00
FusionPBX 074a6131dc Update call_flow_edit.php 2016-08-13 14:18:03 -06:00
FusionPBX 921c2ad829 Update call_flow_edit.php 2016-08-13 14:10:57 -06:00
FusionPBX 9e27b0e069 Update call_flow_edit.php
Reduce the width of the sounds list for call flow edit.
2016-08-04 17:48:59 -06:00
markjcrane f5959516ed Update recur_sounds_dir to return an array rather than using a global variable. 2016-08-04 09:49:57 -06:00
Alexey Melnichuk 61d6f0be6c Add. Handler for SUBSCRIBE method for call flow application. (#1701)
* Add. Handler for SUBSCRIBE method for call flow application.

Usage:
1. Run form fs_cli `luarun call_flow_subscribe`
2. Create new call flow extension and set feature code to `flow+<EXTENSION>`(e.g. `flow+401`).
3. Set on the phone BLF key to `flow+401`

This code based on `mod_valet_parking`.

* Add. prevent running 2 copy of script.

Remove some unused vars and simplify implementation.

* Fix. Use correct protocol for send event.

* Fix. Do escape SQL arguments

* Fix. escape `+` sign in call flow extension.
2016-06-24 10:32:19 -06:00
FreeMe 7bc15229b5 Update call_flow_edit.php (#1652)
Allows the page to become multilingual
2016-06-11 15:23:49 -06:00
FusionPBX 7529c36731 Update call_flow_edit.php
Fix the call flow alternate sounds so it saves to the database and its value is displayed when loading the form.
2016-06-11 09:49:22 -06:00
FusionPBX ca6b094f1e Update call_flow_edit.php
Correct the SQL insert and updates and put the call flow sound and alternate sound into the order that matches the web interface.
2016-06-11 09:29:56 -06:00
FusionPBX 1360ba4d4f Update call_flow_edit.php
Rename the call flows using anti to alternate.
2016-06-11 09:06:12 -06:00
Alexey Melnichuk 03e62d9e91 Add. Support sound prompts on call flow. (#1645)
This file uses new way to load recordings from DB.
2016-06-11 07:33:16 -06:00
Alexey Melnichuk ea1f6068c1 Fix. Delete some keys from memcache 2015-08-24 10:34:33 +04:00