forked from Teamexe/confession-site
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreportinfo.php
executable file
·120 lines (117 loc) · 4.29 KB
/
reportinfo.php
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Confession site by - Team .EXE">
<meta name="author" content="Team .EXE">
<link rel="icon" href="exe.nith.ac.in/images/confess.png">
<link rel="stylesheet" href="css/makeconfess.css">
<script type="text/javascript" src="tinymce/tinymce.min.js"></script>
<title>Report confession - Team .EXE</title>
<?php
include_once('stylesheets.php');
echo "</head><body>";
include_once('header.php');
?>
<body>
<center>
<!-- <?php/*
$name=$_POST['name'];
$year=$_POST['year'];
$branch=$_POST['branch'];
$email=$_POST['email'];
$report=$_POST['report'];
$string=$name." of ".$branch." of year ".$year." complained about confession ".$id." report: ".$report." email id:".$email;
if($name=="" || $year=="" || $branch==""||$email=="")
{
$message="Please enter all the required fields";
echo
}
else
{
/*$email1="[email protected]";
$email2="[email protected]";
$string=wordwrap($string,70);
if($id!=""){
$subject="Confession report";
}
else{
$subject="Normal report";
}
if(mail($email,$subject,$string,"")){
$message="Your report has been sent to the admin for a review process";
echo
$id="";
$name="";
$year="";
$branch="";
$email="";
$report="";
}
else{
$message="your report can't be sent to the admin1";
echo
}
if(mail($email2,$subject,$string,"")){
$id="";
$name="";
$year="";
$branch="";
$email="";
$report="";
}
else{
$message="your report can't be sent to the admin2";
echo
}
}*/
?> -->
<br>
<div id="info">
<div id="mainContent">
<i class="fa fa-exclamation-triangle faa-flash animated" aria-hidden="true"></i>
<span id="warning">
<?php
if (!isset($id))
{
echo "To report a confession please type the Confession id else submit without it";
}
else
{
echo "<center>Thanks for reporting. Your contribution matters.</center>";
}
?>
</span>
</div>
</div>
<br><br>
<div id="main">
<form role="form" method="post" action="reportdb.php">
<label for="confessionid">
Enter confession id without #
</label>
<div class="input">
<input class="inpf" name="confessionid" size="34" type="text" placeholder="" value="<?php echo $id?>">
</div>
<br>
<div class="input">
<label for="report">
Your Report
</label><br>
<textarea class="inpf" name="report" rows="10" cols="37"></textarea>
</div>
<?php
require_once('recaptchalib.php');
$publickey = "6LfUPRsUAAAAAGgzv96APuiXYvUtxkHoUKs4pki7"; // you got this from the signup page
echo recaptcha_get_html($publickey);
?>
<input type="submit" class="btn btn-info" id="submission" value="Submit" name="submit">
</form>
</div>
</center>
<?php
include_once('footer.php');
?>
</body>
</html>