moved favicon to a macro, fixed broken formatting wherever I found it
parent
2f6b6d09de
commit
aec8caa11a
|
@ -12,7 +12,7 @@ $navbar="about";
|
|||
ThreadR - About Us
|
||||
</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -11,7 +11,7 @@ $id=$_GET['id'];
|
|||
<head>
|
||||
<title>ThreadR - Boards</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<?php
|
||||
if(isset($_GET['action'])) {
|
||||
if ($_GET['action']=='submit') {
|
||||
|
|
|
@ -7,27 +7,49 @@ $navbar="boards";
|
|||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ThreadR - Boards</title>
|
||||
%STYLESHEET%
|
||||
<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">
|
||||
<h1><center>ThreadR Boards</center></h1>
|
||||
</div>
|
||||
<div class="item-2">
|
||||
<ul class="list">
|
||||
<?php
|
||||
$pdo = new PDO('mysql:host=%DB_SERVER%;dbname=%DB_NAME%', '%DB_USERNAME%', '%DB_PASSWORD%');
|
||||
<head>
|
||||
<title>ThreadR - Boards</title>
|
||||
%STYLESHEET%
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
%NAVBAR%
|
||||
<div class="container">
|
||||
<div class="item-1">
|
||||
<h1>
|
||||
<center>ThreadR Boards</center>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="item-2">
|
||||
<ul class="list">
|
||||
<?php
|
||||
$pdo = new PDO('mysql:host=%DB_SERVER%;dbname=%DB_NAME%', '%DB_USERNAME%', '%DB_PASSWORD%');
|
||||
$error = false;
|
||||
$error_message = "";
|
||||
if (!$error) {
|
||||
echo '<center><h2 class="beige">Public Boards</h2></center>';
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='0' ORDER BY id asc");
|
||||
$statement->execute();
|
||||
foreach($statement->fetchAll() as $ROW) {
|
||||
echo "<li><a href='%CONTENT_DIR%/board/?id=$ROW[id]'>$ROW[name]</a></li>";
|
||||
}
|
||||
}
|
||||
if (!$result) {
|
||||
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="item-3">
|
||||
<ul class="list">
|
||||
<?php
|
||||
if ($login) {
|
||||
$error = false;
|
||||
$error_message = "";
|
||||
if (!$error) {
|
||||
echo '<center><h2 class="beige">Public Boards</h2></center>';
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='0' ORDER BY id asc");
|
||||
echo '<center><h2 class="beige">Private Boards</h2></center>';
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='1' ORDER BY id asc");
|
||||
$statement->execute();
|
||||
foreach($statement->fetchAll() as $ROW) {
|
||||
echo "<li><a href='%CONTENT_DIR%/board/?id=$ROW[id]'>$ROW[name]</a></li>";
|
||||
|
@ -36,31 +58,11 @@ $navbar="boards";
|
|||
if (!$result) {
|
||||
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="item-3">
|
||||
<ul class="list">
|
||||
<?php
|
||||
if ($login) {
|
||||
$error = false;
|
||||
$error_message = "";
|
||||
if (!$error) {
|
||||
echo '<center><h2 class="beige">Private Boards</h2></center>';
|
||||
$statement = $pdo->prepare("SELECT * FROM boards WHERE private='1' ORDER BY id asc");
|
||||
$statement->execute();
|
||||
foreach($statement->fetchAll() as $ROW) {
|
||||
echo "<li><a href='%CONTENT_DIR%/board/?id=$ROW[id]'>$ROW[name]</a></li>";
|
||||
}
|
||||
}
|
||||
if (!$result) {
|
||||
$error_message = "Error: SQL error.\n" . $statement->queryString . "\n" . $statement->errorInfo()[2];
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
%BANNER_COOKIES%
|
||||
</body>
|
||||
</div>
|
||||
%BANNER_COOKIES%
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -11,7 +11,7 @@ $navbar="home";
|
|||
<head>
|
||||
<title>ThreadR - Home</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -11,7 +11,7 @@ if (isset($_SESSION['user_id'])){
|
|||
<head>
|
||||
<title>ThreadR - Log In</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -5,25 +5,25 @@ $navbar = "logout";
|
|||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>ThreadR - Home</title>
|
||||
%STYLESHEET%
|
||||
<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%
|
||||
<br />
|
||||
<div class="container">
|
||||
<div class="item-1">
|
||||
<h1>
|
||||
<center>Bye! Cya around some time soon.</center>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="item-2">
|
||||
<img src="%CONTENT_DIR%/img/ThreadR.svg" alt="ThreadR" height="100%" width="100%">
|
||||
</div>
|
||||
</div>
|
||||
%BANNER_COOKIES%
|
||||
</body>
|
||||
</html>
|
||||
<head>
|
||||
<title>ThreadR - Home</title>
|
||||
%STYLESHEET%
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
%NAVBAR%
|
||||
<br />
|
||||
<div class="container">
|
||||
<div class="item-1">
|
||||
<h1>
|
||||
<center>Bye! Cya around some time soon.</center>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="item-2">
|
||||
<img src="%CONTENT_DIR%/img/ThreadR.svg" alt="ThreadR" height="100%" width="100%">
|
||||
</div>
|
||||
</div>
|
||||
%BANNER_COOKIES%
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -10,7 +10,7 @@ $navbar = "news";
|
|||
<head>
|
||||
<title>ThreadR - News</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -26,7 +26,7 @@ $navbar = "profile";
|
|||
<head>
|
||||
<title>ThreadR - Profile</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -9,7 +9,7 @@ $navbar = "signup";
|
|||
<head>
|
||||
<title>ThreadR - Sign Up</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -34,7 +34,7 @@ $navbar = "verify-email";
|
|||
<head>
|
||||
<title>ThreadR - Verification</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -25,7 +25,7 @@ $navbar = "home";
|
|||
<head>
|
||||
<title>ThreadR</title>
|
||||
%STYLESHEET%
|
||||
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
||||
%FAVICON%
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Reference in New Issue