Show sourcecode
The following files exists in this folder. Click to view.
bacon-egg-pizza.php
cquiz.php
create-account.php
create-account111.php
create-quiz.php
create-quiz2.php
createaccount.php
delete-quiz.php
drop-rps-tables.php
legacy-code-rps.php
legacy-index.php
login.php
logincheck.php
newpassword-verify.php
newpassword.php
potential-code.txt
quiz-db-init.php
quizhub.php
quizhub2.php
results.php
rpsaccount-ajax-user-search.php
rpsaccount.php
rpsbetting-ajax-match-finder.php
rpsbetting.php
rpsbettingleaderboard.php
rpschangepassword.php
rpschangepassword.txt
rpsgame-ajax.php
rpsgame.php
rpsgameresults.php
rpshostnewgame.php
rpshub.php
rpsleaderboard.php
rpslib.php
rpslogin.php
rpsmaininclude.php
rpsproject/
rpsusersearch.php
table-init.php
verification.php
delete-quiz.php
105 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php require('logincheck.php');
if($_SESSION['isadmin']!=1){
header("Location:quizhub.php");
die;
}
?>
<html>
<h1>radera quiz</h1>
<?php
$sql = "SELECT * FROM qlist";
$stmt = $dbconn->prepare($sql);
$stmt->execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$quizName = $res['qlname'];
echo('<form action="" method="GET"><button type="submit" name="quiz" value="'.$quizName.'">'.$quizName.'</button>');
}
////////////////////////////////////////////////////////
if(isset($_GET['quiz'])){
$selectedQuiz = $_GET['quiz'];
$sql = "SELECT * FROM qlist WHERE qlname='$selectedQuiz'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$selectedQuizID = $res['listid'];
echo "quiz deleted";
}
///////////////////////////////////////////////////////
$selectedQuestionsID = [];
$sql = "SELECT * FROM qquestions WHERE qlkey='$selectedQuizID'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
array_push($selectedQuestionsID, $res['questionid']);
}
//////////////////////////////////////////////////////////
foreach($selectedQuestionsID as $key){
/*$sql = "SELECT * FROM qquestions WHERE questionid='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$sql = "DELETE FROM qquestions WHERE questionid='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
}
$sql = "SELECT * FROM qanswers WHERE qqkey='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$sql = "DELETE FROM qanswers WHERE qqkey='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
}*/
$sql = "SELECT * FROM qquestions WHERE questionid='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$sql = "DELETE FROM qquestions WHERE questionid='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
}
$sql = "SELECT * FROM questionanswers WHERE qqkey='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$sql = "DELETE FROM questionanswers WHERE qqkey='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
}
$sql = "SELECT EXISTS(SELECT * FROM qresults WHERE qkey='$key')";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$sql = "DELETE FROM qresults WHERE qkey='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
}
$sql = "SELECT EXISTS(SELECT * FROM quserresults WHERE quizkey='$key')";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$sql = "DELETE FROM quserresults WHERE quizkey='$key'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
}
}
$sql = "SELECT EXISTS(SELECT * FROM qlist WHERE listid='$selectedQuizID')";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
while($res = $stmt->fetch(PDO::FETCH_ASSOC)){
$sql = "DELETE FROM qlist WHERE listid='$selectedQuizID'";
$stmt = $dbconn -> prepare($sql);
$stmt -> execute();
}
$_GET=[];
}
?>
</html>