-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome.php
53 lines (49 loc) · 1.17 KB
/
welcome.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
<?php session_start();?>
<!doctype html>
<html>
<head>
<link rel="shortcut icon" href="favicon.ico">
<style>
.error {color: #FF0000;}
h1 {font-size: 55px; color:yellow; font-family: 'Fredericka the Great', cursive;}
body,h3,h4,h5,h6 {font-family: 'Raleway', sans-serif;}
</style>
<meta charset="utf-8">
<title>Welcome</title>
<style>
body
{
font-size: 25px;
background-image:url("image/welcome.png");
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
background-size: cover;
}
div
{
width: 16em;
height: 350px;
position: absolute;
top: 50%;
left: 50%;
margin: -175px 0 0 -8em;
}
</style>
</head>
<body>
<?php
if($_SESSION['success'] == true){
echo "<script>alert('點擊後跳轉頁面');</script> ";
echo "<meta http-equiv=REFRESH CONTENT=3;url=./index.php>";
}
else{
echo "<script>alert('尚未登入 請先登入');</script> ";
echo "<meta http-equiv=REFRESH CONTENT=1;url=login.php>";
}
?>
<!-- <?php
//$id = $_GET["user"];
?> -->
</body>
</html>