diff --git a/ajax.php b/ajax.php index aa2d26ee..a60433c4 100644 --- a/ajax.php +++ b/ajax.php @@ -8,7 +8,7 @@ require_once "config.php"; require_once "functions.php"; -require_once "check_login.php"; +require_once "includes/check_login.php"; require_once "plugins/totp/totp.php"; /* diff --git a/guest/guest_ajax.php b/guest/guest_ajax.php index 523e5208..8c35e4eb 100644 --- a/guest/guest_ajax.php +++ b/guest/guest_ajax.php @@ -9,7 +9,7 @@ require_once "../config.php"; // Set Timezone -require_once "../inc_set_timezone.php"; +require_once "../includes/inc_set_timezone.php"; require_once "../functions.php"; require_once "../plugins/totp/totp.php"; diff --git a/guest/guest_pay_invoice_stripe.php b/guest/guest_pay_invoice_stripe.php index 9f3c9a6e..c50758d6 100644 --- a/guest/guest_pay_invoice_stripe.php +++ b/guest/guest_pay_invoice_stripe.php @@ -1,6 +1,6 @@

There was an error verifying your payment. Please contact us for more information before attempting payment again.

"); @@ -19,7 +19,7 @@ $config_stripe_flat_fee = floatval($stripe_vars['config_stripe_flat_fee']); // Check Stripe is configured if ($config_stripe_enable == 0 || $config_stripe_account == 0 || empty($config_stripe_publishable) || empty($config_stripe_secret)) { echo "

Stripe payments not enabled/configured

"; - require_once 'guest_footer.php'; + require_once 'includes/guest_footer.php'; error_log("Stripe payment error - disabled. Check payments are enabled, Expense account is set, Stripe publishable and secret keys are configured."); exit(); } @@ -47,7 +47,7 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent // Ensure we have a valid invoice if (!$sql || mysqli_num_rows($sql) !== 1) { echo "

Oops, something went wrong! Please ensure you have the correct URL and have not already paid this invoice.

"; - require_once 'guest_footer.php'; + require_once 'includes/guest_footer.php'; error_log("Stripe payment error - Invoice with ID $invoice_id is unknown/not eligible to be paid."); exit(); } @@ -357,4 +357,4 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent } -require_once 'guest_footer.php'; +require_once 'includes/guest_footer.php'; diff --git a/guest/guest_view_invoice.php b/guest/guest_view_invoice.php index 8352d4f8..a1db478c 100644 --- a/guest/guest_view_invoice.php +++ b/guest/guest_view_invoice.php @@ -1,10 +1,10 @@

Oops, something went wrong! Please raise a ticket if you believe this is an error.

"; - require_once "guest_footer.php"; + require_once "includes/guest_footer.php"; exit(); } @@ -25,7 +25,7 @@ $sql = mysqli_query( if (mysqli_num_rows($sql) !== 1) { // Invalid invoice/key echo "

Oops, something went wrong! Please raise a ticket if you believe this is an error.

"; - require_once "guest_footer.php"; + require_once "includes/guest_footer.php"; exit(); } @@ -931,4 +931,4 @@ if ($outstanding_invoices_count > 0) { ?> Incorrect URL."; - include "guest_footer.php"; + include "includes/guest_footer.php"; exit(); } @@ -52,7 +52,7 @@ $row = mysqli_fetch_array($sql); // Check we got a result if (mysqli_num_rows($sql) !== 1 || !$row) { echo "
No item to view. Check with the person that sent you this link to ensure it is correct and has not expired.
"; - include "guest_footer.php"; + include "includes/guest_footer.php"; exit(); } @@ -60,7 +60,7 @@ if (mysqli_num_rows($sql) !== 1 || !$row) { // Check item share is active & hasn't been viewed too many times but allow 0 views as that is consider infinite views if ($row['item_active'] !== "1" || ($row['item_view_limit'] > 0 && $row['item_views'] >= $row['item_view_limit'])) { echo "
Item cannot be viewed at this time. Check with the person that sent you this link to ensure it is correct and has not expired.
"; - include "guest_footer.php"; + include "includes/guest_footer.php"; exit(); } @@ -122,7 +122,7 @@ if ($item_type == "Document") { if (mysqli_num_rows($doc_sql) !== 1 || !$doc_row) { echo "
Error retrieving document to view.
"; - require_once "guest_footer.php"; + require_once "includes/guest_footer.php"; exit(); } @@ -149,7 +149,7 @@ if ($item_type == "Document") { if (mysqli_num_rows($file_sql) !== 1 || !$file_row) { echo "
Error retrieving file.
"; - include "guest_footer.php"; + include "includes/guest_footer.php"; exit(); } @@ -170,7 +170,7 @@ if ($item_type == "Document") { $credential_row = mysqli_fetch_array($credential_sql); if (mysqli_num_rows($credential_sql) !== 1 || !$credential_row) { echo "
Error retrieving login.
"; - include "guest_footer.php"; + include "includes/guest_footer.php"; exit(); } @@ -273,6 +273,6 @@ if ($item_type == "Document") { diff --git a/guest/guest_view_quote.php b/guest/guest_view_quote.php index 0baabd22..66317731 100644 --- a/guest/guest_view_quote.php +++ b/guest/guest_view_quote.php @@ -1,11 +1,11 @@

Oops, something went wrong! Please raise a ticket if you believe this is an error.

"; - require_once "guest_footer.php"; + require_once "includes/guest_footer.php"; exit(); } @@ -27,7 +27,7 @@ $sql = mysqli_query( if (mysqli_num_rows($sql) !== 1) { // Invalid quote/key echo "

Oops, something went wrong! Please raise a ticket if you believe this is an error.

"; - require_once "guest_footer.php"; + require_once "includes/guest_footer.php"; exit(); } @@ -717,5 +717,5 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie

Oops, something went wrong! Please raise a ticket if you believe this is an error.

"; - require_once "guest_footer.php"; + require_once "includes/guest_footer.php"; exit(); } @@ -34,7 +34,7 @@ $ticket_sql = mysqli_query($mysqli, if (mysqli_num_rows($ticket_sql) !== 1) { // Invalid invoice/key echo "

Oops, something went wrong! Please raise a ticket if you believe this is an error.

"; - require_once "guest_footer.php"; + require_once "includes/guest_footer.php"; exit(); } @@ -208,4 +208,4 @@ if ($ticket_row) {