Code Duplication    Length = 7-8 lines in 2 locations

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
$userIsAdmin = isUserAdmin();
21
if(!$userIsAdmin)
22
{

php/jodel-web.php 1 location

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