modified files to include variable replacements for login and home links

master
BodgeMaster 2020-02-25 15:05:02 +01:00
parent e0327c4f0f
commit 283a484ed1
10 changed files with 42 additions and 45 deletions

View File

@ -15,11 +15,11 @@ session_start();
</head>
<body>
<ul class="topnav">
<li><a href="%CONTENT_DIR%/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<!--<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>-->
<div class="dropdown">
<button class="dropbtn">Boards
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -27,9 +27,9 @@ session_start();
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a class="active" href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<h1>
<center>About us and our website...</center>

View File

@ -13,11 +13,11 @@ session_start();
</head>
<body>
<ul class="topnav">
<li><a href="%CONTENT_DIR%/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<!--<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>-->
<div class="dropdown">
<button class="dropbtn">Boards
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -25,9 +25,9 @@ session_start();
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">

View File

@ -12,24 +12,21 @@ session_start();
</head>
<body>
<ul class="topnav">
<li><a class="active" href="%CONTENT_DIR%/">
<img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" class="available_space"/>
</a></li>
<li>%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<div class="dropdown">
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i> <!-- ? Ein leerer kursiver Textteil? -->
</button>
<div class="dropdown-content">
<a href="%CONTENT_DIR%/boards/">Board 1</a>
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">

View File

@ -1,6 +1,6 @@
<?php
session_start();
%NO_CHEAP_SESSION_STEALING%
//todo: force log out any user if logged in on this page
?>
<!DOCTYPE html>
<html>
@ -12,11 +12,11 @@ session_start();
</head>
<body>
<ul class="topnav">
<li><a href="%CONTENT_DIR%/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li><a href="%CONTENT_DIR%/">%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<!--<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>-->
<div class="dropdown">
<button class="dropbtn">Boards
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -24,10 +24,10 @@ session_start();
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a class="active" href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">

View File

@ -16,11 +16,10 @@ session_destroy();
</head>
<body>
<ul class="topnav">
<li><a href="%CONTENT_DIR%/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<div class="dropdown">
<button class="dropbtn">Boards
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -28,9 +27,9 @@ session_destroy();
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">

View File

@ -13,11 +13,11 @@ session_start();
</head>
<body>
<ul class="topnav">
<li><a href="%CONTENT_DIR%/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<li><a class="active" href="%CONTENT_DIR%/news/">News</a></li>
<!--<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>-->
<div class="dropdown">
<button class="dropbtn">Boards
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -25,9 +25,9 @@ session_start();
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">
@ -40,6 +40,7 @@ session_start();
<ul class="list">
<li><p> 2020-02-21 Whole Website updated: Homepage, News, Boards, About, Log In, Userhome, Log Out</p></li>
<li><p> 2020-01-06 First Steps done </p></li>
<li><pre> @ my fellow devs: Yeeee! This will be gone once the DB table is in place. Dont bother. </pre></li>
</ul>
</div>
</div>

View File

@ -17,13 +17,13 @@ $username = $dbentry['name'];
<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>
<ul class="topnav">
<li><a class="active" href="%CONTENT_DIR%/userhome/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<div class="dropdown">
<button class="dropbtn">Boards
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -31,9 +31,9 @@ $username = $dbentry['name'];
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="%CONTENT_DIR%/logout/">Log Out</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">
@ -46,4 +46,4 @@ $username = $dbentry['name'];
</ul>
</div>
</div>
</html>
</html>

View File

@ -13,11 +13,11 @@ session_start();
</head>
<body>
<ul class="topnav">
<li><a href="%CONTENT_DIR%/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a class="active" href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">

View File

@ -37,9 +37,9 @@
</head>
<body>
<ul class="topnav">
<li><a href="%CONTENT_DIR%/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<!-- <li><a class="dropdown">
<button class="dropbtn">News
<button class="dropbtn">News
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -51,7 +51,7 @@
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a class="active" href="%CONTENT_DIR%/login/">Log In</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">

View File

@ -20,10 +20,10 @@ $username = $dbentry['name'];
</head>
<body>
<ul class="topnav">
<li><a class="active" href="%CONTENT_DIR%/userhome/"><img src="%CONTENT_DIR%/img/ThreadR_Home.svg" alt="Home" /></a></li>
<li>%HOME_LINK%</li>
<li><a href="%CONTENT_DIR%/news/">News</a></li>
<div class="dropdown">
<button class="dropbtn">Boards
<button class="dropbtn">Boards
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-content">
@ -31,9 +31,9 @@ $username = $dbentry['name'];
<a href="#">Board 2</a>
<a href="#">Board 3</a>
</div>
</div>
</div>
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="%CONTENT_DIR%/logout/">Log Out</a></li>
<li class="right">%LOGIN_LINK%</li>
</ul>
<br />
<div class="container">