From d2a94dc3b30cc683addb2de7b85cf171c3bcacd0 Mon Sep 17 00:00:00 2001 From: Mark Brugnoli-Vinten Date: Tue, 3 Jan 2023 22:22:44 +0000 Subject: [PATCH] Update copyright year for 2023 --- .github/ISSUE_TEMPLATE/bug_report.md | 5 + .github/ISSUE_TEMPLATE/feature_request.md | 6 + .gitignore | 5 + README.md | 2 +- about.php | 2 +- aggregate_graphs.php | 2 +- aggregate_items.php | 2 +- aggregate_templates.php | 2 +- auth_changepassword.php | 2 +- auth_login.php | 2 +- auth_profile.php | 2 +- automation_devices.php | 2 +- automation_graph_rules.php | 2 +- automation_networks.php | 2 +- automation_snmp.php | 2 +- automation_templates.php | 2 +- automation_tree_rules.php | 2 +- boost_rrdupdate.php | 2 +- cacti.sql | 2 +- cactid.php | 2 +- cdef.php | 2 +- cli/add_data_query.php | 2 +- cli/add_datasource.php | 2 +- cli/add_device.php | 2 +- cli/add_graph_template.php | 2 +- cli/add_graphs.php | 2 +- cli/add_perms.php | 2 +- cli/add_tree.php | 2 +- cli/analyze_database.php | 2 +- cli/apply_automation_rules.php | 2 +- cli/audit_database.php | 2 +- cli/batchgapfix.php | 2 +- cli/change_device.php | 2 +- cli/convert_tables.php | 2 +- cli/copy_user.php | 2 +- cli/fix_mediumint.php | 2 +- cli/float_rrdfiles.php | 2 +- cli/host_update_template.php | 2 +- cli/import_package.php | 2 +- cli/import_template.php | 2 +- cli/index.php | 2 +- cli/input_whitelist.php | 2 +- cli/install_cacti.php | 2 +- cli/md5sum.php | 2 +- cli/plugin_manage.php | 2 +- cli/poller_data_sources_reapply_names.php | 2 +- cli/poller_graphs_reapply_names.php | 2 +- cli/poller_output_empty.php | 2 +- cli/poller_reindex_hosts.php | 2 +- cli/poller_replicate.php | 2 +- cli/push_out_hosts.php | 2 +- cli/rebuild_poller_cache.php | 2 +- cli/refresh_csrf.php | 2 +- cli/remove_broken_graphs.php | 2 +- cli/remove_device.php | 2 +- cli/remove_graphs.php | 2 +- cli/removespikes.php | 2 +- cli/reorder_data_query.php | 2 +- cli/repair_database.php | 2 +- cli/repair_graphs.php | 2 +- cli/repair_templates.php | 2 +- cli/splice_rrd.php | 4 +- cli/sqltable_to_php.php | 2 +- cli/structure_rra_paths.php | 2 +- cli/update_heartbeat.php | 2 +- cli/upgrade_database.php | 2 +- clog.php | 2 +- clog_user.php | 2 +- cmd.php | 2 +- cmd_realtime.php | 2 +- color.php | 2 +- color_templates.php | 2 +- color_templates_items.php | 2 +- data_debug.php | 2 +- data_input.php | 2 +- data_queries.php | 2 +- data_source_profiles.php | 2 +- data_sources.php | 2 +- data_templates.php | 2 +- docs/README.md | 2 +- docs/audit_schema.sql | 2 +- docs/index.php | 2 +- formats/index.php | 2 +- gprint_presets.php | 2 +- graph.php | 2 +- graph_image.php | 2 +- graph_json.php | 2 +- graph_realtime.php | 2 +- graph_templates.php | 2 +- graph_templates_inputs.php | 2 +- graph_templates_items.php | 2 +- graph_view.php | 2 +- graph_xport.php | 2 +- graphs.php | 2 +- graphs_items.php | 2 +- graphs_new.php | 2 +- help.php | 2 +- host.php | 2 +- host_templates.php | 2 +- images/index.php | 2 +- include/auth.php | 2 +- include/bottom_footer.php | 2 +- include/cli_check.php | 2 +- include/content/index.php | 2 +- include/csrf.php | 2 +- include/global.php | 2 +- include/global_arrays.php | 2 +- include/global_constants.php | 2 +- include/global_form.php | 2 +- include/global_languages.php | 2 +- include/global_session.php | 2 +- include/global_settings.php | 2 +- include/index.php | 2 +- include/layout.js | 2 +- include/plugins.php | 2 +- include/realtime.js | 2 +- include/session.php | 2 +- include/themes/classic/default/index.php | 2 +- include/themes/classic/images/index.php | 2 +- include/themes/classic/index.php | 2 +- include/themes/classic/main.js | 2 +- include/themes/classic/rrdtheme.php | 2 +- include/themes/dark/default/index.php | 2 +- include/themes/dark/images/index.php | 2 +- include/themes/dark/index.php | 2 +- include/themes/dark/main.js | 2 +- include/themes/dark/rrdtheme.php | 2 +- include/themes/index.php | 2 +- include/themes/midwinter/default/index.php | 2 +- include/themes/midwinter/images/index.php | 2 +- include/themes/midwinter/index.php | 2 +- include/themes/midwinter/main.js | 2 +- include/themes/midwinter/rrdtheme.php | 2 +- include/themes/midwinter/update_hash.php | 2 +- include/themes/modern/default/index.php | 2 +- include/themes/modern/images/index.php | 2 +- include/themes/modern/index.php | 2 +- include/themes/modern/main.js | 2 +- include/themes/modern/rrdtheme.php | 2 +- include/themes/paper-plane/default/index.php | 2 +- include/themes/paper-plane/images/index.php | 2 +- include/themes/paper-plane/index.php | 2 +- include/themes/paper-plane/main.js | 2 +- include/themes/paper-plane/rrdtheme.php | 2 +- include/themes/paw/default/index.php | 2 +- include/themes/paw/images/index.php | 2 +- include/themes/paw/index.php | 2 +- include/themes/paw/main.js | 2 +- include/themes/paw/rrdtheme.php | 2 +- include/themes/sunrise/default/index.php | 2 +- include/themes/sunrise/images/index.php | 2 +- include/themes/sunrise/index.php | 2 +- include/themes/sunrise/main.js | 2 +- include/themes/sunrise/rrdtheme.php | 2 +- include/top_general_header.php | 2 +- include/top_graph_header.php | 2 +- include/top_header.php | 2 +- index.php | 2 +- install/background.php | 2 +- install/cli_check.php | 2 +- install/cli_test.php | 2 +- install/functions.php | 2 +- install/index.php | 2 +- install/install.js | 2 +- install/install.php | 2 +- install/step_json.php | 2 +- install/upgrades/0_8_1.php | 2 +- install/upgrades/0_8_2.php | 2 +- install/upgrades/0_8_2a.php | 2 +- install/upgrades/0_8_3.php | 2 +- install/upgrades/0_8_4.php | 2 +- install/upgrades/0_8_5.php | 2 +- install/upgrades/0_8_6.php | 2 +- install/upgrades/0_8_6a.php | 2 +- install/upgrades/0_8_6d.php | 2 +- install/upgrades/0_8_6e.php | 2 +- install/upgrades/0_8_6g.php | 2 +- install/upgrades/0_8_6h.php | 2 +- install/upgrades/0_8_6i.php | 2 +- install/upgrades/0_8_7.php | 2 +- install/upgrades/0_8_7a.php | 2 +- install/upgrades/0_8_7b.php | 2 +- install/upgrades/0_8_7c.php | 2 +- install/upgrades/0_8_7h.php | 2 +- install/upgrades/0_8_8.php | 2 +- install/upgrades/1_0_0.php | 2 +- install/upgrades/1_0_4.php | 2 +- install/upgrades/1_0_5.php | 2 +- install/upgrades/1_1_11.php | 2 +- install/upgrades/1_1_14.php | 2 +- install/upgrades/1_1_17.php | 2 +- install/upgrades/1_1_2.php | 2 +- install/upgrades/1_1_20.php | 2 +- install/upgrades/1_1_26.php | 2 +- install/upgrades/1_1_28.php | 2 +- install/upgrades/1_1_31.php | 2 +- install/upgrades/1_1_34.php | 2 +- install/upgrades/1_1_35.php | 2 +- install/upgrades/1_1_36.php | 2 +- install/upgrades/1_1_37.php | 2 +- install/upgrades/1_1_4.php | 2 +- install/upgrades/1_1_6.php | 2 +- install/upgrades/1_1_7.php | 2 +- install/upgrades/1_1_8.php | 4 +- install/upgrades/1_2_0.php | 2 +- install/upgrades/1_2_1.php | 2 +- install/upgrades/1_2_11.php | 2 +- install/upgrades/1_2_14.php | 2 +- install/upgrades/1_2_15.php | 2 +- install/upgrades/1_2_17.php | 2 +- install/upgrades/1_2_19.php | 2 +- install/upgrades/1_2_2.php | 2 +- install/upgrades/1_2_20.php | 2 +- install/upgrades/1_2_21.php | 2 +- install/upgrades/1_2_22.php | 2 +- install/upgrades/1_2_23.php | 2 +- install/upgrades/1_2_3.php | 2 +- install/upgrades/1_2_5.php | 2 +- install/upgrades/1_2_7.php | 2 +- install/upgrades/1_2_8.php | 2 +- install/upgrades/index.php | 2 +- lib/aggregate.php | 2 +- lib/api_aggregate.php | 2 +- lib/api_automation.php | 2 +- lib/api_automation_tools.php | 2 +- lib/api_data_source.php | 2 +- lib/api_device.php | 2 +- lib/api_graph.php | 2 +- lib/api_poller.php | 2 +- lib/api_tree.php | 2 +- lib/auth.php | 2 +- lib/boost.php | 2 +- lib/cdef.php | 2 +- lib/clog_webapi.php | 2 +- lib/data_query.php | 2 +- lib/database.php | 2 +- lib/dsdebug.php | 2 +- lib/dsstats.php | 2 +- lib/export.php | 2 +- lib/functions.php | 2 +- lib/graph_variables.php | 2 +- lib/graphs.php | 2 +- lib/html.php | 2 +- lib/html_filter.php | 2 +- lib/html_form.php | 2 +- lib/html_form_template.php | 2 +- lib/html_graph.php | 2 +- lib/html_reports.php | 2 +- lib/html_tree.php | 2 +- lib/html_utility.php | 2 +- lib/html_validate.php | 2 +- lib/import.php | 2 +- lib/index.php | 2 +- lib/installer.php | 2 +- lib/ldap.php | 2 +- lib/mib_cache.php | 2 +- lib/ping.php | 2 +- lib/plugins.php | 2 +- lib/poller.php | 2 +- lib/reports.php | 2 +- lib/rrd.php | 2 +- lib/rrdcheck.php | 2 +- lib/snmp.php | 2 +- lib/snmpagent.php | 2 +- lib/sort.php | 2 +- lib/spikekill.php | 2 +- lib/template.php | 2 +- lib/time.php | 2 +- lib/timespan_settings.php | 2 +- lib/utility.php | 2 +- lib/variables.php | 2 +- lib/vdef.php | 2 +- lib/xml.php | 2 +- link.php | 2 +- links.php | 2 +- locales/LC_MESSAGES/index.php | 2 +- locales/build_gettext.sh | 2 +- locales/build_mo.sh | 2 +- locales/index.php | 2 +- locales/po/index.php | 2 +- locales/update-pot.sh | 2 +- log/index.php | 2 +- logout.php | 2 +- managers.php | 2 +- mibs/index.php | 2 +- package_import.php | 2 +- permission_denied.php | 2 +- plugins.php | 2 +- plugins/index.php | 2 +- poller.php | 2 +- poller_automation.php | 2 +- poller_boost.php | 2 +- poller_commands.php | 2 +- poller_dsstats.php | 2 +- poller_maintenance.php | 2 +- poller_realtime.php | 2 +- poller_recovery.php | 2 +- poller_reports.php | 2 +- poller_rrdcheck.php | 2 +- poller_spikekill.php | 2 +- pollers.php | 2 +- remote_agent.php | 2 +- reports_admin.php | 2 +- reports_user.php | 2 +- resource/index.php | 2 +- resource/script_queries/index.php | 2 +- resource/script_server/index.php | 2 +- resource/snmp_queries/index.php | 2 +- rrdcheck.php | 2 +- rrdcleaner.php | 2 +- script_server.php | 2 +- service/README.md | 136 +++++++++---------- service/index.php | 2 +- service_check.php | 2 +- settings.php | 2 +- sites.php | 2 +- snmpagent_mibcache.php | 2 +- snmpagent_mibcachechild.php | 2 +- snmpagent_persist.php | 2 +- spikekill.php | 2 +- templates_export.php | 2 +- templates_import.php | 2 +- tests/tools/cacti.conf | 118 ++++++++-------- tests/tools/check_all_pages.sh | 2 +- tests/tools/check_cli_version.sh | 2 +- tests/tools/check_install_code.php | 2 +- tests/tools/copyright_year.sh | 2 +- tree.php | 2 +- user_admin.php | 2 +- user_domains.php | 2 +- user_group_admin.php | 2 +- utilities.php | 2 +- vdef.php | 2 +- 333 files changed, 473 insertions(+), 457 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 15e19ed3b9..f3dfabae7c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -6,6 +6,11 @@ labels: 'bug,unverified' assignees: '' --- + # Describe the bug A clear and concise description of what the bug is. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 0763053971..043f232fdf 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -6,6 +6,12 @@ labels: 'enhancement' assignees: '' --- + + # Feature Request ## Is your feature request related to a problem? Please describe diff --git a/.gitignore b/.gitignore index 0cf47c2210..570bd03e86 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ # Ignore vim swap files *.swp +*.rnd # Ignore Cacti config include/config.php # Ignore Cacti log files/folders @@ -49,5 +50,9 @@ include/themes/custom.css !include/themes/midwinter # Ignore any mac DS_Store files .DS_Store +# Ignore locales locales/po/*.mo +# Ignore CSRF secret include/vendor/csrf/csrf-secret.php +# Ignore visual studio code +.vscode/** diff --git a/README.md b/README.md index 1ae0c0e0ca..1e63f2c498 100644 --- a/README.md +++ b/README.md @@ -327,4 +327,4 @@ Cacti supports most RRDtool graphing abilities including: - Text alignment ----------------------------------------------------------------------------- -Copyright (c) 2004-2022 - The Cacti Group, Inc. +Copyright (c) 2004-2023 - The Cacti Group, Inc. diff --git a/about.php b/about.php index 1bf9126713..fce20f0a6e 100644 --- a/about.php +++ b/about.php @@ -1,7 +1,7 @@ - ServerAdmin webmaster@localhost - DocumentRoot /var/www/html - - ErrorLog ${APACHE_LOG_DIR}/error.log - CustomLog ${APACHE_LOG_DIR}/access.log combined - - - - # 2.4.10+ can proxy to unix socket - SetHandler "proxy:unix:/var/run/php/php-fpm.sock|fcgi://localhost" - - -Alias /cacti GITHUB_WORKSPACE - -# Generic Entries -AddType text/html .php -AddType application/x-httpd-php .php -DirectoryIndex index.php - - - Options Indexes FollowSymLinks MultiViews - AllowOverride None - Order allow,deny - Allow from all - Require all granted - - - php_flag magic_quotes_gpc Off - php_flag short_open_tag On - php_flag register_globals Off - php_flag register_argc_argv On - php_flag track_vars On - # this setting is necessary for some locales - php_value mbstring.func_overload 0 - php_value include_path . - - +# +-------------------------------------------------------------------------+ +# | Copyright (C) 2004-2023 The Cacti Group | +# | | +# | This program is free software; you can redistribute it and/or | +# | modify it under the terms of the GNU General Public License | +# | as published by the Free Software Foundation; either version 2 | +# | of the License, or (at your option) any later version. | +# | | +# | This program is distributed in the hope that it will be useful, | +# | but WITHOUT ANY WARRANTY; without even the implied warranty of | +# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | +# | GNU General Public License for more details. | +# +-------------------------------------------------------------------------+ +# | Cacti: The Complete RRDTool-based Graphing Solution | +# +-------------------------------------------------------------------------+ +# | This code is designed, written, and maintained by the Cacti Group. See | +# | about.php and/or the AUTHORS file for specific developer information. | +# +-------------------------------------------------------------------------+ +# | http://www.cacti.net/ | +# +-------------------------------------------------------------------------+ + + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + + + # 2.4.10+ can proxy to unix socket + SetHandler "proxy:unix:/var/run/php/php-fpm.sock|fcgi://localhost" + + +Alias /cacti GITHUB_WORKSPACE + +# Generic Entries +AddType text/html .php +AddType application/x-httpd-php .php +DirectoryIndex index.php + + + Options Indexes FollowSymLinks MultiViews + AllowOverride None + Order allow,deny + Allow from all + Require all granted + + + php_flag magic_quotes_gpc Off + php_flag short_open_tag On + php_flag register_globals Off + php_flag register_argc_argv On + php_flag track_vars On + # this setting is necessary for some locales + php_value mbstring.func_overload 0 + php_value include_path . + + diff --git a/tests/tools/check_all_pages.sh b/tests/tools/check_all_pages.sh index 43b16b71e4..c95b10837f 100755 --- a/tests/tools/check_all_pages.sh +++ b/tests/tools/check_all_pages.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash # +-------------------------------------------------------------------------+ -# | Copyright (C) 2004-2022 The Cacti Group | +# | Copyright (C) 2004-2023 The Cacti Group | # | | # | This program is free software; you can redistribute it and/or | # | modify it under the terms of the GNU General Public License | diff --git a/tests/tools/check_cli_version.sh b/tests/tools/check_cli_version.sh index 0ae3f2558d..a44fe37cb6 100755 --- a/tests/tools/check_cli_version.sh +++ b/tests/tools/check_cli_version.sh @@ -1,6 +1,6 @@ #!/bin/bash #+-------------------------------------------------------------------------+ -#| Copyright (C) 2004-2022 The Cacti Group | +#| Copyright (C) 2004-2023 The Cacti Group | #| | #| This program is free software; you can redistribute it and/or | #| modify it under the terms of the GNU General Public License | diff --git a/tests/tools/check_install_code.php b/tests/tools/check_install_code.php index b0aebdafc2..c12b1f49fe 100644 --- a/tests/tools/check_install_code.php +++ b/tests/tools/check_install_code.php @@ -1,7 +1,7 @@