Skip to content

Instantly share code, notes, and snippets.

/HTML

Created September 9, 2016 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0673fa8754a481e83174c2ca0d7cbab8 to your computer and use it in GitHub Desktop.
Save anonymous/0673fa8754a481e83174c2ca0d7cbab8 to your computer and use it in GitHub Desktop.
<!DOCTYPE HTML>
<?xml version="1.0" encoding="UTF-8"?>
<?php
include "db/db.php";
session_start();
error_reporting(E_ALL & ~E_NOTICE);
$page = isset($_GET['site']) ? $_GET['site'] : null;
switch($page) {
case 'home':
$page = ('pages/home.php');
$site = ('home');
break;
case 'about':
$page = ('pages/about.php');
$site = ('about');
break;
case 'cv':
$page = ('pages/cv.php');
$site = ('cv');
break;
case 'twitch':
$page = ('pages/twitch.php');
$site = ('twitch');
break;
case 'games':
$page = ('pages/games.php');
$site = ('games');
break;
case 'contact':
$page = ('pages/contact.php');
$site = ('contact');
break;
default:
$page = ('pages/home.php');
break;
}
?>
<html>
<head>
<title>Förnman Efternamn</title>
<meta charset="ISO-8859-1" />
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTf-8" />
<link href="css/stylesheet.css" type="text/css" rel="stylesheet"/>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<meta charset="UTF-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="" />
</head>
<body>
<header>
<div class="wrapper">
<h1><a href="?site=<?php echo $site; ?>" style="text-decoration: none;"> </h1></a>
<b><a href="?site=<?php echo $site; ?>" style="text-decoration: none;">Screenwriter / Web developer / Gamer / Streamer</b></a>
<div class="menu">
<ul>
<li><a href="?site=home">Home</a></li>
<li><a href="?site=cv">Cv</a></li>
<li><a href="?site=about">About</a></li>
<li><a href="?site=contact">Contact</a></li>
</ul>
</div>
</header>
<div id="content">
<p><?php include $page; ?></p></div>
</div>
<div class="footer">
<div class="fp">
<p>© Site 2016.
<a style="float: right; margin-right: 2%;" href="">Instagram</a>
<a style="float: right; margin-right: 2%;" href="?site=twitch">Twitch</a>
<a style="float: right; margin-right: 2%;" href="">Youtube</a>
<a style="float: right; margin-right: 2%;" href="">Twitter</a>
</p>
</div>
</div>
<script type="text/javascript" id="cookieinfo"
src="//cookieinfoscript.com/js/cookieinfo.min.js">
</script>
<div class="clearfix"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment