diff options
Diffstat (limited to 'wiki.php')
-rw-r--r-- | wiki.php | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/wiki.php b/wiki.php new file mode 100644 index 0000000..149b5fb --- /dev/null +++ b/wiki.php @@ -0,0 +1,42 @@ +<!DOCTYPE PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/1/DTD/1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/" lang="en" xml:lang="en"> +<head> + <meta http-equiv="Content-Type" content="text; charset=utf-8" /> + <title>tilde.institute :: Wiki</title> + <link rel="stylesheet" href="tilde.css" type="text/css"/> + <link rel="icon" type="image/png" href="icon.png"/> +</head> +<body> +<div id="container"> + <div id="logo"> + <img src="logo.png" alt="" /><br /> + <div id="logobyline"> + of OpenBSD Education + </div> + </div> + <div id="navigation"> + <a href="http://tilde.institute">News</a> :: <a href="/signup">Sign Up</a> :: <a href="/irc">IRC</a> :: <a href="/start">BCHS Guide</a> :: <a href="/coc">Code of Conduct</a> :: <a href="https://tilde.zone/@tildeinstitute">Mastodon</a> :: <a href="/wiki">Wiki</a> :: <a href="https://tildegit.org/institute">Git</a> :: <a href="/stats">Stats</a> + </div> + <div id="content"> + <?php + if (!isset($_GET["page"]) || !file_exists("wikipages/{$_GET['page']}.wiki")) { + ?> + + <h2>~institute wiki</h2> + <p>welcome to the tilde.institute wiki</p> + + <p>if you want to contribute, check out the + <a href="https://tildegit.org/institute/site/src/branch/master/wikipages">repository</a> and open a PR! + </p> + + <h3>Pages:</h3> + <a href="wiki.php?page=unixprotips">UNIX ProTips</a><br /> + <?php + + } else { + include("wikipages/{$_GET['page']}.wiki"); + } ?> + </div> +</div> +</body> +</html> |