22
21
You should have received a copy of the GNU Affero General Public License
23
22
along with this program. If not, see <http://www.gnu.org/licenses/>.
26
25
<title>Lunchdating</title>
27
26
<link rel="stylesheet" type="text/css" href="css/main.css"/>
28
27
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
31
if(isset($_SESSION ['userName'])){
32
$username = $_SESSION ['userName'];
34
$userinfo = $db->query("SELECT firstName from Users WHERE loginName='$username'");
35
$self = $userinfo->fetchAll();
36
$firstName = $self [0]['firstName'];
37
$userinfo = $db->query("SELECT surName from Users WHERE loginName='$username'");
38
$self = $userinfo->fetchAll();
39
$surName = $self [0]['surName'];
43
<div id="profileheader">
46
<img src="img/logo.png"/>
49
<form action="./logout.php" method="POST">
52
<td><input id="inputbutton1" type="Submit" value="Logga ut"/></td>
58
<?PHP include './php/sidepanel.php'; ?>
61
<?PHP include './php/feed.php'; ?>
70
<div id="profileheader">
31
<div id="profileheader">
73
33
<img src="img/logo.png"/>
76
35
<form action="./login.php" method="POST">
79
<td><label for="username">Användarnamn:</label></td>
80
<td><input id="username" class="input" type="input" name="username"/></td>
83
<td><label for="password">Lösenord:</label></td>
84
<td><input id="password" class="input" type="password" name="password"/></td>
87
<td><input id="inputbutton1" type="Submit" value="Logga in"/></td>
88
<td><a href="adduser.php">Registera dig</td>
38
<td><label for="Username">Användarnamn:</label></td>
39
<td><input id="input" type="input" name="username" value="Username"/></td>
42
<td><label for="Password">Lösenord:</label></td>
43
<td><input id="input" type="password" name="password" value="Password"/></td>
47
<td><input id="inputbutton1" type="Submit" value="Logga in" action="./login.php"/><input id="inputbutton2" type="Submit" value="Registera mig" action="./adduser.php"/></td>
93
53
<div id="profileimg">
95
55
<div id="wallflow">
57
if(isset ($_SESSION ['userName'])) echo 'Herp!';