forked from shamilcm/wireus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·214 lines (167 loc) · 7.05 KB
/
index.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?php
session_start();
if($_SESSION['authuser']==1)
header("Location:home?profile=$_SESSION[username]");
$id = $_GET[xid];
if(!($id>=1 && $id<=8))
$id=0;
?>
<html>
<head>
<link rel="icon"
href="favicon.ico">
</link>
<title> Wireus </title>
<link rel="stylesheet" type="text/css" href="themes/style.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var x = <?php echo $id;?>;
if(!(x>=2 && x<=8))
{ $("#register_box").hide();
$("#signinbutton").hide();
if(x==1)
$("#loginerror").css("display","block");
}
else if(x!=0)
{
$("#login_box").css("display","none");
$("#register_box").css("z-index",8)
$("#registerbutton").hide();
$(".errorbox").show();
$("#xid"+x).show();
}
$("#btn_register").click(function(){
$("#register_box").css("display","none");
$("#register_box").css("z-index",1);
$("#login_box").fadeOut(1000);
$("#register_box").fadeIn(1000);
$("#registerbutton").hide();
$("#signinbutton").show();
$("#xid"+x).fadeOut(1000);
$(".errorbox").fadeOut(1000);
xid = 0;
});
$("#btn_signin").click(function(){
$("#login_box").css("display","none");
$("#login_box").css("z-index",1);
$("#register_box").fadeOut(1000);
$("#login_box").fadeIn(1000);
$("#signinbutton").hide();
$("#registerbutton").show();
$("#xid"+x).fadeOut(1000);
$(".errorbox").fadeOut(1000);
xid = 0;
});
});
</script>
</script>
</link>
</head>
<body>
<div class=globalcontainer>
<div class="wrapper">
<div class="topbox">
<div id="registerbutton" class="cornerbutton">
<span>Not a member yet?</span>
<button id="btn_register" class="btn_front">
<span> Register </span>
</button>
</div>
<div id="signinbutton" class="cornerbutton">
<span>Already a member?</span>
<button id="btn_signin" class="btn_front">
<span> Sign In </span>
</button>
</div>
</div>
<div class="centerbox">
<div id="logo">
<img src="images/img_mainlogo.png" width="450"></img>
</div>
<div id="login_box" class="rt_box">
<div class="login_form_container">
<form action="loginnext.php" method="post" id="login_form">
<span class="error" id="loginerror">Invalid Username/Password </span>
<div class="formlabel">Username
</div>
<div class="input_wrapper">
<input type="text" name="username" id="login_username"/>
</div>
<div class="formlabel">Password
</div>
<div class="input_wrapper">
<input type="password" name="password" id="login_password"/>
</div>
<div id="loginformbutton" class="formbutton">
<input type="submit" class="btn_form" id = "btn_formenter" value="Enter">
</div>
</form>
</div>
</div>
<div id="register_box" class="rt_box">
<div class="errorbox" id="reg"> </div>
<span class="regerror" id="xid2">USERNAME MUST BE ALPHA NUMERIC</span>
<span class="regerror" id="xid3">USERNAME IS ALREADY TAKEN</span>
<span class="regerror" id="xid4">EMAIL ID IS ALREADY REGISTERED</span>
<span class="regerror" id="xid5">PASSWORDS DO NOT MATCH</span>
<span class="regerror" id="xid6">PLEASE ENTER A USERNAME</span>
<span class="regerror" id="xid7">PLEASE ENTER A PASSWORD</span>
<span class="regerror" id="xid8">PLEASE ENTER AN EMAIL ADDRESS</span>
<div class="register_form_container">
<form action="registernext.php" method="post" id="register_form">
<div class=reginputcontainer>
<div class="regformlabel">USERNAME
</div>
<div class="reginput_wrapper">
<input type="text" name="reg_username" maxlength=15 id="reg_username"/>
</div>
</div>
<div class=reginputcontainer>
<div class="regformlabel">PASSWORD
</div>
<div class="reginput_wrapper">
<input type="password" name="reg_password1" maxlength=20 id="reg_password1"/>
</div>
</div>
<div class=reginputcontainer>
<div class="regformlabel">RE-TYPE PASSWORD
</div>
<div class="reginput_wrapper">
<input type="password" name="reg_password2" maxlength=20 id="reg_password2"/>
</div>
</div>
<div class=reginputcontainer>
<div class="regformlabel">EMAIL ADDRESS
</div>
<div class="reginput_wrapper">
<input type="text" name="reg_email" maxlength=30 id="reg_email"/>
</div>
</div>
<div class="formbutton" id="regformbutton">
<input type="submit" class="btn_form" id="btn_formregister" value="Register">
</div>
</form>
</div>
</div>
</div>
<div class="bottombox">
<div id="bottomline"> </div>
<div id="copyright">
<span> WIREUS © 2011 </span>
</div>
<div id="linkbox">
<!--
<a href="about.php">About</a>
.
<a href="privacy.php">Privacy</a>
.
<a href="help.php">Help</a>
-->
</div>
</div>
</div>
</div>
</body>
</html>