Fix three codacy issues

This commit is contained in:
DL6ER
2017-01-02 16:17:37 +01:00
parent 32464ab976
commit 6da6805c5c

View File

@@ -107,6 +107,7 @@ function check_domain() {
}
function list_verify($type) {
global $pwhash, $wrongpassword;
if(!isset($_POST['domain']) || !isset($_POST['list']) || !(isset($_POST['pw']) || isset($_POST['token']))) {
log_and_die("Missing POST variables");
}
@@ -121,11 +122,11 @@ function list_verify($type) {
require("password.php");
if(strlen($pwhash) == 0)
{
log_and_die("No password set - ${type}listing with password not supported");
log_and_die("No password set - ".$type."listing with password not supported");
}
elseif($wrongpassword)
{
log_and_die("Wrong password - ${type}listing of ${_POST['domain']} not permitted");
log_and_die("Wrong password - ".$type."listing of ${_POST['domain']} not permitted");
}
}
else