internetprogrammierung/index.php
Marcel Schwarz 359e30d7a4 made login synchronous
Wegen des async aufrufs des login php scripts konnte die session nicht richtig gesetzt werden, deshalb ist der login jetzt syncron. Die Registrierung ist weiterhin asyncron.
2018-06-17 18:24:56 +02:00

51 lines
1.9 KiB
PHP

<?php
if(!isset($_SESSION)){
session_start();
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<title>FriendsBook</title>
<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">
</head>
<body>
<!-- Include the header-->
<?php include('segments/_header.php'); ?>
<div id="content">
<button id="btnCreateTan" type="button" class="btn btn-info">Erstelle Tan</button>
<br><span> Session User: <?php echo $_SESSION['user']; ?> </span>
<button type="button" class="btn btn-info">Logout</button>
</div>
<!-- Zum testen der Daten die ueber die Modals reinkommen -->
<!-- <?php include('segments/_indexTestLoginVals.php'); ?> -->
<!-- Include the entryForm-->
<?php include('segments/_entryForm.php'); ?>
<!-- Include the footer-->
<?php include('segments/_footer.html'); ?>
<!-- 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>
<!-- import contentloader-->
<script src="js/contentloader.js"></script>
</body>
</html>