-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage.php
More file actions
87 lines (77 loc) · 3.06 KB
/
Copy pathmessage.php
File metadata and controls
87 lines (77 loc) · 3.06 KB
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
<?php
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');
require_once './database/connection.php';
session_start();
$message = "";
if (isset($_POST["submit"])) {
$message = $_POST['message'];
$id = $_SESSION['mail_id'];
$sql = "UPDATE `email` SET `message`='$message' WHERE mail_id = '$id' ";
if ($conn->query($sql) === TRUE) {
header('location:question6.php');
} else {
echo 'Error' . $sql . "<br>" . $conn->error;
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="expires" content="Sun, 01 Jan 2014 00:00:00 GMT"/>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="refresh" content="60;url=username.php" />
<title></title>
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="../css/style.css">
<link rel="stylesheet" href="../particles/style.css">
<link rel="stylesheet" href="../matrix/style.css">
<link rel="stylesheet" href="../index.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<style>
input[type="submit"]
{
height: 800px;width: 100%;background: none;outline: none;border: none
}
</style>
</head>
<body style="background: black" onload="startButton(event)">
<audio src="sounds/message.mp3" autoplay></audio>
<br>
<div class="text" style="height: 100%;width: 100%">
<form method="Post">
<div id="results" style="display: none">
<textarea cols="93" rows="10" id="final_span" class="final" name="message" required></textarea>
<span id="interim_span" class="interim" style="display: none"></span>
<p>
</div>
<input type="submit" class="btn" name="submit" value="submit"/>
<input type="submit" class="btn" name="submit" value="submit"/>
</form>
<?php include './parts/essential.php'; ?>
</div>
<script src="js/index.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="../matrix/script.js"></script>
<script src="../index.js"></script>
<script src="../js/index.js"></script>
<script>
function click(e) {
if (navigator.appName == 'Netscape' && e.which == 3) {
window.location.reload();
return false;
} else {
if (navigator.appName == 'Microsoft Internet Explorer' && event.button == 2)
window.location.reload();
return false;
}
return true;
}
document.onmousedown = click;
document.oncontextmenu = new Function("window.location.reload();return false;");
</script>
</body>
</html>