-
Notifications
You must be signed in to change notification settings - Fork 1
/
submitcontesttest.php
90 lines (82 loc) · 2.79 KB
/
submitcontesttest.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
<?php
if(!isset($_SESSION))
{
session_start();
}
?>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.min.js"></script>
<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT" SRC="scripts.js"></SCRIPT>
<html>
<head>
<title>Rhino Launch -- Submit Contests</title>
<link rel="stylesheet" href="images/RhinoStyle.css" type="text/css" />
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
</head>
<body>
<div class="wrapper">
<?php
//if the login session does not exist therefore meaning the user is not logged in
if(strcmp(@$_SESSION['valid_user'],"") == 0){
?>
<div id="header">
<img src="images/rhinolaunch_logo.png" alt="rhino" style="position:absolute; top:40px; left: 20%; border:none; height:50%;"/>
</div>
<div id="content">
<div class="tab-header" style="top:20px; font-size:25px;">
Would you kindly?
</div>
<div id="preferred-contest" style="top: 55px; height: 300px;">
<p class=\"error\" style=\"font-size: 40px\">You need to be logged in to use this feature!</p>
<form action="./login.php" method="post">
<div id="othbord">
<table class="auth" cellpadding="2" cellspacing="0" border="0">
<tr>
<td>Username:</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>Password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" value="Login" /></td>
</tr>
<tr>
<td align="center" colspan="2"><a href="register.php">Register</a> | <a href="forgot.php">Forgot Pass</a></td>
</tr>
</table>
</div>
</form>
</div>
</div>
<div id="push"></div>
<?php
}else{
//otherwise continue the page
//this is out update script which should be used in each page to update the users online time
$time = date('U')+50;
@ $db = mysql_pconnect('localhost', 'userbasic', 'user8asic');
mysql_select_db('rhino_launch');
$update = mysql_query("UPDATE `user` SET `online` = '".$time."' WHERE `User_id` = '".$_SESSION['valid_user']."'");
?>
<!-- Actual Page content goes here -->
<?php
include('header.php');
?>
<div id="content">
<img src="images/Full_tab_header.png" style="position: absolute; width: 100%; height: 35px; top:20px; left: 0px;">
<div id="vidContainer" style="top: 55px; min-height: 250px">
<p>At the moment this feature doesn't work! If you are interested in submitting an idea for a contest or have a question about how contests work, please contact the RhinoLaunch team at [email protected]!</p>
</div>
</div>
<div class="push"></div>
<?php
}
?>
</div>
<?php
include('footer.php');
?>
</body>
</html>