From cdf1327f88ca2af370bc0472743e1ad62d828650 Mon Sep 17 00:00:00 2001 From: nilsteampassnet Date: Sun, 30 Jul 2017 21:31:04 +0200 Subject: [PATCH] 2.1.27 Code review with Codacy --- admin.settings.load.php | 10 ++++++++-- find.load.php | 5 ----- includes/js/functions.js | 18 +++++++++--------- items.import.php | 4 ++-- items.load.php | 11 ----------- load.php | 6 ------ sources/import.queries.php | 4 ---- sources/items.queries.php | 4 ---- sources/main.functions.php | 31 ++++++++++++++++--------------- users.load.php | 4 ---- 10 files changed, 35 insertions(+), 62 deletions(-) diff --git a/admin.settings.load.php b/admin.settings.load.php index b9fb58ed8..f0df48da6 100644 --- a/admin.settings.load.php +++ b/admin.settings.load.php @@ -236,9 +236,15 @@ function LaunchAdminActions(action, option) } else if (action === "admin_action_backup_decrypt") { option = $("#bck_script_decrypt_file").val(); } else if (action === "admin_action_change_salt_key") { - option = aes_encrypt(sanitizeString($("#new_salt_key").val())); + option = prepareExchangedData( + sanitizeString($("#new_salt_key").val()), + "encode", + "" + ); } else if (action === "admin_email_send_backlog") { - $("#email_testing_results").show().html("").attr("class","ui-corner-all ui-state-focus"); + $("#email_testing_results") + .show(). + html("").attr("class","ui-corner-all ui-state-focus"); } else if (action === "admin_action_attachments_cryption") { option = $("input[name=attachments_cryption]:checked").val(); if (option === "" || option === undefined) { diff --git a/find.load.php b/find.load.php index f03da4e3e..d2d72a86c 100644 --- a/find.load.php +++ b/find.load.php @@ -19,11 +19,6 @@