-
Notifications
You must be signed in to change notification settings - Fork 0
/
yoursign.php
156 lines (125 loc) · 2.49 KB
/
yoursign.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<?php
include "ZodiacFinder.php";
$result = "";
//showing zodiac sign after date is given
if(isset($_GET["yourdate"])){
//conv to time
$yourDate = strtotime($_GET["yourdate"]);
//getting day and month individually
$day = date('j', $yourDate);
$month = date('n', $yourDate);
//creating zodiac object for given form values
$zodiac = new ZodiacFinder($day,$month);
//finding zodiac sign
$zodiac -> zodiacFinder();
//get zodiac sign with toString voodoo magic from the constellations
$zodiac -> __toString();
$result = "Your sign is <a href =\"/daily/daily".$zodiac.".php\"><strong>".$zodiac."</strong></a>";
}
?>
<html>
<head>
</head>
<body
bgcolor = "#0e0e0e"
link='#FFFFFF'
vlink='#FFFFFF'
alink='#6c448c'>
<div>
<center>
<!-- LOGO BANNER -->
<table
width = "500"
cellpadding = "0"
cellspacing = "0">
<tr>
<td>
<a href = "homepage.php">
<img
src = https://magic-spells-and-potions.com/images/magic-images/pentacles//purple-pentagram-circle.gif>
</a>
</td>
<td
align = "TOP">
<a href = "homepage.php">
<img
src = "/astrosite/astrobanner.png"
width = "400">
</a>
</td>
</tr>
</table>
</center>
</div>
<!-- FORM -->
<div>
<center>
<table
width = "500"
height = "350"
background = "/astrosite/starrysky.gif">
<tr>
<td
align = "CENTER"
valign = "BOTTOM">
<img
src="/astrosite/findyoursign.png">
<br>
<br>
</td>
</tr>
<tr>
<td
align = "CENTER"
valign = "MIDDLE">
<form
action = ""
method = "get"
id = "form1">
<input
type = "date"
name = "yourdate"
>
<br>
<br>
<button
type = "submit"
form = "form1"
value = "Submit">Submit</button>
</form>
</td>
</tr>
<!-- RESULT -->
<tr>
<td
align = "CENTER"
valign ="TOP">
<p>
<font
color = "#FFFFFF"
size = "6"> 
<?php
echo @$result;
?>
 
</font>
</p>
</td>
</tr>
<br>
</table>
</center>
</div>
<br>
<!-- Back Button-->
<div>
<center>
<a href = "/homepage.php">
<img
src = "/astrosite/backbutton.png"
height = "50">
</a>
</center>
</div>
</body>
</html>