-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactadmin.php
More file actions
75 lines (71 loc) · 2.01 KB
/
contactadmin.php
File metadata and controls
75 lines (71 loc) · 2.01 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
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$to = "fromalaska49@gmail.com";
$subject = "Social Network";
$body = "This is a new message from " . $name . " via the Radford Network.\n\n" . $message . "\n\nYou can reply to them at " . $email;
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
<html>
<head>
<title>
Radford Network
</title>
<link rel="stylesheet" type="text/css" href="network.css" />
<script type="text/javascript">
function widthcalc() {
window.setInterval(function(){
var win = window.innerWidth;
var news = win-200;
var feed = document.getElementById('feed');
feed.style.width=news;
var winh = window.innerHeight;
var newsh = winh-100;
var feedh = document.getElementById('feed');
feed.style.height=newsh;
}, 20);
}
</script>
<script type="text/javascript">
window.setInterval(redirect, 1000);
function redirect() {
var div = document.getElementById('num');
var num = div.innerHTML;
var n = num-1;
div.innerHTML=n;
if (n<1) {
window.location='login.html';
}
}
</script>
</head>
<body style="background-color:#333333;background-image:url('iosfolderbackground.jpg');background-repeat:repeat;">
<!--This is the header-->
<div class="head">
<a href="newsfeed.html"><h1 style="float:left;color:white;position:relative;top:-13px;display:inline;text-shadow:-1px -1px #550000;"><RadfordNetwork></h1></a>
</div>
<center>
<br />
<br />
<br />
<br />
<div class="cntnr">
<div class="contnr" style="
/* gradients */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #BB0000), color-stop(15%, #AA0000), color-stop(100%, #660000));
background: -moz-linear-gradient(top, #BB0000 0%, #AA0000 55%, �#660000 130%);">
<h4 class="ttl" style="position:relative;top:10px;">Thanks</h4>
</div>
<div class="contner">
<p>Your message has been sent<br />You will be redirected in <div style="display:inline;" id="num">5</div> seconds</p>
</div>
</div>
<br />
</center>
</body>
</html>