Commit Graph

39 Commits

Author SHA1 Message Date
frytimo d529021b3f
Use boolean setting as true boolean (#7284)
* use boolean setting as true boolean

* Update settings class to use the php filter_var function for boolean
Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested.
I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here.

* Update settings class to use the php filter_var function for boolean
Using the built-in filter type for boolean seems like a better option as they are faster, already hardened, and more widely tested.
I found this better method used originally by Mark J. Crane in 2022 in the content.php page so I included it here.
2025-03-04 11:25:47 -07:00
markjcrane 68c79ca0a3 Remove carriage return per line and leave only line feeds 2024-09-19 17:14:21 -06:00
Alex cb6edd88ef
Added content card to applications (#7121) 2024-09-05 17:10:04 -06:00
fusionate 2c298113f6
Destinations - Import/Export: Include Conditions and Actions. 2023-07-31 23:27:45 +00: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 25b24d68bd
Fixed more php 8.1 errors (#6754)
* Update default_setting_edit.php

* Update default_settings_reload.php

* Update modules.php

* Update access_controls_reload.php

* Update call_recordings.php

* Update fax.php

* Update extension_edit.php

* Update extension_imports.php

* Update destination_imports.php

* Update dialplan_outbound_add.php

* Update dialplan_inbound_add.php

* Update voicemail_imports.php

* Update contact_import.php
2023-06-12 17:06:56 -06:00
fusionate a707462979
Destinations - Import: Updates for PHP 8.1 2023-05-22 23:05:25 +00:00
FusionPBX eb84bf476b
Add hangup_after_bridge and continue_on_fail
Add both of these variables when using destination bridge application.
2023-05-06 20:38:01 -06: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
FusionPBX eac6f09832
Update how dialplan_detail_type is sanitized
These detail types are safe: ${sip_to_user} and ${sip_req_user}
2023-03-31 13:34:22 -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
FusionPBX b449bef03e
Use preg_replace instead of escape (#6575)
Escape broke auto matching fields use preg_replace instead.
2023-03-10 09:54:49 -07:00
agree 4c29c3c4cf
[security] import pages xss prevention (#6553) 2023-02-14 15:34:53 -07:00
markjcrane d50bcb476a Replace root.php 2022-10-10 16:35:14 -06:00
FusionPBX aa2d0eb477
Show the file name on the second page of the import. 2022-09-06 17:15:35 -06:00
markjcrane 4f2987da2d Add destination_actions type json allows adding multiple actions 2022-07-15 22:38:21 -06:00
frytimo 48b93b66a1
Allow the use of TAB as a delimiter (#5931)
Allows the use of TAB character for a delimiter while importing.
2021-10-14 00:46:33 -06:00
chansizzle 7ffb4efb61
Update destination_imports.php (#5354)
start data on row 2
2020-07-15 16:53:42 -06:00
FusionPBX 23200b1981
Update destination_imports.php 2020-04-09 14:15:32 -06:00
FusionPBX 7fdb9e81fd
Update destination_imports.php 2020-04-09 14:04:30 -06:00
Nate 029c7174b4 Multiple - Add IDs to common/default action buttons. 2020-03-05 00:05:45 -07:00
Nate fd9b664819 Destinations - Import: Misc consistency updates. 2020-02-12 10:46:52 -07:00
Nate 5e4e57c8b2 Destinations - Edit/Import: Action bar and button updates, token integration. 2020-01-11 12:23:27 -07:00
FusionPBX 8a3356b019 Update destination_imports.php 2019-12-27 19:34:42 -07:00
FusionPBX 74ad9e8f46 Update destination_imports.php 2019-10-03 12:57:02 -06:00
Nate 39fd0971d0 Destinations: Fix CSV import delete. 2019-10-02 18:12:48 -06:00
chansizzle 9af19f3236 Update destination_imports.php (#4714) 2019-10-02 15:46:05 -07:00
FusionPBX f6d2591800 Update destination_imports.php 2019-09-07 01:21:34 -06:00
FusionPBX 1792a541b9 Update destination_imports.php 2019-08-13 00:07:29 -06:00
Nate 77cdc6ea89 Database class integration. 2019-07-29 13:18:48 -06:00
FusionPBX bd1a5799de Update destination_imports.php 2019-06-18 16:58:08 -06:00
AlexanderDCrane aa31288df3 Update destination_imports.php (#4266)
* Update destination_imports.php

* Update destination_imports.php
2019-06-08 14:54:59 -06:00
FusionPBX baaa3694a6 Update destination_imports.php 2019-04-18 12:23:12 -06:00
FusionPBX 06182321ee Update destination_imports.php 2019-04-17 23:26:49 -06:00
FusionPBX d38dc0c235 Update destination_imports.php 2019-04-17 23:26:09 -06:00
FusionPBX 47fcfb08c2 Update destination_imports.php 2018-09-28 11:47:45 -06:00
FusionPBX 8fce550763 Update destination_imports.php 2018-09-28 11:37:41 -06:00
FusionPBX 80f27f5201 Update destination_imports.php 2018-09-28 10:46:44 -06:00
FusionPBX 8ebc6e46bb Rename app/destination_imports/destination_imports.php to app/destinations/destination_imports.php 2018-09-28 10:43:27 -06:00