2020-02-24 09:19:56 +01:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
%NO_CHEAP_SESSION_STEALING%
|
|
|
|
|
|
|
|
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
|
|
|
|
$statement = $pdo->prepare('SELECT name FROM users WHERE id = :user_id;'); // to be replaced with optional user name off the user data table
|
|
|
|
$result = $statement->execute(array('user_id' => $_SESSION['user_id']));
|
|
|
|
$dbentry = $statement->fetch();
|
|
|
|
$username = $dbentry['name'];
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
2020-02-24 09:07:51 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>ThreadR - Profile</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="%CONTENT_DIR%/style.css">
|
|
|
|
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
</head>
|
2020-02-25 15:05:02 +01:00
|
|
|
|
2020-02-24 09:07:51 +01:00
|
|
|
<body>
|
|
|
|
<ul class="topnav">
|
2020-02-25 15:05:02 +01:00
|
|
|
<li>%HOME_LINK%</li>
|
2020-02-24 09:11:17 +01:00
|
|
|
<li><a href="%CONTENT_DIR%/news/">News</a></li>
|
|
|
|
<div class="dropdown">
|
2020-02-25 15:05:02 +01:00
|
|
|
<button class="dropbtn">Boards
|
2020-02-24 09:11:17 +01:00
|
|
|
<i class="fa fa-caret-down"></i>
|
|
|
|
</button>
|
|
|
|
<div class="dropdown-content">
|
|
|
|
<a href="%CONTENT_DIR%/boards/">Board 1</a>
|
2020-02-24 09:07:51 +01:00
|
|
|
<a href="#">Board 2</a>
|
|
|
|
<a href="#">Board 3</a>
|
2020-02-24 09:11:17 +01:00
|
|
|
</div>
|
2020-02-25 15:05:02 +01:00
|
|
|
</div>
|
2020-02-24 09:11:17 +01:00
|
|
|
<li><a href="%CONTENT_DIR%/about/">About</a></li>
|
2020-02-25 15:05:02 +01:00
|
|
|
<li class="right">%LOGIN_LINK%</li>
|
2020-02-24 09:11:17 +01:00
|
|
|
</ul>
|
|
|
|
<br />
|
|
|
|
<div class="container">
|
|
|
|
<div class="item-1">
|
|
|
|
<center><h1>ThreadR</h1></center>
|
|
|
|
</div>
|
|
|
|
<div class="item-2">
|
2020-02-24 09:13:47 +01:00
|
|
|
<ul class="list">
|
2020-02-26 09:56:47 +01:00
|
|
|
<li><center><h1><?php echo " $username "; ?> </h1></center></li>
|
2020-02-24 09:19:56 +01:00
|
|
|
</ul>
|
2020-02-24 09:11:17 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-25 15:05:02 +01:00
|
|
|
</html>
|