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

@@ 13-19 (lines=7) @@
10
    die();
11
}
12
13
if(isset($_GET['solution']) && isset($_POST['deviceUid']))
14
{
15
	$jodelAccount = new JodelAccount($_POST['deviceUid']);
16
	$response = array("success" => $jodelAccount->verifyCaptcha());
17
	echo json_encode($response);
18
	die();
19
}
20
21
if((!isset($_GET['pw']) || $config['pw'] != $_GET['pw']) && !isUserAdmin())
22
{