palm-paste/index.php

46 lines
1.3 KiB
PHP
Raw Normal View History

2016-06-08 22:15:30 +01:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Palm-Paste Index</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<!-- NavBar -->
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">Palm-Paste</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="#">Page 1</a></li>
<li><a href="#">Page 2</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"><span class="glyphicon glyphicon-user"></span> Sign Up</a></li>
<li><a href="#"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
</ul>
</div>
</nav>
<!-- Content -->
<?php
if (isset($_GET["page"])){
if($_GET["page"] == "create"){
include "NewPaste.php";
2016-06-09 09:22:48 +01:00
} else if (is_numeric($_GET["page"])) {
$id = $_GET["page"];
include "ViewPaste.php";
2016-06-08 22:15:30 +01:00
} else {
echo "The page does not exist";
}
} else {
include "NewPaste.php";
}
?>
</body>
</html>