From 98f9083bcb8cb47e579c64712f1656e8750edb7d Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sat, 11 Jan 2025 14:47:32 -0500 Subject: [PATCH] Structure rework: Moved most php files that are included to /includes renamed pagination.php to filter_footer.php, updated all file to reference new filter_footer and includes --- accounts.php | 6 +++--- admin_api.php | 6 +++--- admin_app_log.php | 6 +++--- admin_audit_log.php | 6 +++--- admin_backup.php | 4 ++-- admin_bulk_mail.php | 4 ++-- admin_category.php | 6 +++--- admin_custom_link.php | 6 +++--- admin_debug.php | 4 ++-- admin_document_template.php | 2 +- admin_document_template_details.php | 4 ++-- admin_legacy_debug.php | 4 ++-- admin_mail_queue.php | 6 +++--- admin_mail_queue_message_view.php | 4 ++-- admin_project_template.php | 6 +++--- admin_project_template_details.php | 4 ++-- admin_role.php | 6 +++--- admin_settings_ai.php | 4 ++-- admin_settings_company.php | 4 ++-- admin_settings_custom_fields.php | 6 +++--- admin_settings_default.php | 4 ++-- admin_settings_integration.php | 4 ++-- admin_settings_invoice.php | 4 ++-- admin_settings_localization.php | 4 ++-- admin_settings_mail.php | 4 ++-- admin_settings_maintenance.php | 4 ++-- admin_settings_module.php | 4 ++-- admin_settings_notification.php | 4 ++-- admin_settings_online_payment.php | 4 ++-- admin_settings_project.php | 4 ++-- admin_settings_quote.php | 4 ++-- admin_settings_security.php | 4 ++-- admin_settings_telemetry.php | 4 ++-- admin_settings_theme.php | 4 ++-- admin_settings_ticket.php | 4 ++-- admin_software_template.php | 6 +++--- admin_tag.php | 6 +++--- admin_tax.php | 4 ++-- admin_ticket_status.php | 6 +++--- admin_ticket_template.php | 6 +++--- admin_ticket_template_details.php | 4 ++-- admin_update.php | 4 ++-- admin_user.php | 6 +++--- admin_vendor_template.php | 6 +++--- blank.php | 4 ++-- budget.php | 4 ++-- budget_edit.php | 4 ++-- calendar_events.php | 4 ++-- client_asset_details.php | 4 ++-- client_assets.php | 6 +++--- client_certificates.php | 6 +++--- client_contact_details.php | 4 ++-- client_contacts.php | 6 +++--- client_document_details.php | 4 ++-- client_documents.php | 6 +++--- client_domains.php | 6 +++--- client_events.php | 2 +- client_files.php | 6 +++--- client_invoices.php | 6 +++--- client_locations.php | 6 +++--- client_logins.php | 6 +++--- client_networks.php | 6 +++--- client_overview.php | 4 ++-- client_payments.php | 6 +++--- client_quotes.php | 6 +++--- client_racks.php | 4 ++-- client_recurring_invoices.php | 6 +++--- client_recurring_tickets.php | 4 ++-- client_services.php | 4 ++-- client_software.php | 6 +++--- client_tickets.php | 6 +++--- client_trips.php | 6 +++--- client_vendors.php | 6 +++--- clients.php | 6 +++--- dashboard.php | 4 ++-- expenses.php | 6 +++--- force_mfa.php | 2 +- global_search.php | 4 ++-- admin_side_nav.php => includes/admin_side_nav.php | 0 client_side_nav.php => includes/client_side_nav.php | 0 pagination.php => includes/filter_footer.php | 0 filter_header.php => includes/filter_header.php | 0 footer.php => includes/footer.php | 2 +- header.php => includes/header.php | 0 inc_alert_feedback.php => includes/inc_alert_feedback.php | 0 inc_all.php => includes/inc_all.php | 0 inc_all_admin.php => includes/inc_all_admin.php | 0 inc_all_client.php => includes/inc_all_client.php | 0 inc_all_reports.php => includes/inc_all_reports.php | 0 inc_all_user.php => includes/inc_all_user.php | 0 .../inc_client_top_head.php | 0 inc_confirm_modal.php => includes/inc_confirm_modal.php | 0 inc_debug.php => includes/inc_debug.php | 0 inc_wrapper.php => includes/inc_wrapper.php | 0 reports_side_nav.php => includes/reports_side_nav.php | 0 side_nav.php => includes/side_nav.php | 0 top_nav.php => includes/top_nav.php | 0 user_side_nav.php => includes/user_side_nav.php | 0 invoice.php | 8 ++++---- invoices.php | 6 +++--- login.php | 4 ++-- notifications.php | 4 ++-- notifications_dismissed.php | 6 +++--- payments.php | 6 +++--- {dist => plugins/adminlte}/css/adminlte.min.css | 0 {dist => plugins/adminlte}/js/.eslintrc.json | 0 {dist => plugins/adminlte}/js/adminlte.min.js | 0 products.php | 6 +++--- project_details.php | 4 ++-- projects.php | 6 +++--- quote.php | 8 ++++---- quotes.php | 6 +++--- recurring_expenses.php | 6 +++--- recurring_invoice.php | 6 +++--- recurring_invoices.php | 6 +++--- recurring_tickets.php | 4 ++-- report_assets.php | 6 +++--- report_budget.php | 4 ++-- report_clients_with_balance.php | 4 ++-- report_domains.php | 6 +++--- report_expense_by_vendor.php | 4 ++-- report_expense_summary.php | 4 ++-- report_income_by_client.php | 4 ++-- report_income_summary.php | 4 ++-- report_password_rotation.php | 4 ++-- report_profit_loss.php | 4 ++-- report_recurring_by_client.php | 4 ++-- report_tax_summary.php | 4 ++-- report_ticket_by_client.php | 4 ++-- report_ticket_summary.php | 4 ++-- report_tickets_unbilled.php | 4 ++-- revenues.php | 6 +++--- temp_bulk_close_bugfix.php | 4 ++-- ticket.php | 6 +++--- tickets.php | 6 +++--- transfers.php | 6 +++--- trips.php | 6 +++--- user_activity.php | 4 ++-- user_details.php | 4 ++-- user_preferences.php | 4 ++-- user_security.php | 4 ++-- vendor_details.php | 6 +++--- vendors.php | 6 +++--- 143 files changed, 295 insertions(+), 295 deletions(-) rename admin_side_nav.php => includes/admin_side_nav.php (100%) rename client_side_nav.php => includes/client_side_nav.php (100%) rename pagination.php => includes/filter_footer.php (100%) rename filter_header.php => includes/filter_header.php (100%) rename footer.php => includes/footer.php (96%) rename header.php => includes/header.php (100%) rename inc_alert_feedback.php => includes/inc_alert_feedback.php (100%) rename inc_all.php => includes/inc_all.php (100%) rename inc_all_admin.php => includes/inc_all_admin.php (100%) rename inc_all_client.php => includes/inc_all_client.php (100%) rename inc_all_reports.php => includes/inc_all_reports.php (100%) rename inc_all_user.php => includes/inc_all_user.php (100%) rename inc_client_top_head.php => includes/inc_client_top_head.php (100%) rename inc_confirm_modal.php => includes/inc_confirm_modal.php (100%) rename inc_debug.php => includes/inc_debug.php (100%) rename inc_wrapper.php => includes/inc_wrapper.php (100%) rename reports_side_nav.php => includes/reports_side_nav.php (100%) rename side_nav.php => includes/side_nav.php (100%) rename top_nav.php => includes/top_nav.php (100%) rename user_side_nav.php => includes/user_side_nav.php (100%) rename {dist => plugins/adminlte}/css/adminlte.min.css (100%) rename {dist => plugins/adminlte}/js/.eslintrc.json (100%) rename {dist => plugins/adminlte}/js/adminlte.min.js (100%) diff --git a/accounts.php b/accounts.php index f23a0f7ee..0488c6244 100644 --- a/accounts.php +++ b/accounts.php @@ -4,7 +4,7 @@ $sort = "account_name"; $order = "ASC"; -require_once "inc_all.php"; +require_once "includes/inc_all.php"; // Perms enforceUserPermission('module_financial'); @@ -116,11 +116,11 @@ - + - @@ -176,5 +176,5 @@ - -
@@ -34,5 +34,5 @@
Archived - @@ -194,4 +194,4 @@ class="fas fa-fw fa-archive mr-2">Archived - @@ -149,5 +149,5 @@ - + - @@ -146,4 +146,4 @@ diff --git a/admin_role.php b/admin_role.php index 800b58cc4..62086cc28 100644 --- a/admin_role.php +++ b/admin_role.php @@ -4,7 +4,7 @@ $sort = "user_role_is_admin"; $order = "DESC"; -require_once "inc_all_admin.php"; +require_once "includes/inc_all_admin.php"; //Rebuild URL @@ -134,7 +134,7 @@ - @@ -143,5 +143,5 @@ require_once "admin_role_add_modal.php"; -require_once "footer.php"; +require_once "includes/footer.php"; diff --git a/admin_settings_ai.php b/admin_settings_ai.php index 91eba5394..894859b8b 100644 --- a/admin_settings_ai.php +++ b/admin_settings_ai.php @@ -1,6 +1,6 @@
@@ -73,5 +73,5 @@
- @@ -120,5 +120,5 @@
@@ -249,4 +249,4 @@
@@ -39,5 +39,5 @@
-
@@ -102,5 +102,5 @@
@@ -327,5 +327,5 @@ -
@@ -78,5 +78,5 @@
@@ -193,4 +193,4 @@
@@ -151,5 +151,5 @@
@@ -41,4 +41,4 @@
@@ -54,5 +54,5 @@
@@ -62,5 +62,5 @@
@@ -38,5 +38,5 @@
@@ -63,5 +63,5 @@
@@ -82,5 +82,5 @@
- @@ -136,5 +136,5 @@ - @@ -130,5 +130,5 @@ - @@ -131,5 +131,5 @@ - - @@ -239,5 +239,5 @@ function generatePassword() { require_once "admin_user_all_reset_password_modal.php"; -require_once "footer.php"; +require_once "includes/footer.php"; diff --git a/admin_vendor_template.php b/admin_vendor_template.php index 02694440c..f75cd9fbd 100644 --- a/admin_vendor_template.php +++ b/admin_vendor_template.php @@ -4,7 +4,7 @@ $sort = "vendor_name"; $order = "ASC"; -require_once "inc_all_admin.php"; +require_once "includes/inc_all_admin.php"; //Rebuild URL @@ -164,7 +164,7 @@ - @@ -172,5 +172,5 @@ +