-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome.php
92 lines (76 loc) · 2.89 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
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
<?php
session_start();
include ("connect.php");
$uid = $_SESSION['uid'];
$usr = mysql_query("select * from `YOUR_TABLE_NAME` where id=$uid");
$usr = mysql_fetch_array($usr);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tutorial Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Tutorial Demo</a>
<div class="nav-collapse">
<ul class="nav">
<li><a href="index.php">Home</a></li>
<li><a href="home.php">My account</a></li>
<li><a href="http://aniri.ro/geek/tutorials/how-to-make-website-registration-easier-using-facebook-accounts">Read tutorial</a></li>
<li><a href="#">Feedback</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="page-header">
<h1>signup with facebook</h1>
</div>
<div class="row">
<div class="span8">
<div class="main">
<div class="alert alert-info">
<h4>Welcome <?php echo $usr['username'];?>!</h4>
<p>Your account was created!</p>
</div>
<a href="home.php">
<button class="btn btn-success">View your account</button>
</a>
<div style="margin: 20px;">
<a href="logout.php"><button class="btn btn-inverse">Logout</button></a>
</div>
</div>
</div>
<div class="span4">
<h3>Instructions:</h3>
<div style="padding: 20px;">
This is a tutorial to show you how to sign up users to your application using their facebook account.
<br/><br/>
You can read the tutorial <a href="http://aniri.ro/geek/tutorials/how-to-make-website-registration-easier-using-facebook-accounts">here</a>.
<br/><br/>
To test it out, press the 'View your account' button and get to your homepage.
</div>
</div>
</div>
</div>
<?php include "footer.php";?>
</div>
</body>
</html>