mirror of https://github.com/itflow-org/itflow
Update constructs to not have parenthesis.
This commit is contained in:
parent
56b91f3278
commit
53c11edc8c
10
accounts.php
10
accounts.php
|
|
@ -4,7 +4,7 @@
|
|||
$sort = "account_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -105,18 +105,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
include("account_edit_modal.php");
|
||||
include "account_edit_modal.php";
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php"; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
require_once("account_add_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "account_add_modal.php";
|
||||
require_once "footer.php";
|
||||
|
|
|
|||
12
ajax.php
12
ajax.php
|
|
@ -6,10 +6,14 @@
|
|||
* Always returns data in JSON format, unless otherwise specified
|
||||
*/
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once("check_login.php");
|
||||
require_once("rfc6238.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
require_once "rfc6238.php";
|
||||
|
||||
|
||||
/*
|
||||
* Fetches SSL certificates from remote hosts & returns the relevant info (issuer, expiry, public key)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_post_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_post_method.php';
|
||||
|
||||
|
||||
// Parse POST info
|
||||
require_once('asset_model.php');
|
||||
require_once 'asset_model.php';
|
||||
|
||||
|
||||
// Default
|
||||
$insert_id = false;
|
||||
|
|
@ -23,4 +26,5 @@ if (!empty($name) && !empty($client_id)) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once('../create_output.php');
|
||||
require_once '../create_output.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
require_once('../validate_api_key.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
|
||||
require_once '../require_post_method.php';
|
||||
|
||||
require_once('../require_post_method.php');
|
||||
|
||||
// Parse ID
|
||||
$asset_id = intval($_POST['asset_id']);
|
||||
|
|
@ -25,4 +27,5 @@ if (!empty($asset_id)) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once('../delete_output.php');
|
||||
require_once '../delete_output.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Asset via ID (single)
|
||||
if (isset($_GET['asset_id'])) {
|
||||
|
|
@ -50,4 +52,4 @@ else {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_post_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_post_method.php';
|
||||
|
||||
|
||||
// Parse ID
|
||||
$asset_id = intval($_POST['asset_id']);
|
||||
|
|
@ -14,7 +16,8 @@ if (!empty($asset_id)) {
|
|||
$asset_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM assets WHERE asset_id = '$asset_id' AND asset_client_id = $client_id LIMIT 1"));
|
||||
|
||||
// Variable assignment from POST - assigning the current database value if a value is not provided
|
||||
require_once('asset_model.php');
|
||||
require_once 'asset_model.php';
|
||||
|
||||
|
||||
$update_sql = mysqli_query($mysqli, "UPDATE assets SET asset_name = '$name', asset_description = '$description', asset_type = '$type', asset_make = '$make', asset_model = '$model', asset_serial = '$serial', asset_os = '$os', asset_ip = '$aip', asset_mac = '$mac', asset_uri = '$uri', asset_status = '$status', asset_location_id = $location, asset_vendor_id = $vendor, asset_contact_id = $contact, asset_purchase_date = $purchase_date, asset_warranty_expire = $warranty_expire, asset_install_date = $install_date, asset_notes = '$notes', asset_network_id = $network WHERE asset_id = $asset_id AND asset_client_id = $client_id LIMIT 1");
|
||||
|
||||
|
|
@ -29,4 +32,5 @@ if (!empty($asset_id)) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once('../update_output.php');
|
||||
require_once '../update_output.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Specific certificate via ID (single)
|
||||
if (isset($_GET['certificate_id'])) {
|
||||
|
|
@ -26,4 +28,5 @@ if (isset($_GET['certificate_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Specific client via ID (single)
|
||||
if (isset($_GET['client_id'])) {
|
||||
|
|
@ -21,4 +23,5 @@ if (isset($_GET['client_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_post_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_post_method.php';
|
||||
|
||||
|
||||
// Parse Info
|
||||
require_once('contact_model.php');
|
||||
require_once 'contact_model.php';
|
||||
|
||||
|
||||
// Default
|
||||
$insert_id = false;
|
||||
|
|
@ -31,4 +34,5 @@ if (!empty($name) && !empty($email) && !empty($client_id)) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once('../create_output.php');
|
||||
require_once '../create_output.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_post_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_post_method.php';
|
||||
|
||||
|
||||
// Parse ID
|
||||
$contact_id = intval($_POST['contact_id']);
|
||||
|
|
@ -25,4 +27,5 @@ if (!empty($contact_id)) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once('../delete_output.php');
|
||||
require_once '../delete_output.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Specific contact via ID (single)
|
||||
if (isset($_GET['contact_id'])) {
|
||||
|
|
@ -21,4 +23,5 @@ if (isset($_GET['contact_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_post_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_post_method.php';
|
||||
|
||||
|
||||
// Parse Info
|
||||
$contact_id = intval($_POST['contact_id']);
|
||||
|
|
@ -14,7 +16,8 @@ if (!empty($contact_id)) {
|
|||
$contact_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_id = '$contact_id' AND contact_client_id = $client_id LIMIT 1"));
|
||||
|
||||
// Variable assignment from POST - assigning the current database value if a value is not provided
|
||||
require_once('contact_model.php');
|
||||
require_once 'contact_model.php';
|
||||
|
||||
|
||||
$update_sql = mysqli_query($mysqli, "UPDATE contacts SET contact_name = '$name', contact_title = '$title', contact_department = '$department', contact_email = '$email', contact_phone = '$phone', contact_extension = '$extension', contact_mobile = '$mobile', contact_notes = '$notes', contact_auth_method = '$auth_method', contact_important = '$important', contact_billing = '$billing', contact_technical = '$technical', contact_location_id = $location_id, contact_client_id = $client_id WHERE contact_id = $contact_id LIMIT 1");
|
||||
|
||||
|
|
@ -29,4 +32,5 @@ if (!empty($contact_id)) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once('../update_output.php');
|
||||
require_once '../update_output.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
if (isset($_GET['document_id'])) {
|
||||
// Document via ID (single)
|
||||
|
|
@ -16,4 +18,5 @@ if (isset($_GET['document_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Specific domain via ID (single)
|
||||
if (isset($_GET['domain_id'])) {
|
||||
|
|
@ -26,4 +28,5 @@ if (isset($_GET['domain_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Expenses aren't stored against client IDs, so we instead validate the API key is for All Clients
|
||||
|
||||
|
|
@ -18,4 +20,5 @@ if (isset($_GET['expense_id']) && $client_id == "%") {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
if (isset($_GET['invoice_id'])) {
|
||||
// Invoice via ID (single)
|
||||
|
|
@ -16,4 +18,5 @@ if (isset($_GET['invoice_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Specific network via ID (single)
|
||||
if (isset($_GET['network_id'])) {
|
||||
|
|
@ -26,4 +28,5 @@ if (isset($_GET['network_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Payments aren't stored against client IDs, so we instead validate the API key is for All Clients
|
||||
|
||||
|
|
@ -25,4 +27,5 @@ if (isset($_GET['payment_id']) && $client_id == "%") {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Products aren't stored against client IDs, so we instead validate the API key is for All Clients
|
||||
|
||||
|
|
@ -18,4 +20,5 @@ if (isset($_GET['product_id']) && $client_id == "%") {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
if (isset($_GET['quote_id'])) {
|
||||
// quote via ID (single)
|
||||
|
|
@ -16,4 +18,5 @@ if (isset($_GET['quote_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Specific software via ID (single)
|
||||
if (isset($_GET['software_id'])) {
|
||||
|
|
@ -38,4 +40,5 @@ if (isset($_GET['software_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,13 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_post_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_post_method.php';
|
||||
|
||||
|
||||
// Ticket-related settings
|
||||
require_once("../../../get_settings.php");
|
||||
require_once "../../../get_settings.php";
|
||||
|
||||
$sql = mysqli_query($mysqli, "SELECT company_name, company_phone FROM companies WHERE company_id = 1");
|
||||
$row = mysqli_fetch_array($sql);
|
||||
$company_name = $row['company_name'];
|
||||
|
|
@ -12,7 +15,8 @@ $company_phone = formatPhoneNumber($row['company_phone']);
|
|||
|
||||
// Parse Info
|
||||
$ticket_row = false; // Creation, not an update
|
||||
require_once('ticket_model.php');
|
||||
require_once 'ticket_model.php';
|
||||
|
||||
|
||||
// Default
|
||||
$insert_id = false;
|
||||
|
|
@ -45,4 +49,5 @@ if (!empty($subject) && !empty($client_id)) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once('../create_output.php');
|
||||
require_once '../create_output.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once('../validate_api_key.php');
|
||||
require_once('../require_get_method.php');
|
||||
require_once '../validate_api_key.php';
|
||||
|
||||
require_once '../require_get_method.php';
|
||||
|
||||
|
||||
// Specific ticket via ID (single)
|
||||
if (isset($_GET['ticket_id'])) {
|
||||
|
|
@ -15,4 +17,5 @@ if (isset($_GET['ticket_id'])) {
|
|||
}
|
||||
|
||||
// Output
|
||||
require_once("../read_output.php");
|
||||
require_once "../read_output.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php require_once("inc_all.php"); ?>
|
||||
<?php require_once "inc_all.php";
|
||||
?>
|
||||
|
||||
<!-- Breadcrumbs-->
|
||||
<ol class="breadcrumb">
|
||||
|
|
@ -40,4 +41,5 @@ echo '</select>';
|
|||
|
||||
<script>toastr.success('Have Fun Wozz!!')</script>
|
||||
|
||||
<?php require_once("footer.php"); ?>
|
||||
<?php require_once "footer.php";
|
||||
?>
|
||||
|
|
|
|||
15
budget.php
15
budget.php
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "budget_year";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -131,7 +132,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("budget_edit_modal.php");
|
||||
require "budget_edit_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -140,10 +142,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("budget_create_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "budget_create_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
if (isset($_GET['calendar_id'])) {
|
||||
$calendar_selected_id = intval($_GET['calendar_id']);
|
||||
|
|
@ -20,9 +21,12 @@ if (isset($_GET['calendar_id'])) {
|
|||
|
||||
<?php
|
||||
|
||||
require_once("calendar_event_add_modal.php");
|
||||
require_once("calendar_add_modal.php");
|
||||
require_once("category_quick_add_modal.php");
|
||||
require_once "calendar_event_add_modal.php";
|
||||
|
||||
require_once "calendar_add_modal.php";
|
||||
|
||||
require_once "category_quick_add_modal.php";
|
||||
|
||||
|
||||
//loop through IDs and create a modal for each
|
||||
$sql = mysqli_query($mysqli, "SELECT * FROM events LEFT JOIN calendars ON event_calendar_id = calendar_id");
|
||||
|
|
@ -38,13 +42,15 @@ while ($row = mysqli_fetch_array($sql)) {
|
|||
$calendar_color = nullable_htmlentities($row['calendar_color']);
|
||||
$client_id = intval($row['event_client_id']);
|
||||
|
||||
require("calendar_event_edit_modal.php");
|
||||
require "calendar_event_edit_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php require_once("footer.php"); ?>
|
||||
<?php require_once "footer.php";
|
||||
?>
|
||||
|
||||
<script src='plugins/fullcalendar/main.min.js'></script>
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "category_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_settings.php");
|
||||
require_once "inc_all_settings.php";
|
||||
|
||||
|
||||
if (isset($_GET['category'])) {
|
||||
$category = sanitizeInput($_GET['category']);
|
||||
|
|
@ -188,7 +189,8 @@ $colors_diff = array_diff($colors_array, $colors_used_array);
|
|||
|
||||
//$colors_diff = array_diff($colors_array,$colors_used_array);
|
||||
|
||||
include("category_edit_modal.php");
|
||||
include "category_edit_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -197,10 +199,12 @@ $colors_diff = array_diff($colors_array, $colors_used_array);
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("category_add_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "category_add_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ date_default_timezone_set($session_timezone);
|
|||
//Set Currency Format
|
||||
$currency_format = numfmt_create($session_company_locale, NumberFormatter::CURRENCY);
|
||||
|
||||
require_once("get_settings.php");
|
||||
require_once "get_settings.php";
|
||||
|
||||
|
||||
//Detects if using an Apple device and uses Apple Maps instead of google
|
||||
$iPod = stripos($_SERVER['HTTP_USER_AGENT'], "iPod");
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
if (isset($_GET['asset_id'])) {
|
||||
$asset_id = intval($_GET['asset_id']);
|
||||
|
|
@ -171,7 +172,8 @@ if (isset($_GET['asset_id'])) {
|
|||
<i class="fas fa-fw fa-edit"></i> Edit
|
||||
</button>
|
||||
|
||||
<?php require_once("client_asset_edit_modal.php"); ?>
|
||||
<?php require_once "client_asset_edit_modal.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -291,7 +293,8 @@ if (isset($_GET['asset_id'])) {
|
|||
|
||||
<?php
|
||||
|
||||
require("client_login_edit_modal.php");
|
||||
require "client_login_edit_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -477,7 +480,8 @@ if (isset($_GET['asset_id'])) {
|
|||
|
||||
<?php
|
||||
|
||||
require_once("share_modal.php");
|
||||
require_once "share_modal.php";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
|
@ -515,4 +519,5 @@ if (isset($_GET['asset_id'])) {
|
|||
</script>
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "asset_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Get Asset Counts
|
||||
//All Asset Count
|
||||
|
|
@ -365,10 +366,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("client_asset_edit_modal.php");
|
||||
require("client_asset_copy_modal.php");
|
||||
require("client_asset_tickets_modal.php");
|
||||
//require("client_asset_interface_add_modal.php");
|
||||
require "client_asset_edit_modal.php";
|
||||
|
||||
require "client_asset_copy_modal.php";
|
||||
|
||||
require "client_asset_tickets_modal.php";
|
||||
|
||||
//require "client_asset_interface_add_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -376,12 +381,17 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_asset_add_modal.php");
|
||||
require_once("client_asset_import_modal.php");
|
||||
require_once("client_asset_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_asset_add_modal.php";
|
||||
|
||||
require_once "client_asset_import_modal.php";
|
||||
|
||||
require_once "client_asset_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "certificate_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -143,18 +144,23 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
</form>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_certificate_edit_modal.php");
|
||||
require_once("client_certificate_add_modal.php");
|
||||
require_once("client_certificate_export_modal.php");
|
||||
require_once "client_certificate_edit_modal.php";
|
||||
|
||||
require_once "client_certificate_add_modal.php";
|
||||
|
||||
require_once "client_certificate_export_modal.php";
|
||||
|
||||
?>
|
||||
|
||||
<script src="js/certificate_edit_modal.js"></script>
|
||||
<script src="js/multi_actions.js"></script>
|
||||
<script src="js/certificate_fetch_ssl.js"></script>
|
||||
|
||||
<?php require_once("footer.php"); ?>
|
||||
<?php require_once "footer.php";
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
if (isset($_GET['contact_id'])) {
|
||||
$contact_id = intval($_GET['contact_id']);
|
||||
|
|
@ -110,7 +111,8 @@ if (isset($_GET['contact_id'])) {
|
|||
<i class="fas fa-fw fa-user-edit"></i> Edit
|
||||
</button>
|
||||
|
||||
<?php require_once("client_contact_edit_modal.php"); ?>
|
||||
<?php require_once "client_contact_edit_modal.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -250,9 +252,12 @@ if (isset($_GET['contact_id'])) {
|
|||
|
||||
<?php
|
||||
|
||||
require("client_asset_edit_modal.php");
|
||||
require("client_asset_copy_modal.php");
|
||||
require("client_asset_interface_add_modal.php");
|
||||
require "client_asset_edit_modal.php";
|
||||
|
||||
require "client_asset_copy_modal.php";
|
||||
|
||||
require "client_asset_interface_add_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -357,7 +362,8 @@ if (isset($_GET['contact_id'])) {
|
|||
|
||||
<?php
|
||||
|
||||
require("client_login_edit_modal.php");
|
||||
require "client_login_edit_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -543,7 +549,8 @@ if (isset($_GET['contact_id'])) {
|
|||
|
||||
<?php
|
||||
|
||||
require_once("share_modal.php");
|
||||
require_once "share_modal.php";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
|
@ -581,4 +588,5 @@ if (isset($_GET['contact_id'])) {
|
|||
</script>
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "contact_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -229,7 +230,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("client_contact_edit_modal.php");
|
||||
require "client_contact_edit_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -238,7 +240,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -259,8 +262,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require_once("client_contact_add_modal.php");
|
||||
require_once("client_contact_invite_modal.php");
|
||||
require_once("client_contact_import_modal.php");
|
||||
require_once("client_contact_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_contact_add_modal.php";
|
||||
|
||||
require_once "client_contact_invite_modal.php";
|
||||
|
||||
require_once "client_contact_import_modal.php";
|
||||
|
||||
require_once "client_contact_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Initialize the HTML Purifier to prevent XSS
|
||||
require("plugins/htmlpurifier/HTMLPurifier.standalone.php");
|
||||
require "plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
|
||||
$purifier_config = HTMLPurifier_Config::createDefault();
|
||||
$purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]);
|
||||
$purifier = new HTMLPurifier($purifier_config);
|
||||
|
|
@ -289,11 +291,19 @@ $document_parent = intval($row['document_parent']);
|
|||
|
||||
<?php
|
||||
|
||||
require_once("client_document_edit_modal.php");
|
||||
require_once("client_document_link_file_modal.php");
|
||||
require_once("client_document_link_contact_modal.php");
|
||||
require_once("client_document_link_asset_modal.php");
|
||||
require_once("client_document_link_software_modal.php");
|
||||
require_once("client_document_link_vendor_modal.php");
|
||||
require_once("share_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_document_edit_modal.php";
|
||||
|
||||
require_once "client_document_link_file_modal.php";
|
||||
|
||||
require_once "client_document_link_contact_modal.php";
|
||||
|
||||
require_once "client_document_link_asset_modal.php";
|
||||
|
||||
require_once "client_document_link_software_modal.php";
|
||||
|
||||
require_once "client_document_link_vendor_modal.php";
|
||||
|
||||
require_once "share_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "document_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
// Folder
|
||||
if (!empty($_GET['folder_id'])) {
|
||||
|
|
@ -140,12 +141,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</li>
|
||||
|
||||
<?php
|
||||
require("folder_rename_modal.php");
|
||||
require "folder_rename_modal.php";
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php require_once("folder_create_modal.php"); ?>
|
||||
<?php require_once "folder_create_modal.php";
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9">
|
||||
|
|
@ -238,8 +241,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("client_document_move_modal.php");
|
||||
require("client_document_rename_modal.php");
|
||||
require "client_document_move_modal.php";
|
||||
|
||||
require "client_document_rename_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -249,7 +254,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</table>
|
||||
<br>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -257,7 +263,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
|
||||
<?php
|
||||
require_once("share_modal.php");
|
||||
require_once("client_document_add_modal.php");
|
||||
require_once("client_document_add_from_template_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "share_modal.php";
|
||||
|
||||
require_once "client_document_add_modal.php";
|
||||
|
||||
require_once "client_document_add_from_template_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "domain_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -123,13 +124,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<script src="js/domain_edit_modal.js"></script>
|
||||
|
||||
<?php
|
||||
require_once("client_domain_edit_modal.php");
|
||||
require_once("client_domain_add_modal.php");
|
||||
require_once("client_domain_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_domain_edit_modal.php";
|
||||
|
||||
require_once "client_domain_add_modal.php";
|
||||
|
||||
require_once "client_domain_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
if (isset($_GET['calendar_id'])) {
|
||||
$calendar_selected_id = intval($_GET['calendar_id']);
|
||||
|
|
@ -22,8 +23,10 @@ if (isset($_GET['calendar_id'])) {
|
|||
</div>
|
||||
|
||||
<?php
|
||||
include("calendar_event_add_modal.php");
|
||||
include("calendar_add_modal.php");
|
||||
include "calendar_event_add_modal.php";
|
||||
|
||||
include "calendar_add_modal.php";
|
||||
|
||||
|
||||
//loop through IDs and create a modal for each
|
||||
$sql = mysqli_query($mysqli, "SELECT * FROM calendars LEFT JOIN events ON calendar_id = event_calendar_id WHERE event_client_id = $client_id");
|
||||
|
|
@ -38,7 +41,8 @@ while ($row = mysqli_fetch_array($sql)) {
|
|||
$calendar_name = nullable_htmlentities($row['calendar_name']);
|
||||
$calendar_color = nullable_htmlentities($row['calendar_color']);
|
||||
|
||||
require("calendar_event_edit_modal.php");
|
||||
require "calendar_event_edit_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -128,4 +132,5 @@ while ($row = mysqli_fetch_array($sql)) {
|
|||
</script>
|
||||
|
||||
<?php
|
||||
require("footer.php");
|
||||
require "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@
|
|||
<form action="post.php" method="post" autocomplete="off">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "file_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
// Folder
|
||||
if (!empty($_GET['folder_id'])) {
|
||||
|
|
@ -131,12 +132,14 @@ $num_of_files = mysqli_num_rows($sql);
|
|||
</li>
|
||||
|
||||
<?php
|
||||
require("folder_rename_modal.php");
|
||||
require "folder_rename_modal.php";
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<?php require_once("folder_create_modal.php"); ?>
|
||||
<?php require_once "folder_create_modal.php";
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="col-md-9">
|
||||
|
|
@ -202,7 +205,8 @@ $num_of_files = mysqli_num_rows($sql);
|
|||
</div>
|
||||
|
||||
<?php
|
||||
require("client_file_view_modal.php");
|
||||
require "client_file_view_modal.php";
|
||||
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
|
@ -288,8 +292,10 @@ $num_of_files = mysqli_num_rows($sql);
|
|||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
require("client_file_rename_modal.php");
|
||||
require("client_file_move_modal.php");
|
||||
require "client_file_rename_modal.php";
|
||||
|
||||
require "client_file_move_modal.php";
|
||||
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
|
|
@ -300,7 +306,8 @@ $num_of_files = mysqli_num_rows($sql);
|
|||
|
||||
<?php } ?>
|
||||
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -308,8 +315,12 @@ $num_of_files = mysqli_num_rows($sql);
|
|||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_file_upload_modal.php");
|
||||
require_once("share_modal.php");
|
||||
require_once("client_file_delete_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_file_upload_modal.php";
|
||||
|
||||
require_once "share_modal.php";
|
||||
|
||||
require_once "client_file_delete_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "invoice_number";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -153,8 +154,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("invoice_copy_modal.php");
|
||||
require("invoice_edit_modal.php");
|
||||
require "invoice_copy_modal.php";
|
||||
|
||||
require "invoice_edit_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -162,11 +165,15 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("invoice_add_modal.php");
|
||||
require_once("client_invoice_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "invoice_add_modal.php";
|
||||
|
||||
require_once "client_invoice_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ $order = "DESC";
|
|||
global $lead;
|
||||
$lead = 1;
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -283,19 +284,25 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("client_edit_modal.php");
|
||||
require "client_edit_modal.php";
|
||||
|
||||
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_add_modal.php");
|
||||
require_once("client_export_modal.php");
|
||||
require_once("category_quick_add_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_add_modal.php";
|
||||
|
||||
require_once "client_export_modal.php";
|
||||
|
||||
require_once "category_quick_add_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "location_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -129,7 +130,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php require("client_location_edit_modal.php"); ?>
|
||||
<?php require "client_location_edit_modal.php";
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
@ -138,13 +140,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
require_once("client_location_add_modal.php");
|
||||
require_once("client_location_import_modal.php");
|
||||
require_once("client_location_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_location_add_modal.php";
|
||||
|
||||
require_once "client_location_import_modal.php";
|
||||
|
||||
require_once "client_location_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "login_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -144,7 +145,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("client_login_edit_modal.php");
|
||||
require "client_login_edit_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -152,7 +154,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -195,8 +198,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require_once("client_login_add_modal.php");
|
||||
require_once("share_modal.php");
|
||||
require_once("client_login_import_modal.php");
|
||||
require_once("client_login_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_login_add_modal.php";
|
||||
|
||||
require_once "share_modal.php";
|
||||
|
||||
require_once "client_login_import_modal.php";
|
||||
|
||||
require_once "client_login_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "log_id";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -103,9 +104,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "network_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sb = http_build_query(array_merge($_GET, array('sort' => $sort, 'order' => $order)));
|
||||
|
|
@ -136,15 +137,19 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
require_once("client_network_edit_modal.php");
|
||||
require_once("client_network_add_modal.php");
|
||||
require_once("client_network_export_modal.php");
|
||||
require_once "client_network_edit_modal.php";
|
||||
|
||||
require_once "client_network_add_modal.php";
|
||||
|
||||
require_once "client_network_export_modal.php";
|
||||
|
||||
|
||||
?>
|
||||
|
||||
|
|
@ -198,4 +203,5 @@ require_once("client_network_export_modal.php");
|
|||
</script>
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
$sql_recent_activities = mysqli_query(
|
||||
$mysqli,
|
||||
|
|
@ -353,4 +354,5 @@ $sql_asset_retire = mysqli_query(
|
|||
|
||||
<?php
|
||||
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "payment_date";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -105,10 +106,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_payment_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_payment_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "quote_number";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -146,7 +147,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("quote_copy_modal.php");
|
||||
require "quote_copy_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -154,12 +156,17 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("quote_add_modal.php");
|
||||
require_once("quote_edit_modal.php");
|
||||
require_once("client_quote_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "quote_add_modal.php";
|
||||
|
||||
require_once "quote_edit_modal.php";
|
||||
|
||||
require_once "client_quote_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "recurring_last_sent";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -128,7 +129,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tr>
|
||||
|
||||
<?php
|
||||
require("recurring_invoice_edit_modal.php");
|
||||
require "recurring_invoice_edit_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -136,11 +138,15 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("recurring_invoice_add_modal.php");
|
||||
require_once("client_recurring_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "recurring_invoice_add_modal.php";
|
||||
|
||||
require_once "client_recurring_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "scheduled_ticket_subject";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -131,7 +132,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
<input type="submit" id="button_bulk_delete" form="bulk_actions" name="bulk_delete_scheduled_tickets" value="Bulk Delete" hidden>
|
||||
</div>
|
||||
|
||||
<?php require_once('pagination.php'); ?>
|
||||
<?php require_once 'pagination.php';
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -140,6 +142,9 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require_once("scheduled_ticket_add_modal.php");
|
||||
require_once("scheduled_ticket_edit_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "scheduled_ticket_add_modal.php";
|
||||
|
||||
require_once "scheduled_ticket_edit_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "service_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -172,8 +173,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
WHERE service_id = $service_id"
|
||||
);
|
||||
|
||||
require("client_service_edit_modal.php");
|
||||
require("client_service_view_modal.php");
|
||||
require "client_service_edit_modal.php";
|
||||
|
||||
require "client_service_view_modal.php";
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
|
@ -181,10 +184,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once('pagination.php'); ?>
|
||||
<?php require_once 'pagination.php';
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_service_add_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_service_add_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "item_created_at";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -114,9 +115,11 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "software_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -187,7 +188,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("client_software_edit_modal.php");
|
||||
require "client_software_edit_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -195,12 +197,17 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_software_add_modal.php");
|
||||
require_once("client_software_add_from_template_modal.php");
|
||||
require_once("client_software_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_software_add_modal.php";
|
||||
|
||||
require_once "client_software_add_from_template_modal.php";
|
||||
|
||||
require_once "client_software_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "ticket_number";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -196,10 +197,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("ticket_edit_modal.php");
|
||||
require("ticket_assign_modal.php");
|
||||
require("ticket_edit_priority_modal.php");
|
||||
require("ticket_edit_contact_modal.php");
|
||||
require "ticket_edit_modal.php";
|
||||
|
||||
require "ticket_assign_modal.php";
|
||||
|
||||
require "ticket_edit_priority_modal.php";
|
||||
|
||||
require "ticket_edit_contact_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -207,14 +212,18 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("ticket_add_modal.php");
|
||||
require_once("client_ticket_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "ticket_add_modal.php";
|
||||
|
||||
require_once "client_ticket_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
?>
|
||||
|
||||
<script src="js/ticket_add_remove_watchers.js"></script>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "trip_date";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -126,8 +127,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("trip_copy_modal.php");
|
||||
require("trip_edit_modal.php");
|
||||
require "trip_copy_modal.php";
|
||||
|
||||
require "trip_edit_modal.php";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
@ -135,11 +138,15 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("trip_add_modal.php");
|
||||
require_once("client_trip_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "trip_add_modal.php";
|
||||
|
||||
require_once "client_trip_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<input type="hidden" name="client_id" value="<?php echo $client_id; ?>">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
</div>
|
||||
<div class="modal-footer bg-white">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "vendor_name";
|
||||
$order = "ASC";
|
||||
|
||||
require_once("inc_all_client.php");
|
||||
require_once "inc_all_client.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -157,18 +158,24 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("vendor_edit_modal.php");
|
||||
require "vendor_edit_modal.php";
|
||||
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("vendor_add_modal.php");
|
||||
require_once("vendor_add_from_template_modal.php");
|
||||
require_once("client_vendor_export_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "vendor_add_modal.php";
|
||||
|
||||
require_once "vendor_add_from_template_modal.php";
|
||||
|
||||
require_once "client_vendor_export_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
21
clients.php
21
clients.php
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "client_accessed_at";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -298,19 +299,25 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("client_edit_modal.php");
|
||||
require "client_edit_modal.php";
|
||||
|
||||
|
||||
} ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("client_add_modal.php");
|
||||
require_once("client_export_modal.php");
|
||||
require_once("category_quick_add_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "client_add_modal.php";
|
||||
|
||||
require_once "client_export_modal.php";
|
||||
|
||||
require_once "category_quick_add_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
6
cron.php
6
cron.php
|
|
@ -3,8 +3,10 @@
|
|||
// Set working directory to the directory this cron script lives at.
|
||||
chdir(dirname(__FILE__));
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
$sql_companies = mysqli_query($mysqli, "SELECT * FROM companies, settings WHERE companies.company_id = settings.company_id AND companies.company_id = 1");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
$sql_settings = mysqli_query($mysqli, "SELECT * FROM settings WHERE settings.company_id = 1");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
$sql_settings = mysqli_query($mysqli, "SELECT * FROM settings WHERE settings.company_id = 1");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
// Get system temp directory
|
||||
$temp_dir = sys_get_temp_dir();
|
||||
|
|
@ -18,7 +20,8 @@ if (file_exists($lock_file_path)) {
|
|||
file_put_contents($lock_file_path, "Locked");
|
||||
|
||||
//Initialize the HTML Purifier to prevent XSS
|
||||
require("plugins/htmlpurifier/HTMLPurifier.standalone.php");
|
||||
require "plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
|
||||
$purifier_config = HTMLPurifier_Config::createDefault();
|
||||
$purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]);
|
||||
$purifier = new HTMLPurifier($purifier_config);
|
||||
|
|
|
|||
|
|
@ -16,8 +16,10 @@ TODO:
|
|||
chdir(dirname(__FILE__));
|
||||
|
||||
// Get ITFlow config & helper functions
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
// Get system temp directory
|
||||
$temp_dir = sys_get_temp_dir();
|
||||
|
|
@ -34,7 +36,8 @@ if (file_exists($lock_file_path)) {
|
|||
file_put_contents($lock_file_path, "Locked");
|
||||
|
||||
// Get settings for the "default" company
|
||||
require_once("get_settings.php");
|
||||
require_once "get_settings.php";
|
||||
|
||||
|
||||
// Get company name & phone
|
||||
$sql = mysqli_query($mysqli, "SELECT company_name, company_phone FROM companies WHERE company_id = 1");
|
||||
|
|
@ -67,15 +70,24 @@ if (!function_exists('mailparse_msg_parse_file')) {
|
|||
// PHP Mail Parser
|
||||
use PhpMimeMailParser\Parser;
|
||||
|
||||
require_once("plugins/php-mime-mail-parser/src/Contracts/CharsetManager.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/Contracts/Middleware.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/Attachment.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/Charset.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/Exception.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/Middleware.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/MiddlewareStack.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/MimePart.php");
|
||||
require_once("plugins/php-mime-mail-parser/src/Parser.php");
|
||||
require_once "plugins/php-mime-mail-parser/src/Contracts/CharsetManager.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/Contracts/Middleware.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/Attachment.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/Charset.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/Exception.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/Middleware.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/MiddlewareStack.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/MimePart.php";
|
||||
|
||||
require_once "plugins/php-mime-mail-parser/src/Parser.php";
|
||||
|
||||
|
||||
// Allowed attachment extensions
|
||||
$allowed_extensions = array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'csv', 'xls', 'xlsx', 'xlsm', 'zip', 'tar', 'gz');
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
// Enforce accountant / admin role for the financial dashboard
|
||||
if ($_SESSION['user_role'] != 3 && $_SESSION['user_role'] != 1) {
|
||||
|
|
@ -490,7 +491,8 @@ $vendors_added = intval($row['vendors_added']);
|
|||
</div>
|
||||
</div> <!-- row -->
|
||||
|
||||
<?php require_once("footer.php"); ?>
|
||||
<?php require_once "footer.php";
|
||||
?>
|
||||
|
||||
<script>
|
||||
// Set new default font family and font color to mimic Bootstrap's default styling
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
if (isset($_GET['year'])) {
|
||||
$year = intval($_GET['year']);
|
||||
|
|
@ -180,5 +181,6 @@ $expiring_certificates = $sql_certs_expiring['expiring_certs'];
|
|||
</div> <!-- rows -->
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all_settings.php");
|
||||
require_once "inc_all_settings.php";
|
||||
|
||||
|
||||
//Initialize the HTML Purifier to prevent XSS
|
||||
require("plugins/htmlpurifier/HTMLPurifier.standalone.php");
|
||||
require "plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
|
||||
$purifier_config = HTMLPurifier_Config::createDefault();
|
||||
$purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]);
|
||||
$purifier = new HTMLPurifier($purifier_config);
|
||||
|
|
@ -57,5 +59,7 @@ $document_updated_at = nullable_htmlentities($row['document_updated_at']);
|
|||
|
||||
<?php
|
||||
|
||||
require_once("document_template_edit_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "document_template_edit_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,8 @@
|
|||
<form action="post.php" method="post" autocomplete="off">
|
||||
<div class="modal-body bg-white">
|
||||
|
||||
<?php require_once("inc_export_warning.php"); ?>
|
||||
<?php require_once "inc_export_warning.php";
|
||||
?>
|
||||
|
||||
<div class="form-group">
|
||||
<label>Date From</label>
|
||||
|
|
|
|||
27
expenses.php
27
expenses.php
|
|
@ -4,7 +4,8 @@
|
|||
$sort = "expense_date";
|
||||
$order = "DESC";
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
//Rebuild URL
|
||||
$url_query_strings_sort = http_build_query($get_copy);
|
||||
|
|
@ -176,10 +177,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
|
||||
<?php
|
||||
|
||||
require("expense_edit_modal.php");
|
||||
require("expense_copy_modal.php");
|
||||
require("expense_refund_modal.php");
|
||||
require("expense_export_modal.php");
|
||||
require "expense_edit_modal.php";
|
||||
|
||||
require "expense_copy_modal.php";
|
||||
|
||||
require "expense_refund_modal.php";
|
||||
|
||||
require "expense_export_modal.php";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -188,11 +193,15 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<?php require_once("pagination.php"); ?>
|
||||
<?php require_once "pagination.php";
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require_once("expense_add_modal.php");
|
||||
require_once("category_quick_add_modal.php");
|
||||
require_once("footer.php");
|
||||
require_once "expense_add_modal.php";
|
||||
|
||||
require_once "category_quick_add_modal.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
<?php require_once("inc_confirm_modal.php"); ?>
|
||||
<?php require_once "inc_confirm_modal.php";
|
||||
?>
|
||||
|
||||
</div><!-- /.container-fluid -->
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,12 @@
|
|||
<?php
|
||||
require_once("config.php");
|
||||
include_once("functions.php");
|
||||
require_once("check_login.php");
|
||||
require_once("header.php");
|
||||
require_once "config.php";
|
||||
|
||||
include_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
?>
|
||||
|
||||
<div class="card card-dark">
|
||||
|
|
@ -24,7 +28,8 @@ require_once("header.php");
|
|||
<center>
|
||||
<?php
|
||||
|
||||
require_once('rfc6238.php');
|
||||
require_once 'rfc6238.php';
|
||||
|
||||
|
||||
//Generate a base32 Key
|
||||
$secretkey = key32gen();
|
||||
|
|
@ -64,4 +69,5 @@ require_once("header.php");
|
|||
</div>
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,12 @@
|
|||
DEFINE("WORDING_ROLECHECK_FAILED", "You are not permitted to do that!");
|
||||
|
||||
// PHP Mailer Libs
|
||||
require_once("plugins/PHPMailer/src/Exception.php");
|
||||
require_once("plugins/PHPMailer/src/PHPMailer.php");
|
||||
require_once("plugins/PHPMailer/src/SMTP.php");
|
||||
require_once "plugins/PHPMailer/src/Exception.php";
|
||||
|
||||
require_once "plugins/PHPMailer/src/PHPMailer.php";
|
||||
|
||||
require_once "plugins/PHPMailer/src/SMTP.php";
|
||||
|
||||
// Initiate PHPMailer
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
|
|
@ -310,7 +313,8 @@ function generateUserSessionKey($site_encryption_master_key)
|
|||
$_SESSION['user_encryption_session_iv'] = $user_encryption_session_iv;
|
||||
|
||||
// Give the user "their" key as a cookie
|
||||
include('config.php');
|
||||
include 'config.php';
|
||||
|
||||
if ($config_https_only) {
|
||||
setcookie("user_encryption_session_key", "$user_encryption_session_key", ['path' => '/','secure' => true,'httponly' => true,'samesite' => 'None']);
|
||||
} else{
|
||||
|
|
|
|||
|
|
@ -26,8 +26,10 @@ if (isset($_SERVER['HTTP_ORIGIN'])) {
|
|||
}
|
||||
}
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
// IP & User Agent for logging
|
||||
$ip = santizeInput(getIP());
|
||||
|
|
|
|||
|
|
@ -141,7 +141,8 @@ $net_terms_array = array(
|
|||
|
||||
$records_per_page_array = array('5','10','15','20','30','50','100');
|
||||
|
||||
include_once("settings_localization_array.php");
|
||||
include_once "settings_localization_array.php";
|
||||
|
||||
|
||||
$category_types_array = array(
|
||||
'Expense',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once("inc_all.php");
|
||||
require_once "inc_all.php";
|
||||
|
||||
|
||||
if (isset($_GET['query'])) {
|
||||
|
||||
|
|
@ -571,4 +572,5 @@ if (isset($_GET['query'])) {
|
|||
<?php } ?>
|
||||
|
||||
<?php
|
||||
require_once("footer.php");
|
||||
require_once "footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,10 @@
|
|||
* Always returns data in JSON format, unless otherwise specified
|
||||
*/
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
/*
|
||||
* Creates & Returns a Stripe Payment Intent for a particular invoice ID
|
||||
|
|
@ -60,7 +62,8 @@ if (isset($_GET['stripe_create_pi'])) {
|
|||
}
|
||||
|
||||
// Setup Stripe
|
||||
require_once('vendor/stripe-php-10.5.0/init.php');
|
||||
require_once 'vendor/stripe-php-10.5.0/init.php';
|
||||
|
||||
|
||||
$row = mysqli_fetch_array(mysqli_query($mysqli, "SELECT config_stripe_enable, config_stripe_secret, config_stripe_account FROM settings WHERE company_id = 1"));
|
||||
if ($row['config_stripe_enable'] == 0 || $row['config_stripe_account'] == 0) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
// Not including the guest header as we don't want any HTML output
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
$ip = sanitizeInput(getIP());
|
||||
$user_agent = sanitizeInput($_SERVER['HTTP_USER_AGENT']);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once('guest_header.php');
|
||||
require_once 'guest_header.php';
|
||||
|
||||
|
||||
// Define wording
|
||||
DEFINE("WORDING_PAYMENT_FAILED", "<br><h2>There was an error verifying your payment. Please contact us for more information.</h2>");
|
||||
|
|
@ -15,7 +16,8 @@ $config_stripe_account = intval($stripe_vars['config_stripe_account']);
|
|||
// Check Stripe is configured
|
||||
if ($config_stripe_enable == 0 || $config_stripe_account == 0 || empty($config_stripe_publishable) || empty($config_stripe_secret)) {
|
||||
echo "<br><h2>Stripe payments not enabled/configured</h2>";
|
||||
require_once('guest_footer.php');
|
||||
require_once 'guest_footer.php';
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -42,7 +44,8 @@ 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 "<br><h2>Oops, something went wrong! Please ensure you have the correct URL and have not already paid this invoice.</h2>";
|
||||
require_once('guest_footer.php');
|
||||
require_once 'guest_footer.php';
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -170,7 +173,8 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent
|
|||
$pi_cs = $_GET['payment_intent_client_secret'];
|
||||
|
||||
// Initialize stripe
|
||||
require_once('vendor/stripe-php-10.5.0/init.php');
|
||||
require_once 'vendor/stripe-php-10.5.0/init.php';
|
||||
|
||||
\Stripe\Stripe::setApiKey($config_stripe_secret);
|
||||
|
||||
// Check details of the PI
|
||||
|
|
@ -315,4 +319,5 @@ if (isset($_GET['invoice_id'], $_GET['url_key']) && !isset($_GET['payment_intent
|
|||
}
|
||||
|
||||
|
||||
require_once('guest_footer.php');
|
||||
require_once 'guest_footer.php';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
|
||||
session_start();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
require_once("guest_header.php");
|
||||
require_once "guest_header.php";
|
||||
|
||||
|
||||
if (!isset($_GET['invoice_id'], $_GET['url_key'])) {
|
||||
echo "<br><h2>Oops, something went wrong! Please raise a ticket if you believe this is an error.</h2>";
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -24,7 +26,8 @@ $sql = mysqli_query(
|
|||
if (mysqli_num_rows($sql) !== 1) {
|
||||
// Invalid invoice/key
|
||||
echo "<br><h2>Oops, something went wrong! Please raise a ticket if you believe this is an error.</h2>";
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -926,4 +929,5 @@ if (mysqli_num_rows($sql) > 1) { ?>
|
|||
<?php } // End previous paid invoices
|
||||
|
||||
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,12 @@ header('Cache-Control: no-store, no-cache, must-revalidate');
|
|||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
require_once("guest_header.php");
|
||||
require_once "guest_header.php";
|
||||
|
||||
|
||||
//Initialize the HTML Purifier to prevent XSS
|
||||
require("plugins/htmlpurifier/HTMLPurifier.standalone.php");
|
||||
require "plugins/htmlpurifier/HTMLPurifier.standalone.php";
|
||||
|
||||
$purifier_config = HTMLPurifier_Config::createDefault();
|
||||
$purifier_config->set('URI.AllowedSchemes', ['data' => true, 'src' => true, 'http' => true, 'https' => true]);
|
||||
$purifier = new HTMLPurifier($purifier_config);
|
||||
|
|
@ -35,7 +37,8 @@ $currency_format = numfmt_create($company_locale, NumberFormatter::CURRENCY);
|
|||
<?php
|
||||
if (!isset($_GET['id']) || !isset($_GET['key'])) {
|
||||
echo "<div class='alert alert-danger'>Incorrect URL.</div>";
|
||||
include("guest_footer.php");
|
||||
include "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -48,14 +51,16 @@ $row = mysqli_fetch_array($sql);
|
|||
// Check we got a result
|
||||
if (mysqli_num_rows($sql) !== 1 || !$row) {
|
||||
echo "<div class='alert alert-danger' >No item to view. Check with the person that sent you this link to ensure it is correct and has not expired.</div>";
|
||||
include("guest_footer.php");
|
||||
include "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
// 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 "<div class='alert alert-danger'>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.</div>";
|
||||
include("guest_footer.php");
|
||||
include "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -91,7 +96,8 @@ if ($item_type == "Document") {
|
|||
|
||||
if (mysqli_num_rows($doc_sql) !== 1 || !$doc_row) {
|
||||
echo "<div class='alert alert-danger'>Error retrieving document to view.</div>";
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -116,7 +122,8 @@ if ($item_type == "Document") {
|
|||
|
||||
if (mysqli_num_rows($file_sql) !== 1 || !$file_row) {
|
||||
echo "<div class='alert alert-danger'>Error retrieving file.</div>";
|
||||
include("guest_footer.php");
|
||||
include "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -136,7 +143,8 @@ if ($item_type == "Document") {
|
|||
$login_row = mysqli_fetch_array($login_sql);
|
||||
if (mysqli_num_rows($login_sql) !== 1 || !$login_row) {
|
||||
echo "<div class='alert alert-danger'>Error retrieving login.</div>";
|
||||
include("guest_footer.php");
|
||||
include "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -233,5 +241,6 @@ if ($item_type == "Document") {
|
|||
</div>
|
||||
|
||||
<?php
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
?>
|
||||
|
|
@ -1,10 +1,12 @@
|
|||
<?php
|
||||
|
||||
require_once("guest_header.php");
|
||||
require_once "guest_header.php";
|
||||
|
||||
|
||||
if (!isset($_GET['quote_id'], $_GET['url_key'])) {
|
||||
echo "<br><h2>Oops, something went wrong! Please raise a ticket if you believe this is an error.</h2>";
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -25,7 +27,8 @@ $sql = mysqli_query(
|
|||
if (mysqli_num_rows($sql) !== 1) {
|
||||
// Invalid quote/key
|
||||
echo "<br><h2>Oops, something went wrong! Please raise a ticket if you believe this is an error.</h2>";
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
@ -668,4 +671,5 @@ if ($quote_status == "Draft" || $quote_status == "Sent" || $quote_status == "Vie
|
|||
|
||||
|
||||
<?php
|
||||
require_once("guest_footer.php");
|
||||
require_once "guest_footer.php";
|
||||
|
||||
|
|
|
|||
26
inc_all.php
26
inc_all.php
|
|
@ -1,11 +1,19 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
include_once("functions.php");
|
||||
require_once("check_login.php");
|
||||
require_once("header.php");
|
||||
require_once("top_nav.php");
|
||||
require_once("side_nav.php");
|
||||
require_once("inc_wrapper.php");
|
||||
require_once("inc_alert_feedback.php");
|
||||
require_once("pagination_head.php");
|
||||
require_once "config.php";
|
||||
|
||||
include_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
require_once "top_nav.php";
|
||||
|
||||
require_once "side_nav.php";
|
||||
|
||||
require_once "inc_wrapper.php";
|
||||
|
||||
require_once "inc_alert_feedback.php";
|
||||
|
||||
require_once "pagination_head.php";
|
||||
|
|
|
|||
|
|
@ -1,10 +1,15 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once("check_login.php");
|
||||
require_once("header.php");
|
||||
require_once("top_nav.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
require_once "top_nav.php";
|
||||
|
||||
|
||||
if (isset($_GET['client_id'])) {
|
||||
$client_id = intval($_GET['client_id']);
|
||||
|
|
@ -20,7 +25,8 @@ if (isset($_GET['client_id'])) {
|
|||
);
|
||||
|
||||
if (mysqli_num_rows($sql) == 0) {
|
||||
require_once("header.php");
|
||||
require_once "header.php";
|
||||
|
||||
echo "<center><h1 class='text-secondary mt-5'>Nothing to see here</h1></center>";
|
||||
} else {
|
||||
|
||||
|
|
@ -222,8 +228,13 @@ if (isset($_GET['client_id'])) {
|
|||
}
|
||||
}
|
||||
|
||||
require_once("client_side_nav.php");
|
||||
require_once("inc_wrapper.php");
|
||||
require_once("inc_alert_feedback.php");
|
||||
require_once("inc_client_top_head.php");
|
||||
require_once("pagination_head.php");
|
||||
require_once "client_side_nav.php";
|
||||
|
||||
require_once "inc_wrapper.php";
|
||||
|
||||
require_once "inc_alert_feedback.php";
|
||||
|
||||
require_once "inc_client_top_head.php";
|
||||
|
||||
require_once "pagination_head.php";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,13 +1,21 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once("check_login.php");
|
||||
require_once("header.php");
|
||||
require_once("top_nav.php");
|
||||
require_once("reports_side_nav.php");
|
||||
require_once("inc_wrapper.php");
|
||||
require_once("inc_alert_feedback.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
require_once "header.php";
|
||||
|
||||
require_once "top_nav.php";
|
||||
|
||||
require_once "reports_side_nav.php";
|
||||
|
||||
require_once "inc_wrapper.php";
|
||||
|
||||
require_once "inc_alert_feedback.php";
|
||||
|
||||
|
||||
// Set variable default values
|
||||
$largest_income_month = 0;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,24 @@
|
|||
<?php
|
||||
|
||||
require_once("config.php");
|
||||
require_once("functions.php");
|
||||
require_once("check_login.php");
|
||||
require_once "config.php";
|
||||
|
||||
require_once "functions.php";
|
||||
|
||||
require_once "check_login.php";
|
||||
|
||||
|
||||
validateAdminRole();
|
||||
|
||||
require_once("header.php");
|
||||
require_once("top_nav.php");
|
||||
require_once("settings_side_nav.php");
|
||||
require_once("inc_wrapper.php");
|
||||
require_once("inc_alert_feedback.php");
|
||||
require_once("pagination_head.php");
|
||||
require_once "header.php";
|
||||
|
||||
require_once "top_nav.php";
|
||||
|
||||
require_once "settings_side_nav.php";
|
||||
|
||||
require_once "inc_wrapper.php";
|
||||
|
||||
require_once "inc_alert_feedback.php";
|
||||
|
||||
require_once "pagination_head.php";
|
||||
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue