fixed various little things

master
LinuxMint4Ever 2020-02-19 04:33:25 +01:00
parent dc2dcb1902
commit 9244f4d19b
5 changed files with 21 additions and 10 deletions

9
content/img/index.html Normal file
View File

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0;%CONTENT_DIR%/" />
</head>
<body>
<p> Nope. </p>
</body>
</html>

View File

@ -7,10 +7,10 @@
</head> </head>
<body> <body>
<ul class="topnav"> <ul class="topnav">
<li><a href="index.html">Home</a></li> <li><a href="%CONTENT_DIR%/">Home</a></li>
<li><a href="#news">News</a></li> <li><a href="#news">News</a></li>
<li><a href="%CONTENT_DIR%/about/">About</a></li> <li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a class="active" href="login.html">Log In</a></li> <li class="right"><a class="active" href="%CONTENT_DIR%/login/">Log In</a></li>
</ul> </ul>
<div style="padding:0 16px;"> <div style="padding:0 16px;">
@ -29,7 +29,10 @@
<input type="text" name="name" maxlength="20" placeholder="Username" /> <input type="text" name="name" maxlength="20" placeholder="Username" />
<input type="password" name="password" maxlength="256" placeholder="Password" /> <input type="password" name="password" maxlength="256" placeholder="Password" />
<p></p> <p></p>
<a href="/common/"> <button> Log in </button> </a> <input type="submit" value="Log in" />
<!--
@Ilja: HTML button tags are only useful in conjuction to JavaScript or in little hacks like my <a> + <button>. In HTML forms, there is a special type of button for submitting forms (see above).
-->
</form> </form>
<p></p> <p></p>
</div> </div>

0
content/news/index.php Normal file
View File

View File

@ -6,10 +6,10 @@
</head> </head>
<body> <body>
<ul class="topnav"> <ul class="topnav">
<li><a href="index.html">Home</a></li> <li><a href="%CONTENT_DIR%/">Home</a></li>
<li><a href="#news">News</a></li> <li><a href="%CONTENT_DIR%/news/">News</a></li>
<li><a href="%CONTENT_DIR%/about">About</a></li> <li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right"><a href="login.html">Log In</a></li> <li class="right"><a href="%CONTENT_DIR%/login/">Log In</a></li>
</ul> </ul>
<div style="padding:0 16px;"> <div style="padding:0 16px;">

View File

@ -2,8 +2,7 @@
<head> <head>
<title>ThreadR</title> <title>ThreadR</title>
</head> </head>
<body> <body>
<h1> ThreadR </h1> <h1> ThreadR </h1>
<h2> Welcome back, <?php echo $_GET['username']; ?>!</h2> <h2> Welcome back, <?php echo $_SESSION['username']; ?>!</h2>