@@ -107,10 +107,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
while ($row = mysqli_fetch_assoc($sql)) {
$api_key_id = intval($row['api_key_id']);
- $api_key_name = nullable_htmlentities($row['api_key_name']);
- $api_key_secret = nullable_htmlentities("************" . substr($row['api_key_secret'], -4));
- $api_key_created_at = nullable_htmlentities($row['api_key_created_at']);
- $api_key_expire = nullable_htmlentities($row['api_key_expire']);
+ $api_key_name = escapeHtml($row['api_key_name']);
+ $api_key_secret = escapeHtml("************" . substr($row['api_key_secret'], -4));
+ $api_key_created_at = escapeHtml($row['api_key_created_at']);
+ $api_key_expire = escapeHtml($row['api_key_expire']);
if ($api_key_expire < date("Y-m-d H:i:s")) {
$api_key_expire = $api_key_expire . " (Expired)";
}
@@ -118,7 +118,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
if ($row['api_key_client_id'] == 0) {
$api_key_client = "
";
} else {
- $api_key_client = nullable_htmlentities($row['client_name']);
+ $api_key_client = escapeHtml($row['client_name']);
}
?>
diff --git a/admin/app_log.php b/admin/app_log.php
index a50c6d5b..350a9d72 100644
--- a/admin/app_log.php
+++ b/admin/app_log.php
@@ -9,7 +9,7 @@ require_once "includes/inc_all_admin.php";
// Log Type Filter
if (isset($_GET['type']) & !empty($_GET['type'])) {
$log_type_query = "AND (app_log_type = '" . sanitizeInput($_GET['type']) . "')";
- $type_filter = nullable_htmlentities($_GET['type']);
+ $type_filter = escapeHtml($_GET['type']);
} else {
// Default - any
$log_type_query = '';
@@ -19,7 +19,7 @@ if (isset($_GET['type']) & !empty($_GET['type'])) {
// Log Category Filter
if (isset($_GET['category']) & !empty($_GET['catergory'])) {
$log_category_query = "AND (app_log_category = '" . sanitizeInput($_GET['category']) . "')";
- $category_filter = nullable_htmlentities($_GET['category']);
+ $category_filter = escapeHtml($_GET['category']);
} else {
// Default - any
$log_category_query = '';
@@ -50,7 +50,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
@@ -143,10 +143,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
while ($row = mysqli_fetch_assoc($sql)) {
$log_id = intval($row['app_log_id']);
- $log_type = nullable_htmlentities($row['app_log_type']);
- $log_category = nullable_htmlentities($row['app_log_category']);
- $log_details = nullable_htmlentities($row['app_log_details']);
- $log_created_at = nullable_htmlentities($row['app_log_created_at']);
+ $log_type = escapeHtml($row['app_log_type']);
+ $log_category = escapeHtml($row['app_log_category']);
+ $log_details = escapeHtml($row['app_log_details']);
+ $log_created_at = escapeHtml($row['app_log_created_at']);
?>
diff --git a/admin/audit_log.php b/admin/audit_log.php
index 0cb9a32a..cbac2849 100644
--- a/admin/audit_log.php
+++ b/admin/audit_log.php
@@ -29,7 +29,7 @@ if (isset($_GET['client']) & !empty($_GET['client'])) {
// Log Type Filter
if (isset($_GET['type']) & !empty($_GET['type'])) {
$log_type_query = "AND (log_type = '" . sanitizeInput($_GET['type']) . "')";
- $type_filter = nullable_htmlentities($_GET['type']);
+ $type_filter = escapeHtml($_GET['type']);
} else {
// Default - any
$log_type_query = '';
@@ -39,7 +39,7 @@ if (isset($_GET['type']) & !empty($_GET['type'])) {
// Log Action Filter
if (isset($_GET['action']) & !empty($_GET['action'])) {
$log_action_query = "AND (log_action = '" . sanitizeInput($_GET['action']) . "')";
- $action_filter = nullable_htmlentities($_GET['action']);
+ $action_filter = escapeHtml($_GET['action']);
} else {
// Default - any
$log_action_query = '';
@@ -73,7 +73,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
@@ -227,22 +227,22 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
while ($row = mysqli_fetch_assoc($sql)) {
$log_id = intval($row['log_id']);
- $log_type = nullable_htmlentities($row['log_type']);
- $log_action = nullable_htmlentities($row['log_action']);
- $log_description = nullable_htmlentities($row['log_description']);
- $log_ip = nullable_htmlentities($row['log_ip']);
- $log_user_agent = nullable_htmlentities($row['log_user_agent']);
+ $log_type = escapeHtml($row['log_type']);
+ $log_action = escapeHtml($row['log_action']);
+ $log_description = escapeHtml($row['log_description']);
+ $log_ip = escapeHtml($row['log_ip']);
+ $log_user_agent = escapeHtml($row['log_user_agent']);
$log_user_os = getOS($log_user_agent);
$log_user_browser = getWebBrowser($log_user_agent);
- $log_created_at = nullable_htmlentities($row['log_created_at']);
+ $log_created_at = escapeHtml($row['log_created_at']);
$user_id = intval($row['user_id']);
- $user_name = nullable_htmlentities($row['user_name']);
+ $user_name = escapeHtml($row['user_name']);
if (empty($user_name)) {
$user_name_display = "-";
} else {
$user_name_display = $user_name;
}
- $client_name = nullable_htmlentities($row['client_name']);
+ $client_name = escapeHtml($row['client_name']);
$client_id = intval($row['client_id']);
if (empty($client_name)) {
$client_name_display = "-";
diff --git a/admin/category.php b/admin/category.php
index 16bca100..9e692808 100644
--- a/admin/category.php
+++ b/admin/category.php
@@ -28,14 +28,14 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));