Commit Graph

81 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
frytimo
9b0eead911 Fix incorrect name on disk usage chart (#7237)
* fix incorrect name on disk usage chart

* put correct information in disk usage for Linux and FreeBSD systems

* Update system_disk_usage.php

* Update system_disk_usage.php
2025-02-13 14:18:36 -07:00
frytimo
7c887184ff adjust system service dashboard widget to not show by default (#7233) 2025-01-28 12:17:04 -07:00
frytimo
96da9967e0 create system services dashboard item (#7231)
* create system services dashboard item

* update internationalization language file used in system_services
2025-01-28 10:20:36 -07:00
FusionPBX
f44f9636db Cast to integer
This prevents an error that was seen on FreeBSD
2024-10-26 22:16:35 -06:00
Alex
01e41b09a1 Update system_status.php (#7134) 2024-09-16 14:14:17 -06:00
FusionPBX
795343379c Handled in its own dashboard widget
For this reason remove the registration count from system status.
2024-09-14 21:49:53 -06:00
FusionPBX
540efc355f Move the get_memory_details functions 2024-09-14 21:38:14 -06:00
Alex
ca10a3e518 Update registrations.php (#7133) 2024-09-14 16:12:37 -06:00
Alex
7edc65fce4 Fixed alignment on dashboard system status progress bars (#7132) 2024-09-14 10:56:18 -06:00
FusionPBX
c406761897 Update system_status.php 2024-09-13 21:32:08 -06:00
FusionPBX
88b76a4e6d Dashboard widgets collapsed by default 2024-09-13 19:28:13 -06:00
FusionPBX
8e9527a1c1 Update system_status widget add memory details
Completed work on disk usage percentage
2024-09-13 19:15:15 -06:00
Alex
5e6d494796 Add progress bar to system status dashboard (#7131)
* Add progress bar to system status dashboard

* Update dashboard_edit.php

* Update app_languages.php

* Update config.php
2024-09-13 17:00:21 -06:00
FusionPBX
8c67b31441 Update config.php 2024-09-13 16:41:05 -06:00
FusionPBX
69c0827669 Add system status
Disable system cpu and disk usage dashboard widgets
2024-09-13 15:14:05 -06:00
FusionPBX
4af96791a5 Create system_disk_usage.php 2024-09-13 15:09:35 -06:00
FusionPBX
43e72c974d Fix the disk usage for FreeBSD 2024-08-27 14:34:41 -06:00
FusionPBX
b0aab10872 Simplify the dashboard path 2024-08-21 16:58:44 -06:00
FusionPBX
d1105f70ba Update config.php 2024-07-28 10:18:38 -06:00
frytimo
bc5165572a Use ini_get to retrieve the session path instead of using session_path (#7067)
When using session_path, the session must be active and will automatically activate the session. This is a better method so that the session is never started.

Co-authored-by: Tim Fry <tim@fusionpbx.com>
2024-07-24 11:28:34 -06:00
frytimo
d7f05621c7 Implement changes in to the session class (#7042) 2024-07-09 12:50:01 -06:00
Alex
1ef5f1dab0 Dashboard - Icon widget hover settings (#7016)
* Update system_counts.php

* Update system_cpu_status.php

* Update system_status.php

* Update voicemails.php

* Update missed_calls.php

* Update recent_calls.php

* Update index.php

* Update app_defaults.php

* Update app_defaults.php

* Update index.php

* Update index.php

* Update dashboard_edit.php

* Update index.php

* Update app_defaults.php

* Update css.php

* Update icon.php

* Update dashboard_edit.php

* Update app_config.php

* Update app_defaults.php

* Update css.php

* Update app_languages.php

* Update index.php

* Update dashboard_edit.php
2024-06-21 16:44:31 -06:00
Alex
7640cd21c9 Dashboard - Add row span setting (#7007) 2024-06-12 16:49:34 -06:00
Alex
f6e6750efc Dashboard - Minor changes (#6993) 2024-06-03 11:40:05 -06:00
Alex
b35b447344 Update Chartjs and Sortablejs (#6978)
* minor bug fix

* fix spacing of legend

* remove extra line break

* minor bug fix

* Update dashboard_edit.php

* Update chart.min.js

* Update sortable.min.js
2024-05-16 09:27:00 -06:00
Alex
301a1f69a0 Move dashboard defaults settings to theme (#6973) 2024-05-08 13:41:21 -06:00
Alex
66b57a7784 Dashboard - Add gradient background color settings (#6972)
* Dashboard - Add gradient background color setting
2024-05-08 09:54:18 -06:00
Alex
5eead0d88a Dashboard - Add disabled option to details state (#6962)
* Dashboard - Add disabled option to details state
2024-04-25 23:36:54 -06:00
Alex
28efea22fd Dashboard - Add background color settings (#6959)
* Dashboard - Add background color settings

* Update missed_calls.php

* Update recent_calls.php

* Update app_languages.php

* Update app_config.php

* Update dashboard_edit.php

* Update index.php

* Update css.php

* Update system_status.php

* Update system_cpu_status.php

* Update system_counts.php

* Update system_counts.php

* Update switch_status.php

* Update index.php

* Update system_counts.php

* Update domain_limits.php

* Update call_forward.php

* Update caller_id.php

* Update ring_group_forward.php
2024-04-24 14:14:24 -06:00
Alex
808e2cbe66 Dashboard - Add chart type setting (#6951)
* Dashboard - Add chart type setting
2024-04-18 16:57:45 -06:00
Alex
1412ed7f68 Dashboard - Add text color settings (#6950)
* Dashboard - Add text color setting
2024-04-17 16:01:54 -06:00
fusionate
da67642e96 System Status: Remove old Ace Editor control icons. 2024-01-24 20:55:57 +00:00
fusionate
657cbb1b48 System Status: Enhance Support Information section. 2024-01-24 16:49:10 +00:00
frytimo
4e9dd1cdc9 Create information area for bug reports or errors to the Support Team (#6876)
* initial commit for system information bug report data

* add javascript to copy to clipboard

* add javascript to copy to clipboard

* Update copy_to_clipboard.js

* Update system.php

* Update app_languages.php

Add other languages

* move function file to resources/functions directory

* use the array returned from system_information function

* Update app_languages.php

* update path locations

* remove require files

* Merge origin/create_json_page_for_bug_report into create_json_page_for_bug_report
2024-01-23 16:11:51 -07:00
Ahron Greenberg (agree)
e050827598 [dashboard] Fix memory exhaustion on system counts (#6844)
Getting all rows from the database caused PHP to exhaust the memory on systems with a huge amount of VM messages. This was fixed by querying from the database just the total counts.
2023-12-07 18:40:23 -07: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
FusionPBX
1bbe9b2f8a Prevent CPU number showing more than once on BSD 2023-07-22 09:50:11 -06:00
FusionPBX
890321e338 Update !empty instead of ! = '' 2023-07-06 11:55:20 -06:00
markjcrane
32051873be Use __dir__ to find resources/require.php 2023-06-16 22:49:09 -06:00
volga629-1
bbc6b5d280 Simplified version of uptime for Linux (#6733) 2023-05-31 18:41:35 -06:00
markjcrane
10c39f9bcb Code cleanup to solve a few minor issues 2023-05-16 16:14:39 -06:00
fusionate
9ec44fed71 Dashboard - System Counts: Updates for PHP 8.1 2023-05-10 23:06:59 +00:00
fusionate
71b14727a7 Dashboard - System Status: Updates for PHP 8.1 2023-05-10 22:40:02 +00:00
fusionate
c894161060 Dashboard - System Status: Updates for PHP 8.1 2023-05-10 22:38:11 +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
frytimo
81d3adbd35 cast string to float for memory usage shell_exec call (#6626)
Co-authored-by: Tim Fry <tim@voipstratus.com>
2023-04-26 20:26:53 -06:00
Alex
2acda5ea06 Add dashboard, device, extension, and gateway enabled toggle (#6548)
* Update system_counts.php

* Update call_forward.php

* Add dashboard widget enabled toggle

* Add device enabled toggle

* Add extension enabled toggle

* Add gateway enabled toggle

* Update extension_edit.php

* Update extension_edit.php

* Update device_edit.php

* Update gateway_edit.php
2023-02-10 11:14:43 -07:00
fusionate
d04b6db96a Dashboard: Call Forward widget, Edit position without reload, misc adjustments. 2023-01-31 00:19:09 +00:00
fusionate
b35aafc391 Dashboard: Click chart to expand/contract details. 2023-01-28 01:52:13 +00:00