Commit Graph
902 Commits
Author SHA1 Message Date
Mark Brugnoli-Vinten 08079722e8 Update check_all_pages to allow options to adjust checks 2022-11-30 10:37:38 +00:00
TheWitness 6528174e22 QA: Add missing function
This is a function that was specifically written for the package plugin.
2022-11-27 18:54:26 -05:00
netniV 24927242a1 Allow form input validation to be reported to GUI (#5021)
Closes #5021
2022-11-27 22:48:49 +00:00
netniV 4b6163f40e Allow null returns from filter_value 2022-11-27 16:03:42 +00:00
netniV 98dc9acb65 Some fixups during testing 2022-11-27 15:52:13 +00:00
Mark Brugnoli-Vinten d1102e8688 Testing fixes 2022-11-27 03:39:03 +00:00
netniV 9eb99489ae Fix up some minor issues with versioning 2022-11-27 03:10:15 +00:00
TheWitness 18a995964d Make audit_database.php work for cross checkin
Just checking the schema against the audit.  Finding some discrepancies.
2022-11-27 02:58:57 +00:00
TheWitness 4322829940 Fixing issue where php throws error due to empty request variable 2022-11-27 02:43:31 +00:00
TheWitness 678dc77601 Fix syntax error in functions 2022-11-27 02:30:21 +00:00
netniV 57ce74c8b6 Fixing #4336 2022-11-27 02:12:18 +00:00
netniV bd2e340ff8 Allow CDEF to be used as a filter for Graph/Graph Templates (#2439)
Closes #2439
2022-11-27 01:55:53 +00:00
netniV 77bb4ddc21 Ability to disable a site (#3740)
Closes #3740
2022-11-27 01:46:10 +00:00
netniV c010873918 Fix issue with update_host_status 2022-11-27 01:17:16 +00:00
netniV 4d877ad8c8 Fix email issues 2022-11-27 01:15:54 +00:00
netniV e03d0fc617 Fix issue with new theme detection 2022-11-27 01:09:05 +00:00
netniV e0b479d090 Fix up clean up functions to allow for nulls 2022-11-27 00:04:29 +00:00
TheWitness 4e4db97012 More issues with mixed input variable types 2022-11-26 23:57:20 +00:00
TheWitness ab3628ecb8 Third argument to array_rekey is mixed 2022-11-26 23:54:17 +00:00
TheWitness 8b17d58871 Fix Functions for GUI to Work Again and Misc Others
- Fixing some typing
- Remove spurious debug statement
- Change some alignment
2022-11-26 23:47:35 +00:00
netniV 2e1c16387f Make changelog more accessible for future feature changes 2022-11-26 23:23:07 +00:00
netniV 550b697678 Fix depreciated get_cacti_version() usage and add backtrace info 2022-11-26 22:34:28 +00:00
netniV 187c691c68 Minor QA on web log filtering 2022-11-26 21:23:53 +00:00
netniV cbad48ca9e Allow searching logs by name, not just id (#3679)
This commit also introduces expansion settings so that
log expansion can be turned off.  Some users may have
logs too large to cope with expansion.

The default will be full expansion to allow this feature
to work by default (see LOG_EXPAND_FULL and the 'log_expand'
configuration option)

Closes #3679
2022-11-26 20:54:50 +00:00
netniV 18b5221da3 Relocate the delete button for collectors (#3677)
This commit moves the delete button for collectors from the listing page
to the edit page for safety.  It also prevents accident deletion of
multiple collectors at the same time.

Closes #3677
2022-11-26 19:52:30 +00:00
netniV 2968aad3a2 Add 'created' to host and QA on versioning
- Adds a new field 'created' to the host table
- Fixes some issues ihe git source timestamp checks
- Adds support for datetime/date to use CURRENT_TIMESTAMP

Closes #3260
2022-11-26 19:39:12 +00:00
netniV 371f8b5253 Fix issues with backtracing and input validation (#3559, #3560)
- When a developer uses backtracing, HTML output can be seen from command line bug confirmed
- When using `input_validate_xxx`, calls to `die_html_input_error()` do not pass variable name bug confirmed

Closes #3559
Closes #3560
2022-11-26 18:28:29 +00:00
netniV fd44f394a0 Remove the need for header=false
Update loadPage calls to be loadUrl
Update loadPageNoHeader calls to be loadUrl calls

Also includes changes to make logout adhere to new html_auth_xxx functions
2022-11-26 13:58:49 +00:00
netniV 78a8999d63 Reintroduce get_cacti_version() as depreciated
Any call to get_cacti_version() will simply return the CACTI_VERSION
define and add a warning to the cacti.log file.  To prevent this
warning change

```php
$v = get_cacti_version();
```

to

```php
$v = CACTI_VERSION;
```

This can be made version independant by using the following code
to detect 1.3 and above or fall back to the older 1.2 and below
method:

```php
if (defined('CACTI_VERSION')) {
	$v = CACTI_VERSION;
} else {
	$v = get_cacti_Version();
}
```
2022-11-25 22:39:17 +00:00
netniV ca7f543fa1 Revert "PHP recommendations always see memory limit as unlimited"
This reverts commit 3f9586f1b3.
2022-11-25 22:14:50 +00:00
netniV 7ba4b4f4b0 Contains the following changes:
- Upgrading development versions now works
- Added extra language logging info
- Destroys the correct cookie (urlpath now used)
2022-11-25 20:55:33 +00:00
netniV 3912cdba57 Style update!
- Update FontAwesome to v5.8

- Add some new themes

- Allow dynamic theme selection via newtheme parameter (newtheme=carrot)

- Fix up some Auth dialog issues
2022-11-25 19:43:24 +00:00
Mark Brugnoli-Vinten 6ba054b6a8 Minor fixes after 4e381cf48 2022-11-25 15:32:34 +00:00
netniV df63b0109d Allow users to enable 2FA with Google Authenticator/Authy 2022-11-25 15:18:38 +00:00
netniV 61842eb1a0 Reduce number of development upgrade requests
By introducing CACTI_DEV_VERSION, any development / git version of the website will only request an upgrade if the timestamp
is greater than the database timestamped version. Any non-development version will be treated as per the original method of
complete version difference.
2022-11-25 02:44:10 +00:00
netniV dc20aeec38 Introduce development version detection 2022-11-25 02:28:43 +00:00
TheWitness 9bbb3e39b7 Fixing #5018 - Unexpected auto-logout
It is possible in some rare cases to have 'remember me' enabled and still be logged out after a browser timeout
2022-11-24 13:09:24 -05:00
TheWitness 0ae35422cc QA: #4926 - One missed change
This missed change will reconcile any issues with client timezone support.
2022-11-23 18:58:46 -05:00
TheWitness ef85619a37 QA on #4989
Add device caching options for changing state
2022-11-20 13:28:40 -05:00
TheWitness 17495a4d09 Add additional ignore handler
For for MikroTik fsockopen() calls
2022-11-20 13:22:15 -05:00
TheWitness a28d4e45d5 QA: In "clean_up_*" functions 2022-11-20 13:16:55 -05:00
Jing ChenandTheWitness 546d002c7b Fixed three error for PHP 8 when execute cli/upgrade_database.php (#5012)
* Fixed: get_rrdtool_version report str_replace error if rrdtool_version does not exist
Fixed: move global static $phperrors before other error-able function call
Fixed: file_exists report error if path_spine is not configured

* Fix PHP5.4 Error

Co-authored-by: TheWitness <thewitness@cacti.net>
2022-11-20 13:10:17 -05:00
TheWitness 757fa895c5 Fixing #4926 - Client TimeZone support
Allow the user to override Cacti auto-client time zone detection
2022-11-12 11:33:16 -05:00
TheWitness 157ac02983 QA: Add recursive chown 2022-11-06 13:38:09 -05:00
TheWitness abdb1cb875 Reverting previous commit 2022-11-02 08:15:25 -04:00
TheWitness afc01d89bf Attempt to correct php8.1 issues
This is due to some issues with uninitialized $level in the error handler.
2022-11-01 22:34:42 -04:00
TheWitness 490fa59620 QA: Typo in last commit 2022-10-17 20:14:44 -04:00
TheWitness d791f5fe73 QA: Add debounce function and apply
1) Page errors
2) Poller automation continuous emails when offline
2022-10-17 20:08:05 -04:00
TheWitness 65e07e4d8a Fixing #4960 - PHP8.1 deprecation warnings
2022-10-17 01:32:56 - CMDPHP PHP ERROR Backtrace: (/poller_automation.php[367]:discoverDevices(), /poller_automation.php[825]:rerunDataQueries(), /poller_automation.php[902]:run_data_query(), /lib/data_query.php[57]:get_default_contextoption(), /lib/functions.php[6016]:CactiErrorHandler())
2022-10-17 01:32:56 - ERROR PHP DEPRECATED: Automatic conversion of false to array is deprecated in file: /var/www/html/cacti/lib/functions.php on line: 6016
2022-10-17 09:04:19 -04:00
TheWitness af43a24300 QA: Handle invalid data better 2022-09-11 14:46:43 -04:00