2020-03-02 08:52:22 +01:00
|
|
|
<?php
|
|
|
|
session_start();
|
|
|
|
%NO_CHEAP_SESSION_STEALING%
|
2020-03-02 14:26:25 +01:00
|
|
|
%PLEAZE_NO_CACHE%
|
2020-03-02 08:52:22 +01:00
|
|
|
$navbar="boards";
|
2020-03-02 09:20:30 +01:00
|
|
|
function _GET($par, $parType = '') {
|
|
|
|
if($parType == '') {
|
|
|
|
$parType = gettype($par);
|
|
|
|
}
|
|
|
|
$return = filter_input(INPUT_GET, $par, FILTER_SANITIZE_NUMBER_INT);
|
|
|
|
}
|
2020-03-02 09:21:19 +01:00
|
|
|
$id = _GET('id');
|
2020-03-02 08:52:22 +01:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>ThreadR - Boards</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>
|
|
|
|
<body>
|
|
|
|
%NAVBAR%
|
|
|
|
<div class="container">
|
|
|
|
<div class="item-1">
|
2020-03-02 09:13:10 +01:00
|
|
|
<h1><center>
|
|
|
|
<?php
|
|
|
|
$pdo = new PDO('mysql:host=localhost;dbname=web', 'webstuff', 'Schei// auf Pa$$w0rter!');
|
|
|
|
$error = false;
|
|
|
|
$error_message = "";
|
|
|
|
if (!$error) {
|
|
|
|
$statement = $pdo->prepare("SELECT * FROM boards WHERE id=$id");
|
|
|
|
$statement->execute();
|
|
|
|
$statement->fetchAll() as $ROW
|
|
|
|
echo "$ROW[name]";
|
|
|
|
}
|
|
|
|
if (!$result) {
|
|
|
|
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</center></h1>
|
2020-03-02 08:52:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|