mirror of https://github.com/itflow-org/itflow
Move portal to client and rename and reorganize some client portal files
This commit is contained in:
parent
70dd3ab5c8
commit
5f76a7989b
|
|
@ -4,10 +4,10 @@
|
||||||
* Auto-pay configuration for PTC/finance contacts
|
* 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) {
|
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ if ($stripe_client_details) {
|
||||||
// Stripe not enabled in settings
|
// Stripe not enabled in settings
|
||||||
if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_secret) {
|
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.";
|
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();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -50,7 +50,7 @@ if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_sec
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<div class="col-5">
|
<div class="col-5">
|
||||||
<form action="portal_post.php" method="POST">
|
<form action="post.php" method="POST">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="custom-control custom-checkbox">
|
<div class="custom-control custom-checkbox">
|
||||||
|
|
@ -120,7 +120,7 @@ if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_sec
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<b>Actions</b><br>
|
<b>Actions</b><br>
|
||||||
- <a href="portal_post.php?stripe_remove_card&pm=<?php echo $stripe_pm; ?>">Remove saved card</a>
|
- <a href="post.php?stripe_remove_card&pm=<?php echo $stripe_pm; ?>">Remove saved card</a>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
@ -131,4 +131,4 @@ if (!$config_stripe_enable || !$config_stripe_publishable || !$config_stripe_sec
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,4 +58,4 @@ $certificates_sql = mysqli_query($mysqli, "SELECT certificate_id, certificate_na
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<form action="portal_post.php" method="post">
|
<form action="post.php" method="post">
|
||||||
<!-- Prevent undefined checkbox errors on submit -->
|
<!-- Prevent undefined checkbox errors on submit -->
|
||||||
<input type="hidden" name="contact_billing" value="0">
|
<input type="hidden" name="contact_billing" value="0">
|
||||||
<input type="hidden" name="contact_technical" value="0">
|
<input type="hidden" name="contact_technical" value="0">
|
||||||
|
|
@ -93,4 +93,4 @@ if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -39,7 +39,7 @@ if ($row) {
|
||||||
$contact_billing = intval($row['contact_billing']);
|
$contact_billing = intval($row['contact_billing']);
|
||||||
$contact_auth_method = nullable_htmlentities($row['user_auth_method']);
|
$contact_auth_method = nullable_htmlentities($row['user_auth_method']);
|
||||||
} else {
|
} else {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -56,7 +56,7 @@ if ($row) {
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<form action="portal_post.php" method="post">
|
<form action="post.php" method="post">
|
||||||
<input type="hidden" name="contact_id" value="<?php echo $contact_id; ?>">
|
<input type="hidden" name="contact_id" value="<?php echo $contact_id; ?>">
|
||||||
<!-- Prevent undefined checkbox errors on submit -->
|
<!-- Prevent undefined checkbox errors on submit -->
|
||||||
<input type="hidden" name="contact_billing" value="0">
|
<input type="hidden" name="contact_billing" value="0">
|
||||||
|
|
@ -126,4 +126,4 @@ if ($row) {
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -77,4 +77,4 @@ $contacts_sql = mysqli_query($mysqli, "SELECT contact_id, contact_name, contact_
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'; img-src 'self' data:");
|
header("Content-Security-Policy: default-src 'self'; img-src 'self' data:");
|
||||||
|
|
||||||
require_once "inc_portal.php";
|
require_once "includes/inc_all.php";
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,7 +42,7 @@ if ($row) {
|
||||||
$document_name = nullable_htmlentities($row['document_name']);
|
$document_name = nullable_htmlentities($row['document_name']);
|
||||||
$document_content = $purifier->purify($row['document_content']);
|
$document_content = $purifier->purify($row['document_content']);
|
||||||
} else {
|
} else {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -68,4 +68,4 @@ if ($row) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -61,4 +61,4 @@ $documents_sql = mysqli_query($mysqli, "SELECT document_id, document_name, docum
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -52,4 +52,4 @@ $domains_sql = mysqli_query($mysqli, "SELECT domain_id, domain_name, domain_expi
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -87,7 +87,7 @@ header("X-Frame-Options: DENY"); // Legacy
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="profile.php"><i class="fas fa-fw fa-user mr-2"></i>Account</a>
|
<a class="dropdown-item" href="profile.php"><i class="fas fa-fw fa-user mr-2"></i>Account</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="portal_post.php?logout"><i class="fas fa-fw fa-sign-out-alt mr-2"></i>Sign out</a>
|
<a class="dropdown-item" href="post.php?logout"><i class="fas fa-fw fa-sign-out-alt mr-2"></i>Sign out</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
@ -8,5 +8,5 @@ require_once '../config.php';
|
||||||
require_once '../get_settings.php';
|
require_once '../get_settings.php';
|
||||||
require_once '../functions.php';
|
require_once '../functions.php';
|
||||||
require_once 'check_login.php';
|
require_once 'check_login.php';
|
||||||
require_once 'portal_functions.php';
|
require_once 'functions.php';
|
||||||
require_once "portal_header.php";
|
require_once "header.php";
|
||||||
|
|
@ -6,11 +6,11 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
header("Content-Security-Policy: default-src 'self'");
|
||||||
|
|
||||||
require_once "inc_portal.php";
|
require_once "includes/inc_all.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="col-md-2 offset-1">
|
<div class="col-md-2 offset-1">
|
||||||
<a href="ticket_add.php" class="btn btn-primary btn-block">New ticket</a>
|
<a href="ticket_add.php" class="btn btn-primary btn-block">New ticket</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php require_once "portal_footer.php"; ?>
|
<?php require_once "includes/footer.php"; ?>
|
||||||
|
|
@ -6,11 +6,11 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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) {
|
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -99,5 +99,5 @@ $invoices_sql = mysqli_query($mysqli, "SELECT * FROM invoices WHERE invoice_clie
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
||||||
|
|
@ -8,7 +8,7 @@ require_once '../config.php';
|
||||||
require_once '../get_settings.php';
|
require_once '../get_settings.php';
|
||||||
require_once '../functions.php';
|
require_once '../functions.php';
|
||||||
require_once 'check_login.php';
|
require_once 'check_login.php';
|
||||||
require_once 'portal_functions.php';
|
require_once 'functions.php';
|
||||||
|
|
||||||
if (isset($_POST['add_ticket'])) {
|
if (isset($_POST['add_ticket'])) {
|
||||||
|
|
||||||
|
|
@ -174,7 +174,7 @@ if (isset($_POST['add_ticket_comment'])) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// The client does not have access to this ticket
|
// The client does not have access to this ticket
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -203,7 +203,7 @@ if (isset($_POST['add_ticket_feedback'])) {
|
||||||
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
header("Location: " . $_SERVER["HTTP_REFERER"]);
|
||||||
} else {
|
} else {
|
||||||
// The client does not have access to this ticket
|
// The client does not have access to this ticket
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -332,7 +332,7 @@ if (isset($_POST['edit_profile'])) {
|
||||||
if (isset($_POST['add_contact'])) {
|
if (isset($_POST['add_contact'])) {
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -379,7 +379,7 @@ if (isset($_POST['add_contact'])) {
|
||||||
if (isset($_POST['edit_contact'])) {
|
if (isset($_POST['edit_contact'])) {
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -432,7 +432,7 @@ if (isset($_POST['edit_contact'])) {
|
||||||
if (isset($_POST['create_stripe_customer'])) {
|
if (isset($_POST['create_stripe_customer'])) {
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -496,7 +496,7 @@ if (isset($_GET['create_stripe_checkout'])) {
|
||||||
// This page is called by the autopay_setup_stripe.js, it returns a checkout session client secret
|
// This page is called by the autopay_setup_stripe.js, it returns a checkout session client secret
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -515,7 +515,7 @@ if (isset($_GET['create_stripe_checkout'])) {
|
||||||
$client_currency = $client_currency_details['client_currency_code'];
|
$client_currency = $client_currency_details['client_currency_code'];
|
||||||
|
|
||||||
// Define return URL that user is redirected to once payment method is verified by Stripe
|
// Define return URL that user is redirected to once payment method is verified by Stripe
|
||||||
$return_url = "https://$config_base_url/portal/portal_post.php?stripe_save_card&session_id={CHECKOUT_SESSION_ID}";
|
$return_url = "https://$config_base_url/client/post.php?stripe_save_card&session_id={CHECKOUT_SESSION_ID}";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Initialize stripe
|
// Initialize stripe
|
||||||
|
|
@ -544,7 +544,7 @@ if (isset($_GET['create_stripe_checkout'])) {
|
||||||
if (isset($_GET['stripe_save_card'])) {
|
if (isset($_GET['stripe_save_card'])) {
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -644,7 +644,7 @@ if (isset($_GET['stripe_save_card'])) {
|
||||||
if (isset($_GET['stripe_remove_card'])) {
|
if (isset($_GET['stripe_remove_card'])) {
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
header("Content-Security-Policy: default-src 'self'");
|
||||||
|
|
||||||
require_once 'inc_portal.php';
|
require_once 'includes/inc_all.php';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
@ -30,7 +30,7 @@ require_once 'inc_portal.php';
|
||||||
<hr>
|
<hr>
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<h4>Password</h4>
|
<h4>Password</h4>
|
||||||
<form action="portal_post.php" method="post" autocomplete="off">
|
<form action="post.php" method="post" autocomplete="off">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>New Password</label>
|
<label>New Password</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
|
@ -46,5 +46,5 @@ require_once 'inc_portal.php';
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once 'portal_footer.php';
|
require_once 'includes/footer.php';
|
||||||
|
|
||||||
|
|
@ -6,10 +6,10 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
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) {
|
if ($session_contact_primary == 0 && !$session_contact_is_billing_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -67,7 +67,7 @@ $quotes_sql = mysqli_query($mysqli, "SELECT * FROM quotes WHERE quote_client_id
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a target="_blank" href="//<?php echo $config_base_url ?>/guest_view_quote.php?quote_id=<?php echo "$quote_id&url_key=$quote_url_key"?>"> <?php echo "$quote_prefix$quote_number"; ?></a></td>
|
<td><a target="_blank" href="//<?php echo $config_base_url ?>/guest/guest_view_quote.php?quote_id=<?php echo "$quote_id&url_key=$quote_url_key"?>"> <?php echo "$quote_prefix$quote_number"; ?></a></td>
|
||||||
<td><?php echo $quote_scope_display; ?></td>
|
<td><?php echo $quote_scope_display; ?></td>
|
||||||
<td><?php echo numfmt_format_currency($currency_format, $quote_amount, $session_company_currency); ?></td>
|
<td><?php echo numfmt_format_currency($currency_format, $quote_amount, $session_company_currency); ?></td>
|
||||||
<td><?php echo $quote_date; ?></td>
|
<td><?php echo $quote_date; ?></td>
|
||||||
|
|
@ -88,4 +88,4 @@ $quotes_sql = mysqli_query($mysqli, "SELECT * FROM quotes WHERE quote_client_id
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
* Ticket detail page
|
* Ticket detail page
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once "inc_portal.php";
|
require_once "includes/inc_all.php";
|
||||||
|
|
||||||
//Initialize the HTML Purifier to prevent XSS
|
//Initialize the HTML Purifier to prevent XSS
|
||||||
require "../plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
require "../plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||||
|
|
@ -91,7 +91,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
Ticket <?php echo $ticket_prefix, $ticket_number ?>
|
Ticket <?php echo $ticket_prefix, $ticket_number ?>
|
||||||
<?php
|
<?php
|
||||||
if (empty($ticket_resolved_at) && $task_count == $completed_task_count) { ?>
|
if (empty($ticket_resolved_at) && $task_count == $completed_task_count) { ?>
|
||||||
<a href="portal_post.php?resolve_ticket=<?php echo $ticket_id; ?>" class="btn btn-sm btn-outline-success float-right text-white confirm-link"><i class="fas fa-fw fa-check text-success"></i> Resolve ticket</a>
|
<a href="post.php?resolve_ticket=<?php echo $ticket_id; ?>" class="btn btn-sm btn-outline-success float-right text-white confirm-link"><i class="fas fa-fw fa-check text-success"></i> Resolve ticket</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -135,7 +135,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
<?php if (empty($ticket_resolved_at)) { ?>
|
<?php if (empty($ticket_resolved_at)) { ?>
|
||||||
<!-- Reply -->
|
<!-- Reply -->
|
||||||
|
|
||||||
<form action="portal_post.php" enctype="multipart/form-data" method="post">
|
<form action="post.php" enctype="multipart/form-data" method="post">
|
||||||
<input type="hidden" name="ticket_id" value="<?php echo $ticket_id ?>">
|
<input type="hidden" name="ticket_id" value="<?php echo $ticket_id ?>">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<textarea class="form-control tinymce" name="comment" placeholder="Add comments.."></textarea>
|
<textarea class="form-control tinymce" name="comment" placeholder="Add comments.."></textarea>
|
||||||
|
|
@ -154,11 +154,11 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a href="portal_post.php?reopen_ticket=<?php echo $ticket_id; ?>" class="btn btn-secondary btn-lg"><i class="fas fa-fw fa-redo text-white"></i> Reopen ticket</a>
|
<a href="post.php?reopen_ticket=<?php echo $ticket_id; ?>" class="btn btn-secondary btn-lg"><i class="fas fa-fw fa-redo text-white"></i> Reopen ticket</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<a href="portal_post.php?close_ticket=<?php echo $ticket_id; ?>" class="btn btn-success btn-lg confirm-link"><i class="fas fa-fw fa-gavel text-white"></i> Close ticket</a>
|
<a href="post.php?close_ticket=<?php echo $ticket_id; ?>" class="btn btn-success btn-lg confirm-link"><i class="fas fa-fw fa-gavel text-white"></i> Close ticket</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -168,7 +168,7 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
|
|
||||||
<h4>Ticket closed. Please rate your ticket</h4>
|
<h4>Ticket closed. Please rate your ticket</h4>
|
||||||
|
|
||||||
<form action="portal_post.php" method="post">
|
<form action="post.php" method="post">
|
||||||
<input type="hidden" name="ticket_id" value="<?php echo $ticket_id ?>">
|
<input type="hidden" name="ticket_id" value="<?php echo $ticket_id ?>">
|
||||||
|
|
||||||
<button type="submit" class="btn btn-primary btn-lg" name="add_ticket_feedback" value="Good" onclick="this.form.submit()">
|
<button type="submit" class="btn btn-primary btn-lg" name="add_ticket_feedback" value="Good" onclick="this.form.submit()">
|
||||||
|
|
@ -282,6 +282,6 @@ if (isset($_GET['id']) && intval($_GET['id'])) {
|
||||||
header("Location: index.php");
|
header("Location: index.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once "portal_footer.php";
|
require_once "includes/footer.php";
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
* New ticket form
|
* New ticket form
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'inc_portal.php';
|
require_once 'includes/inc_all.php';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ require_once 'inc_portal.php';
|
||||||
<h3>Raise a new ticket</h3>
|
<h3>Raise a new ticket</h3>
|
||||||
|
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<form action="portal_post.php" method="post">
|
<form action="post.php" method="post">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Subject <strong class="text-danger">*</strong></label>
|
<label>Subject <strong class="text-danger">*</strong></label>
|
||||||
|
|
@ -58,5 +58,5 @@ require_once 'inc_portal.php';
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once 'portal_footer.php';
|
require_once 'includes/footer.php';
|
||||||
|
|
||||||
|
|
@ -4,11 +4,11 @@
|
||||||
* Primary contact view: all tickets
|
* Primary contact view: all tickets
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once 'inc_portal.php';
|
require_once 'includes/inc_all.php';
|
||||||
|
|
||||||
|
|
||||||
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
if ($session_contact_primary == 0 && !$session_contact_is_technical_contact) {
|
||||||
header("Location: portal_post.php?logout");
|
header("Location: post.php?logout");
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -74,5 +74,5 @@ $all_tickets = mysqli_query($mysqli, "SELECT ticket_id, ticket_prefix, ticket_nu
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
require_once 'portal_footer.php';
|
require_once 'includes/footer.php';
|
||||||
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
header("Content-Security-Policy: default-src 'self'");
|
header("Content-Security-Policy: default-src 'self'");
|
||||||
|
|
||||||
require_once "inc_portal.php";
|
require_once "includes/inc_all.php";
|
||||||
|
|
||||||
|
|
||||||
// Ticket status from GET
|
// Ticket status from GET
|
||||||
|
|
@ -109,5 +109,5 @@ $total_tickets = intval($row['total_tickets']);
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php require_once "portal_footer.php";
|
<?php require_once "includes/footer.php";
|
||||||
?>
|
?>
|
||||||
2
cron.php
2
cron.php
|
|
@ -329,7 +329,7 @@ if (mysqli_num_rows($sql_scheduled_tickets) > 0) {
|
||||||
if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
|
||||||
$email_subject = "Ticket created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
|
$email_subject = "Ticket created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
|
||||||
$email_body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>A ticket regarding \"$ticket_subject\" has been automatically created for you.<br><br>--------------------------------<br>$ticket_details--------------------------------<br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Status: Open<br>Portal: https://$config_base_url/portal/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
$email_body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>A ticket regarding \"$ticket_subject\" has been automatically created for you.<br><br>--------------------------------<br>$ticket_details--------------------------------<br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Status: Open<br>Portal: https://$config_base_url/client/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
|
|
||||||
$email = [
|
$email = [
|
||||||
'from' => $config_ticket_from_email,
|
'from' => $config_ticket_from_email,
|
||||||
|
|
|
||||||
|
|
@ -155,7 +155,7 @@ function addTicket($contact_id, $contact_name, $contact_email, $client_id, $date
|
||||||
$data = [];
|
$data = [];
|
||||||
if ($config_ticket_client_general_notifications == 1) {
|
if ($config_ticket_client_general_notifications == 1) {
|
||||||
$subject_email = "Ticket created - [$config_ticket_prefix$ticket_number] - $subject";
|
$subject_email = "Ticket created - [$config_ticket_prefix$ticket_number] - $subject";
|
||||||
$body = "<i style='color: #808080'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>Thank you for your email. A ticket regarding \"$subject\" has been automatically created for you.<br><br>Ticket: $config_ticket_prefix$ticket_number<br>Subject: $subject<br>Status: New<br>https://$config_base_url/portal/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
$body = "<i style='color: #808080'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>Thank you for your email. A ticket regarding \"$subject\" has been automatically created for you.<br><br>Ticket: $config_ticket_prefix$ticket_number<br>Subject: $subject<br>Status: New<br>https://$config_base_url/client/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
$data[] = [
|
$data[] = [
|
||||||
'from' => $config_ticket_from_email,
|
'from' => $config_ticket_from_email,
|
||||||
'from_name' => $config_ticket_from_name,
|
'from_name' => $config_ticket_from_name,
|
||||||
|
|
|
||||||
|
|
@ -383,7 +383,7 @@ if (isset($_POST['login'])) {
|
||||||
|
|
||||||
<?php if($config_client_portal_enable == 1){ ?>
|
<?php if($config_client_portal_enable == 1){ ?>
|
||||||
<hr>
|
<hr>
|
||||||
<h5 class="text-center">Looking for the <a href="portal">Client Portal?<a/></h5>
|
<h5 class="text-center">Looking for the <a href="client">Client Portal?<a/></h5>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
|
||||||
|
|
@ -182,13 +182,13 @@ if (isset($_POST['edit_contact'])) {
|
||||||
if ($auth_method == 'azure') {
|
if ($auth_method == 'azure') {
|
||||||
$password_info = "Login with your Microsoft (Azure AD) account.";
|
$password_info = "Login with your Microsoft (Azure AD) account.";
|
||||||
} elseif (empty($_POST['contact_password'])) {
|
} elseif (empty($_POST['contact_password'])) {
|
||||||
$password_info = "Request a password reset at https://$config_base_url/portal/login_reset.php";
|
$password_info = "Request a password reset at https://$config_base_url/client/login_reset.php";
|
||||||
} else {
|
} else {
|
||||||
$password_info = mysqli_real_escape_string($mysqli, $_POST['contact_password'] . " -- Please change on first login");
|
$password_info = mysqli_real_escape_string($mysqli, $_POST['contact_password'] . " -- Please change on first login");
|
||||||
}
|
}
|
||||||
|
|
||||||
$subject = "Your new $company_name portal account";
|
$subject = "Your new $company_name portal account";
|
||||||
$body = "Hello $name,<br><br>$company_name has created a support portal account for you. <br><br>Username: $email<br>Password: $password_info<br><br>Login URL: https://$config_base_url/portal/<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
$body = "Hello $name,<br><br>$company_name has created a support portal account for you. <br><br>Username: $email<br>Password: $password_info<br><br>Login URL: https://$config_base_url/client/<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
|
|
||||||
// Queue Mail
|
// Queue Mail
|
||||||
$data = [
|
$data = [
|
||||||
|
|
|
||||||
|
|
@ -961,7 +961,7 @@ if (isset($_POST['bulk_resolve_tickets'])) {
|
||||||
|
|
||||||
// EMAIL
|
// EMAIL
|
||||||
$subject = "Ticket resolved - [$ticket_prefix$ticket_number] - $ticket_subject | (pending closure)";
|
$subject = "Ticket resolved - [$ticket_prefix$ticket_number] - $ticket_subject | (pending closure)";
|
||||||
$body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>Your ticket regarding \"$ticket_subject\" has been marked as solved and is pending closure.<br><br>$details<br><br> If your request/issue is resolved, you can simply ignore this email. If you need further assistance, please reply or <a href=\'https://$config_base_url/guest/guest_view_ticket.php?ticket_id=$ticket_id&url_key=$url_key\'>re-open</a> to let us know! <br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Portal: https://$base_url/portal/ticket.php?id=$ticket_id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
$body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>Your ticket regarding \"$ticket_subject\" has been marked as solved and is pending closure.<br><br>$details<br><br> If your request/issue is resolved, you can simply ignore this email. If you need further assistance, please reply or <a href=\'https://$config_base_url/guest/guest_view_ticket.php?ticket_id=$ticket_id&url_key=$url_key\'>re-open</a> to let us know! <br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Portal: https://$base_url/client/ticket.php?id=$ticket_id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
|
|
||||||
// Check email valid
|
// Check email valid
|
||||||
if (filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
if (filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
|
@ -1758,7 +1758,7 @@ if (isset($_GET['close_ticket'])) {
|
||||||
// EMAIL
|
// EMAIL
|
||||||
$subject = "Ticket closed - [$ticket_prefix$ticket_number] - $ticket_subject | (do not reply)";
|
$subject = "Ticket closed - [$ticket_prefix$ticket_number] - $ticket_subject | (do not reply)";
|
||||||
//$body = "Hello $contact_name,<br><br>Your ticket regarding \"$ticket_subject\" has been closed. <br><br> We hope the request/issue was resolved to your satisfaction. If you need further assistance, please raise a new ticket using the below details. Please do not reply to this email. <br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Portal: https://$config_base_url/portal/ticket.php?id=$ticket_id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
//$body = "Hello $contact_name,<br><br>Your ticket regarding \"$ticket_subject\" has been closed. <br><br> We hope the request/issue was resolved to your satisfaction. If you need further assistance, please raise a new ticket using the below details. Please do not reply to this email. <br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Portal: https://$config_base_url/portal/ticket.php?id=$ticket_id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
$body = "Hello $contact_name,<br><br>Your ticket regarding \"$ticket_subject\" has been closed. <br><br> We hope the request/issue was resolved to your satisfaction, please provide your feedback <a href=\'https://$config_base_url/guest/guest_view_ticket.php?ticket_id=$ticket_id&url_key=$url_key\'>here</a>. <br>If you need further assistance, please raise a new ticket using the below details. Please do not reply to this email. <br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Portal: https://$config_base_url/portal/ticket.php?id=$ticket_id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
$body = "Hello $contact_name,<br><br>Your ticket regarding \"$ticket_subject\" has been closed. <br><br> We hope the request/issue was resolved to your satisfaction, please provide your feedback <a href=\'https://$config_base_url/guest/guest_view_ticket.php?ticket_id=$ticket_id&url_key=$url_key\'>here</a>. <br>If you need further assistance, please raise a new ticket using the below details. Please do not reply to this email. <br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Portal: https://$config_base_url/client/ticket.php?id=$ticket_id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
|
|
||||||
// Check email valid
|
// Check email valid
|
||||||
if (filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
if (filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
|
@ -2087,7 +2087,7 @@ if (isset($_GET['force_recurring_ticket'])) {
|
||||||
if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
|
||||||
$email_subject = "Ticket created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
|
$email_subject = "Ticket created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
|
||||||
$email_body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>A ticket regarding \"$ticket_subject\" has been automatically created for you.<br><br>--------------------------------<br>$ticket_details--------------------------------<br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Status: Open<br>Portal: https://$config_base_url/portal/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
$email_body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>A ticket regarding \"$ticket_subject\" has been automatically created for you.<br><br>--------------------------------<br>$ticket_details--------------------------------<br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Status: Open<br>Portal: https://$config_base_url/client/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
|
|
||||||
$email = [
|
$email = [
|
||||||
'from' => $config_ticket_from_email,
|
'from' => $config_ticket_from_email,
|
||||||
|
|
@ -2230,7 +2230,7 @@ if (isset($_POST['edit_ticket_schedule'])) {
|
||||||
$onsite = intval($_POST['onsite']);
|
$onsite = intval($_POST['onsite']);
|
||||||
$schedule = sanitizeInput($_POST['scheduled_date_time']);
|
$schedule = sanitizeInput($_POST['scheduled_date_time']);
|
||||||
$ticket_link = "ticket.php?ticket_id=$ticket_id";
|
$ticket_link = "ticket.php?ticket_id=$ticket_id";
|
||||||
$full_ticket_url = "https://$config_base_url/portal/ticket.php?ticket_id=$ticket_id";
|
$full_ticket_url = "https://$config_base_url/client/ticket.php?ticket_id=$ticket_id";
|
||||||
$ticket_link_html = "<a href=\"$full_ticket_url\">$ticket_link</a>";
|
$ticket_link_html = "<a href=\"$full_ticket_url\">$ticket_link</a>";
|
||||||
|
|
||||||
mysqli_query($mysqli,"UPDATE tickets
|
mysqli_query($mysqli,"UPDATE tickets
|
||||||
|
|
@ -2309,7 +2309,7 @@ if (isset($_POST['edit_ticket_schedule'])) {
|
||||||
</div>
|
</div>
|
||||||
Your ticket regarding $ticket_subject has been scheduled for $email_datetime.
|
Your ticket regarding $ticket_subject has been scheduled for $email_datetime.
|
||||||
<br><br>
|
<br><br>
|
||||||
<a href='https://$config_base_url/portal/ticket.php?id=$ticket_id' class='link-button'>Access your ticket here</a>
|
<a href='https://$config_base_url/client/ticket.php?id=$ticket_id' class='link-button'>Access your ticket here</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
Please do not reply to this email.
|
Please do not reply to this email.
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
@ -2344,13 +2344,13 @@ if (isset($_POST['edit_ticket_schedule'])) {
|
||||||
</div>
|
</div>
|
||||||
The ticket regarding $ticket_subject has been scheduled for $email_datetime.
|
The ticket regarding $ticket_subject has been scheduled for $email_datetime.
|
||||||
<br><br>
|
<br><br>
|
||||||
<a href='https://$config_base_url/portal/ticket.php?id=$ticket_id' class='link-button'>$ticket_link</a>
|
<a href='https://$config_base_url/client/ticket.php?id=$ticket_id' class='link-button'>$ticket_link</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
Please do not reply to this email.
|
Please do not reply to this email.
|
||||||
<br><br>
|
<br><br>
|
||||||
<strong>Ticket:</strong> $ticket_prefix$ticket_number<br>
|
<strong>Ticket:</strong> $ticket_prefix$ticket_number<br>
|
||||||
<strong>Subject:</strong> $ticket_subject<br>
|
<strong>Subject:</strong> $ticket_subject<br>
|
||||||
<strong>Portal:</strong> <a href='https://$config_base_url/portal/ticket.php?id=$ticket_id'>Access the ticket here</a>
|
<strong>Portal:</strong> <a href='https://$config_base_url/client/ticket.php?id=$ticket_id'>Access the ticket here</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class='footer'>
|
<div class='footer'>
|
||||||
~<br>
|
~<br>
|
||||||
|
|
@ -2462,7 +2462,7 @@ if (isset($_GET['cancel_ticket_schedule'])) {
|
||||||
</div>
|
</div>
|
||||||
Scheduled work for your ticket regarding $ticket_subject has been cancelled.
|
Scheduled work for your ticket regarding $ticket_subject has been cancelled.
|
||||||
<br><br>
|
<br><br>
|
||||||
<a href='https://$config_base_url/portal/ticket.php?id=$ticket_id' class='link-button'>Access your ticket here</a>
|
<a href='https://$config_base_url/client/ticket.php?id=$ticket_id' class='link-button'>Access your ticket here</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
Please do not reply to this email.
|
Please do not reply to this email.
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
@ -2496,13 +2496,13 @@ if (isset($_GET['cancel_ticket_schedule'])) {
|
||||||
</div>
|
</div>
|
||||||
Scheduled work for the ticket regarding $ticket_subject has been cancelled.
|
Scheduled work for the ticket regarding $ticket_subject has been cancelled.
|
||||||
<br><br>
|
<br><br>
|
||||||
<a href='https://$config_base_url/portal/ticket.php?id=$ticket_id' class='link-button'>$ticket_link</a>
|
<a href='https://$config_base_url/client/ticket.php?id=$ticket_id' class='link-button'>$ticket_link</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
Please do not reply to this email.
|
Please do not reply to this email.
|
||||||
<br><br>
|
<br><br>
|
||||||
<strong>Ticket:</strong> $ticket_prefix$ticket_number<br>
|
<strong>Ticket:</strong> $ticket_prefix$ticket_number<br>
|
||||||
<strong>Subject:</strong> $ticket_subject<br>
|
<strong>Subject:</strong> $ticket_subject<br>
|
||||||
<strong>Portal:</strong> <a href='https://$config_base_url/portal/ticket.php?id=$ticket_id'>Access the ticket here</a>
|
<strong>Portal:</strong> <a href='https://$config_base_url/client/ticket.php?id=$ticket_id'>Access the ticket here</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class='footer'>
|
<div class='footer'>
|
||||||
~<br>
|
~<br>
|
||||||
|
|
|
||||||
|
|
@ -351,7 +351,7 @@ if (mysqli_num_rows($sql_scheduled_tickets) > 0) {
|
||||||
if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
if (!empty($config_smtp_host) && $config_ticket_client_general_notifications == 1 && filter_var($contact_email, FILTER_VALIDATE_EMAIL)) {
|
||||||
|
|
||||||
$email_subject = "Ticket created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
|
$email_subject = "Ticket created - [$ticket_prefix$ticket_number] - $ticket_subject (scheduled)";
|
||||||
$email_body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>A ticket regarding \"$ticket_subject\" has been automatically created for you.<br><br>--------------------------------<br>$ticket_details--------------------------------<br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Status: Open<br>Portal: https://$config_base_url/portal/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
$email_body = "<i style=\'color: #808080\'>##- Please type your reply above this line -##</i><br><br>Hello $contact_name,<br><br>A ticket regarding \"$ticket_subject\" has been automatically created for you.<br><br>--------------------------------<br>$ticket_details--------------------------------<br><br>Ticket: $ticket_prefix$ticket_number<br>Subject: $ticket_subject<br>Status: Open<br>Portal: https://$config_base_url/client/ticket.php?id=$id<br><br>--<br>$company_name - Support<br>$config_ticket_from_email<br>$company_phone";
|
||||||
|
|
||||||
$email = [
|
$email = [
|
||||||
'from' => $config_ticket_from_email,
|
'from' => $config_ticket_from_email,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue