Code Duplication    Length = 9-9 lines in 2 locations

acc.php 2 locations

@@ 939-947 (lines=9) @@
936
			$target = getTrustedClientIP($row['ip'], $row['forwardedip']);
937
			$type = "IP";
938
		}
939
		elseif (isset($_GET['email'])) {
940
			$query = "SELECT email FROM request WHERE id = :ip;";
941
			$statement = $database->prepare($query);
942
			$statement->bindValue(":ip", $_GET['email']);
943
			$statement->execute();
944
			$row = $statement->fetch(PDO::FETCH_ASSOC);
945
			$target = $row['email'];
946
			$type = "EMail";
947
		}
948
		elseif (isset($_GET['name'])) {
949
			$query = "SELECT name FROM request WHERE id = :ip;";
950
			$statement = $database->prepare($query);
@@ 948-956 (lines=9) @@
945
			$target = $row['email'];
946
			$type = "EMail";
947
		}
948
		elseif (isset($_GET['name'])) {
949
			$query = "SELECT name FROM request WHERE id = :ip;";
950
			$statement = $database->prepare($query);
951
			$statement->bindValue(":ip", $_GET['name']);
952
			$statement->execute();
953
			$row = $statement->fetch(PDO::FETCH_ASSOC);
954
			$target = $row['name'];
955
			$type = "Name";
956
		}
957
		else {
958
			BootstrapSkin::displayAlertBox("Unknown ban type.", "alert-error");
959
			BootstrapSkin::displayInternalFooter();