mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 19:34:52 +00:00
Tidy
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php require_once("inc_all_settings.php");
|
<?php require_once("inc_all_settings.php");
|
||||||
|
|
||||||
if (!empty($_GET['sb'])) {
|
if (!empty($_GET['sb'])) {
|
||||||
$sb = strip_tags(mysqli_real_escape_string($mysqli,$_GET['sb']));
|
$sb = strip_tags(mysqli_real_escape_string($mysqli, $_GET['sb']));
|
||||||
} else {
|
} else {
|
||||||
$sb = "account_name";
|
$sb = "account_name";
|
||||||
}
|
}
|
||||||
|
|||||||
4
ajax.php
4
ajax.php
@@ -34,7 +34,7 @@ if (isset($_GET['certificate_fetch_parse_json_details'])) {
|
|||||||
|
|
||||||
// Get certificate (using verify peer false to allow for self-signed certs)
|
// Get certificate (using verify peer false to allow for self-signed certs)
|
||||||
$socket = "ssl://$url:$port";
|
$socket = "ssl://$url:$port";
|
||||||
$get = stream_context_create(array("ssl" => array("capture_peer_cert" => TRUE, "verify_peer" => FALSE,)));
|
$get = stream_context_create(array("ssl" => array("capture_peer_cert" => true, "verify_peer" => false,)));
|
||||||
$read = stream_socket_client($socket, $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $get);
|
$read = stream_socket_client($socket, $errno, $errstr, 30, STREAM_CLIENT_CONNECT, $get);
|
||||||
$cert = stream_context_get_params($read);
|
$cert = stream_context_get_params($read);
|
||||||
$cert_public_key_obj = openssl_x509_parse($cert['options']['ssl']['peer_certificate']);
|
$cert_public_key_obj = openssl_x509_parse($cert['options']['ssl']['peer_certificate']);
|
||||||
@@ -121,7 +121,7 @@ if (isset($_GET['merge_ticket_get_json_details'])) {
|
|||||||
//Return ticket, client and contact details for the given ticket number
|
//Return ticket, client and contact details for the given ticket number
|
||||||
$response = mysqli_fetch_array($sql);
|
$response = mysqli_fetch_array($sql);
|
||||||
$response = array_map('htmlentities', $response);
|
$response = array_map('htmlentities', $response);
|
||||||
echo json_encode( $response);
|
echo json_encode($response);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,5 +36,3 @@
|
|||||||
//$time_end = microtime(true);
|
//$time_end = microtime(true);
|
||||||
//$execution_time = ($time_end - $time_start);
|
//$execution_time = ($time_end - $time_start);
|
||||||
//echo 'Total Execution Time: '.number_format((float) $execution_time, 10) .' seconds';
|
//echo 'Total Execution Time: '.number_format((float) $execution_time, 10) .' seconds';
|
||||||
|
|
||||||
?>
|
|
||||||
@@ -82,7 +82,7 @@ $location_phone = formatPhoneNumber($location_phone);
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php if ($session_user_role == 1 || $session_user_role == 3 AND $config_module_enable_accounting == 1) { ?>
|
<?php if ($session_user_role == 1 || $session_user_role == 3 && $config_module_enable_accounting == 1) { ?>
|
||||||
<div class="col-md border-left">
|
<div class="col-md border-left">
|
||||||
<h4 class="text-secondary">Billing</h4>
|
<h4 class="text-secondary">Billing</h4>
|
||||||
<h6 class="ml-1 text-secondary">Paid <div class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $amount_paid, $client_currency_code); ?></div></h6>
|
<h6 class="ml-1 text-secondary">Paid <div class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $amount_paid, $client_currency_code); ?></div></h6>
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($session_user_role == 1 OR $session_user_role == 3 && $config_module_enable_accounting == 1) { ?>
|
<?php if ($session_user_role == 1 || $session_user_role == 3 && $config_module_enable_accounting == 1) { ?>
|
||||||
|
|
||||||
<li class="nav-header mt-3">ACCOUNTING</li>
|
<li class="nav-header mt-3">ACCOUNTING</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
|
|||||||
Reference in New Issue
Block a user