Code Duplication    Length = 7-8 lines in 2 locations

php/jodel-web.php 1 location

@@ 40-47 (lines=8) @@
37
	die();
38
}
39
40
if(isset($_GET['solution']) && isset($_GET['key']) && isset($_GET['deviceUid']))
41
{
42
	$jodelAccount = new JodelAccount($_GET['deviceUid']);
43
	$response = array("success" => $jodelAccount->verifyCaptcha());
44
	echo json_encode($response);
45
46
	die();
47
}
48
49
function user_log($msg)
50
{

vote-ajax.php 1 location

@@ 15-21 (lines=7) @@
12
else
13
{
14
15
if(isset($_GET['solution']) && isset($_GET['key']) && isset($_POST['deviceUid']))
16
{
17
	$jodelAccount = new JodelAccount($_POST['deviceUid']);
18
	$response = array("success" => $jodelAccount->verifyCaptcha());
19
	echo json_encode($response);
20
	die();
21
}
22
23
$message = "";
24
$success = true;