Advertisement
irfanamir

home.php

Dec 14th, 2020
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(! isset($_SESSION['is_login']))
  4. {
  5. header('location:login.php');
  6. }
  7. ?>
  8. <!doctype html>
  9. <html lang="en">
  10. <head>
  11. <meta charset="utf-8">
  12. <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  13. <title>an nisa febrianti</title>
  14.  
  15. <link rel="canonical" href="https://getbootstrap.com/docs/4.3/examples/starter-template/">
  16.  
  17. <!-- Bootstrap core CSS -->
  18. <link href="assets/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
  19.  
  20.  
  21. <style>
  22. .bd-placeholder-img {
  23. font-size: 1.125rem;
  24. text-anchor: middle;
  25. -webkit-user-select: none;
  26. -moz-user-select: none;
  27. -ms-user-select: none;
  28. user-select: none;
  29. }
  30.  
  31. @media (min-width: 768px) {
  32. .bd-placeholder-img-lg {
  33. font-size: 3.5rem;
  34. }
  35. }
  36. </style>
  37. <!-- Custom styles for this template -->
  38. <link href="assets/css/starter-template.css" rel="stylesheet">
  39. </head>
  40. <body>
  41. <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
  42. <a class="navbar-brand" href="#">NISA</a>
  43. <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
  44. <span class="navbar-toggler-icon"></span>
  45. </button>
  46.  
  47. <div class="collapse navbar-collapse" id="navbarsExampleDefault">
  48. <ul class="navbar-nav mr-auto">
  49. <li class="nav-item active">
  50. <a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
  51. </li>
  52. </ul>
  53.  
  54.  
  55. <a href="logout.php" class="form-inline my-2 my-lg-0 btn btn-secondary">Logout</a>
  56.  
  57. </div>
  58. </nav>
  59.  
  60. <main role="main" class="container">
  61.  
  62. <div class="starter-template">
  63. <h1>Selamat Datang <?php echo $_SESSION['nama']; ?></h1>
  64. <p class="lead">Semangat terus belajarnya ya <?php echo $_SESSION['nama']; ?></p>
  65. </div>
  66.  
  67. </main><!-- /.container -->
  68. <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
  69. <script>window.jQuery || document.write('<script src="/docs/4.3/assets/js/vendor/jquery-slim.min.js"><\/script>')</script><script src="/docs/4.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-xrRywqdh3PHs8keKZN+8zzc5TX0GRTLCcmivcbNJWm2rs5C8PRhcEn3czEjhAO9o" crossorigin="anonymous"></script></body>
  70. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement