-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend-message.php
More file actions
122 lines (117 loc) · 4.5 KB
/
Copy pathsend-message.php
File metadata and controls
122 lines (117 loc) · 4.5 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
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
121
122
<?php
//handle the link format here and use get parameters
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Anonymous Ecorp</title>
</head>
<body>
<div id="rowzy">
<a id="lgiz" style="text-decoration:none;" href="https://anonymous.astralecorp.com" >ANONYMOUS</a>
<i class="fa fa-bars" id="mbaz" onclick="myFunction()"></i>
<div class="dropdownzi">
<i id="fa-barszi" class="centerzi" onclick="myFunction()">
<div></div>
</i>
<div id="myDropdownzi" class="dropdownzi-content">
<a href="https://anonymous.astralecorp.com">Home</a>
<a href="login" class="share-p-link">Login</a>
<a href="register">Sign up</a>
</div>
</div>
</div>
<script>
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdownzi").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('#mbaz')) {
var dropdowns = document.getElementsByClassName("dropdownzi-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
<div id="form3">
<div class="container">
<img src="https://res.cloudinary.com/dyadjj49h/image/upload/v1661071203/halloween02_jgqtjs.svg">
<?php
if($_GET['user'])
{
//do something here with the get from url
?>
<h1 style="color:whitesmoke;">Say Something</h1>
<h2>To <?php echo"$vname"?>.</h2>
<p>❤️Send me an anonymous message. I won't know who sent it</p>
<form method="post" action="" id="form2">
<label for="smsgl"><b>🎁Type an anonymous message:</b></label>
<textarea type="text" max-rows="10" rows="3" maxlength="255" placeholder="Type a message for <?php echo"$vname"?> here" name="smsg" id="psw" required></textarea>
<input type="hidden" value="<?php echo"$vname"?>" name="user">
<div id="response2" style="text-align: center; color: rgb(0, 255, 42);">
<!--amtd-->
<?php
if (!empty($_POST['smsg']) && isset($_POST['user'])){
//on button click,insert message to recivers table in database
?>
</div>
<a href=""><button id="b11" type="submit" value="Submit" style="font-size:24px">Send Message<i class="fa fa-send" style="color:red"></i></button><br></a>
</form>
<?php
}else{ ?>
<h1 style="color:whitesmoke;">Anonymous Share</h1>
<div id="response2" style="text-align: center; color: rgb(0, 255, 42);">
<?php echo "Invalid Link. The receiver doesn't exist" ?>
</div>
<?php
}
}else{ ?>
<h1 style="color:whitesmoke;">Anonymous Share</h1>
<div id="response2" style="text-align: center; color: rgb(0, 255, 42);">
<?php echo "You accesed a Fake Link or edited the link wrongly" ?>
</div>
<?php
}
?>
<a href="/" style="text-decoration: none;"><button id="b22" class="share-p-link" style="font-size:16px">Create my link <i class="fa fa-paperclip" style="color:red"></i></button></a>
</div>
</div>
<div id="socials" style="margin-top:40px;">
<div class="rowvi">
<div class="columnvi" >
<h1>Anonymous Ecorp</h1>
<div style="margin-top: 30px;" >
<a href="https://developers.astralecorp.com"><p id="af" >Developers</p></a>
<a href="#"><p id="af" >Features</p></a>
<a href="#"><p id="af" >Partners</p></a>
<a href="#socials"><p id="af" >Join Us</p></a>
</div>
</div>
<div class="columnvi" style="text-align: center;">
<h1>Visit Us</h1>
<div style="margin-top: 32px; text-align: center;">
<p>Clevelend,Oklahoma</p>
<p>Tuls</p>
<p>White Street</p>
<p>Anonymous Ecorp</p>
</div>
</div>
</div>
</div>
</div>
<footer>
<p>Copyright 2022</p>
<p>All rights reserved.Anonymous Ecorp</p>
</footer>
</body>
</html>