-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhead.php
More file actions
115 lines (102 loc) · 3.9 KB
/
head.php
File metadata and controls
115 lines (102 loc) · 3.9 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
<?php
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
//Redirect to index if userisn't logged in
session_start();
if (!(isset($_SESSION['username']) || isset($LoginPage)))
header("Location: Login.html");
//Will definitely be set, just for testing purposes.
if((isset($_SESSION['username'])))
$username = $_SESSION['username'];
else $username = "Username";
echo "<div id='welcome'>
Welcome back,
<div id='welcometitle'>$username!</div>
<a href='Login.html' style='font-size:9px; color:#cccccc'>Not you?</a>
</div>";
//connect
$mysqli=mysqli_connect("csdb.wheaton.edu","kayley_lane", "82606", "Csci371FruitRoad");
if (mysqli_connect_error())
die("Failed to connect - " . mysqli_connect_error());
echo "<img src='https://31.media.tumblr.com/98cb398bf85e6a4838a18b57a763a3c7/tumblr_inline_ndpd2dbrBJ1s8o8qm.png' align='left' height='75px'>
<div id='navigation'>
<div style='padding-right:315px;'>
<a href='Splash.php' title='Go back to the splash page.'>Home
<img src='http://www.wpclipart.com/signs_symbol/shapes/Road_ribbon_T.png'></a>
<a href='Splash.php' title='Edit your account settings.'>My Account
<img src='http://png-2.findicons.com/files/icons/1254/flurry_system/128/users.png'></a>
<a href='Products.php' title='Shop for delicious fruit.'>Products
<img src='http://img-fotki.yandex.ru/get/6521/136487634.71c/0_af09e_64e2ef9c_L'></a>
<a href='Cart.php' title='View and edit your cart or check out.'>Cart
<img src='http://www.robmcintosh.ca/images/shoppingCart.png'></a>
<a href='Admin.php' title='admin only'>Admin
<img src='http://img1.wikia.nocookie.net/__cb20110520055935/walkthrough/images/thumb/3/33/Important_circle.png/100px-0,201,0,200-Important_circle.png'></a>
</div>
</div> ";
echo "<div id='bottomlogo'><a href='Splash.php'><img src='https://31.media.tumblr.com/ebed233fbab7fed04641d3ff77307760/tumblr_inline_ndp93rb9xv1s8o8qm.png'></a></div>";
?>
<style type="text/css">
::-webkit-scrollbar-thumb:vertical {background-color:#ffffff;height:15px;}
::-webkit-scrollbar {height:0px;width:1px;background-color:#ffffff;}
a:link { color: #000000; text-decoration: none}
a:visited { color: #000000; text-decoration: none}
a:hover { color: #2c2c2c; text-decoration:none}
a:active { color: #000000; text-decoration: none}
#welcome{
text-align: right;
font-family: Arial;
font-size: 11px;
color:#5d5d5d;
}
#welcometitle{
color: #000000;
font-size: 14px;
display: inline;
font-weight: bold;
}
#navigation{
width: 100%;
height: 75px;
text-align: center;
background: #FAB700; /* old browsers */
background: -moz-linear-gradient(top, #CCCCCC 0%, #FFFFFF 100%); /* firefox */
border-bottom: 1px solid #ffffff;
border-top: 1px solid #C4C4C4;
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#CCCCCC), color-stop(100%,#FFFFFF)); /* webkit */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#CCCCCC', endColorstr='#FFFFFF',GradientType=0 ); /* ie */
-webkit-border-radius: 20px;
-moz-border-radius: 20px;
border-radius: 20px;
white-space: nowrap;
}
#navigation a{
line-height: 77px;
margin-left: 45px;
color: black; -webkit-transition:all .2s ease-in-out;
-o-transition:all .2s;
-moz-transition:all .2s;
-ms-transition:all .2s;
font-family: Arial;
font-size:20px;
font-weight: bold;
border-bottom: #ffffff dotted 1px;
letter-spacing: -1px;
}
#navigation a:hover{
color: #000000; -webkit-transition:all .2s ease-in-out;
-o-transition:all .2s;
-moz-transition:all .2s;
-ms-transition:all .2s;
}
#navigation img{
height: 30px;
}
#bottomlogo{
position: fixed;
bottom: 5px; right: 5px;
}
#bottomlogo img{
height: 50px;
}
</style>