From 5f76a7989b329915649884d3e7bfd0638b3809a5 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 23 Jan 2025 17:12:11 -0500 Subject: [PATCH] Move portal to client and rename and reorganize some client portal files --- {portal => client}/autopay.php | 12 +++++------ {portal => client}/certificates.php | 6 +++--- {portal => client}/check_login.php | 0 {portal => client}/contact_add.php | 8 ++++---- {portal => client}/contact_edit.php | 10 +++++----- {portal => client}/contacts.php | 6 +++--- {portal => client}/document.php | 8 ++++---- {portal => client}/documents.php | 6 +++--- {portal => client}/domains.php | 6 +++--- .../functions.php | 0 .../includes/footer.php | 0 .../includes/header.php | 2 +- .../includes/inc_all.php | 4 ++-- {portal => client}/index.php | 4 ++-- {portal => client}/invoices.php | 6 +++--- {portal => client}/login.php | 0 {portal => client}/login_microsoft.php | 0 {portal => client}/login_reset.php | 0 portal/portal_post.php => client/post.php | 20 +++++++++---------- {portal => client}/profile.php | 6 +++--- {portal => client}/quotes.php | 8 ++++---- {portal => client}/ticket.php | 14 ++++++------- {portal => client}/ticket_add.php | 6 +++--- {portal => client}/ticket_view_all.php | 6 +++--- {portal => client}/tickets.php | 4 ++-- cron.php | 2 +- cron_ticket_email_parser.php | 2 +- login.php | 2 +- post/user/contact.php | 4 ++-- post/user/ticket.php | 20 +++++++++---------- scripts/cron.php | 2 +- 31 files changed, 87 insertions(+), 87 deletions(-) rename {portal => client}/autopay.php (93%) rename {portal => client}/certificates.php (94%) rename {portal => client}/check_login.php (100%) rename {portal => client}/contact_add.php (95%) rename {portal => client}/contact_edit.php (96%) rename {portal => client}/contacts.php (95%) rename {portal => client}/document.php (92%) rename {portal => client}/documents.php (94%) rename {portal => client}/domains.php (92%) rename portal/portal_functions.php => client/functions.php (100%) rename portal/portal_footer.php => client/includes/footer.php (100%) rename portal/portal_header.php => client/includes/header.php (97%) rename portal/inc_portal.php => client/includes/inc_all.php (74%) rename {portal => client}/index.php (75%) rename {portal => client}/invoices.php (97%) rename {portal => client}/login.php (100%) rename {portal => client}/login_microsoft.php (100%) rename {portal => client}/login_reset.php (100%) rename portal/portal_post.php => client/post.php (98%) rename {portal => client}/profile.php (92%) rename {portal => client}/quotes.php (91%) rename {portal => client}/ticket.php (93%) rename {portal => client}/ticket_add.php (93%) rename {portal => client}/ticket_view_all.php (96%) rename {portal => client}/tickets.php (98%) diff --git a/portal/autopay.php b/client/autopay.php similarity index 93% rename from portal/autopay.php rename to client/autopay.php index 0a9c0eed..44280785 100644 --- a/portal/autopay.php +++ b/client/autopay.php @@ -4,10 +4,10 @@ * Auto-pay configuration for PTC/finance contacts */ -require_once "inc_portal.php"; +require_once "includes/inc_all.php"; if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) { - header("Location: portal_post.php?logout"); + header("Location: post.php?logout"); exit(); } @@ -30,7 +30,7 @@ if ($stripe_client_details) { // Stripe not enabled in settings if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_secret) { echo "Stripe payment error - Stripe is not enabled, please talk to your helpdesk for further information."; - include_once 'portal_footer.php'; + include_once 'includes/footer.php'; exit(); } @@ -50,7 +50,7 @@ if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_sec

-
+
@@ -120,7 +120,7 @@ if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_sec
Actions
- - Remove saved card + - Remove saved card @@ -131,4 +131,4 @@ if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_sec
- + @@ -93,4 +93,4 @@ if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
- + @@ -126,4 +126,4 @@ if ($row) { purify($row['document_content']); } else { - header("Location: portal_post.php?logout"); + header("Location: post.php?logout"); exit(); } @@ -68,4 +68,4 @@ if ($row) {
Account - Sign out + Sign out
diff --git a/portal/inc_portal.php b/client/includes/inc_all.php similarity index 74% rename from portal/inc_portal.php rename to client/includes/inc_all.php index aa814aca..d0ea5d15 100644 --- a/portal/inc_portal.php +++ b/client/includes/inc_all.php @@ -8,5 +8,5 @@ require_once '../config.php'; require_once '../get_settings.php'; require_once '../functions.php'; require_once 'check_login.php'; -require_once 'portal_functions.php'; -require_once "portal_header.php"; +require_once 'functions.php'; +require_once "header.php"; diff --git a/portal/index.php b/client/index.php similarity index 75% rename from portal/index.php rename to client/index.php index eef09ea1..856a36bf 100644 --- a/portal/index.php +++ b/client/index.php @@ -6,11 +6,11 @@ header("Content-Security-Policy: default-src 'self'"); -require_once "inc_portal.php"; +require_once "includes/inc_all.php"; ?> - + diff --git a/portal/invoices.php b/client/invoices.php similarity index 97% rename from portal/invoices.php rename to client/invoices.php index 6cd1e9b8..654a4bd3 100644 --- a/portal/invoices.php +++ b/client/invoices.php @@ -6,11 +6,11 @@ header("Content-Security-Policy: default-src 'self'"); -require_once "inc_portal.php"; +require_once "includes/inc_all.php"; if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) { - header("Location: portal_post.php?logout"); + header("Location: post.php?logout"); exit(); } @@ -99,5 +99,5 @@ $invoices_sql = mysqli_query($mysqli, "SELECT * FROM invoices WHERE invoice_clie @@ -30,7 +30,7 @@ require_once 'inc_portal.php';

Password

- +
@@ -46,5 +46,5 @@ require_once 'inc_portal.php'; - "> + "> @@ -88,4 +88,4 @@ $quotes_sql = mysqli_query($mysqli, "SELECT * FROM quotes WHERE quote_client_id
- Resolve ticket + Resolve ticket
@@ -135,7 +135,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) { - +
@@ -154,11 +154,11 @@ if (isset($_GET['id']) && intval($_GET['id'])) { @@ -168,7 +168,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) {

Ticket closed. Please rate your ticket

- +
Your ticket regarding $ticket_subject has been scheduled for $email_datetime.

- Access your ticket here + Access your ticket here

Please do not reply to this email.

@@ -2344,13 +2344,13 @@ if (isset($_POST['edit_ticket_schedule'])) {
The ticket regarding $ticket_subject has been scheduled for $email_datetime.

- $ticket_link + $ticket_link

Please do not reply to this email.

Ticket: $ticket_prefix$ticket_number
Subject: $ticket_subject
- Portal: Access the ticket here + Portal: Access the ticket here

Scheduled work for your ticket regarding $ticket_subject has been cancelled.

- Access your ticket here + Access your ticket here

Please do not reply to this email.

@@ -2496,13 +2496,13 @@ if (isset($_GET['cancel_ticket_schedule'])) {
Scheduled work for the ticket regarding $ticket_subject has been cancelled.

- $ticket_link + $ticket_link

Please do not reply to this email.

Ticket: $ticket_prefix$ticket_number
Subject: $ticket_subject
- Portal: Access the ticket here + Portal: Access the ticket here