2018-06-17 18:24:56 +02:00
|
|
|
<?php
|
|
|
|
if(!isset($_SESSION)){
|
|
|
|
session_start();
|
|
|
|
}
|
|
|
|
?>
|
2018-05-25 20:59:06 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<!-- Required meta tags -->
|
2018-05-26 13:11:57 +02:00
|
|
|
<title>FriendsBook</title>
|
2018-05-25 20:59:06 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
|
|
|
|
<!-- Bootstrap CSS -->
|
|
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
|
2018-06-10 19:24:56 +02:00
|
|
|
|
2018-06-11 17:56:22 +02:00
|
|
|
</head>
|
2018-06-10 19:24:56 +02:00
|
|
|
|
|
|
|
|
2018-06-11 17:56:22 +02:00
|
|
|
<body>
|
|
|
|
<!-- Include the header-->
|
2018-06-17 18:24:56 +02:00
|
|
|
<?php include('segments/_header.php'); ?>
|
2018-06-17 20:12:19 +02:00
|
|
|
<?php #include('segments/_indexTestLoginVals.php'); ?><!-- For forms testing -->
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$page = '_404.html';
|
|
|
|
$p = '';
|
|
|
|
if(isset($_GET['page'])){$p = $_GET['page'];}
|
|
|
|
|
|
|
|
if($p == '' || $p == 'home'){$page = '_home.html';}
|
|
|
|
if($p == 'newEntry'){$page = '_entryForm.php';}
|
|
|
|
if($p == 'myFriendsBook'){$page = '_myFriendsBook.html';}
|
|
|
|
if($p == 'login'){$page = '_login.php';}
|
|
|
|
if($p == 'register'){$page = '_register.php';}
|
|
|
|
|
2018-06-17 20:23:34 +02:00
|
|
|
require_once('segments/'.$page);
|
2018-06-17 20:12:19 +02:00
|
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-06-10 19:24:56 +02:00
|
|
|
|
2018-06-10 20:38:33 +02:00
|
|
|
<div id="content">
|
2018-06-11 17:56:22 +02:00
|
|
|
<button id="btnCreateTan" type="button" class="btn btn-info">Erstelle Tan</button>
|
2018-06-17 18:24:56 +02:00
|
|
|
<br><span> Session User: <?php echo $_SESSION['user']; ?> </span>
|
|
|
|
<button type="button" class="btn btn-info">Logout</button>
|
|
|
|
|
2018-06-10 19:24:56 +02:00
|
|
|
</div>
|
|
|
|
|
2018-06-11 17:56:22 +02:00
|
|
|
<!-- Zum testen der Daten die ueber die Modals reinkommen -->
|
2018-06-11 17:44:54 +02:00
|
|
|
|
2018-06-17 20:12:19 +02:00
|
|
|
|
2018-05-25 20:59:06 +02:00
|
|
|
|
2018-05-26 13:49:29 +02:00
|
|
|
<!-- Include the footer-->
|
|
|
|
<?php include('segments/_footer.html'); ?>
|
2018-06-11 17:56:22 +02:00
|
|
|
|
2018-05-25 20:59:06 +02:00
|
|
|
<!-- Optional JavaScript -->
|
|
|
|
|
|
|
|
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
|
|
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
|
|
|
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
|
2018-05-26 14:33:15 +02:00
|
|
|
|
|
|
|
<!-- import contentloader-->
|
|
|
|
<script src="js/contentloader.js"></script>
|
2018-05-25 20:59:06 +02:00
|
|
|
</body>
|
|
|
|
</html>
|