Advertisement
Guest User

Login Sistem index.php

a guest
May 26th, 2018
5,248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.35 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4.  
  5. if (empty($_SESSION['username'])){
  6.  
  7.     header('location:login.php');
  8. }
  9. else
  10. {
  11. ?>
  12. <!DOCTYPE html>
  13. <html>
  14. <head>
  15.     <title>CRUD Modal Bootstrap</title>
  16.     <link rel="stylesheet" type="text/css" href="style/bootstrap.css">
  17. </head>
  18. <body>
  19.  
  20.  
  21. <div class="container" style="margin-top:8%">
  22.     <div class="row">
  23.         <div class="col-md-4 col-md-offset-4">
  24.             <p>
  25.                 <center>
  26.                     <h2>Sistem Login Sederhana</h2>
  27.                     Oleh : <a href="https://www.facebook.com.pendeta.mokong" target="_blank">Rully Studio</a>
  28.                    
  29.                 </center>
  30.             </p>
  31.             <br>
  32.                  <div class="login-panel panel panel-default">
  33.                     <div class="panel-body">
  34.                        Selamat Datang <?php echo $_SESSION['username'] ; ?>
  35.                        <p>
  36.                             Ini adalah halaman Rahasia..
  37.                        </p>
  38.                        <a class="btn btn-link pull-right" href="logout.php">Logout</a>
  39.                     </div>
  40.                 </div>
  41.         </div>
  42.     </div>
  43.     <p style="margin-top:5%;">
  44.     <center>Copyright @ 2018 by : <a href="https://www.facebook.com.pendeta.mokong" target="_blank">Rully Studio</a> All rights reserved.</center>
  45.     </p>
  46. </div>
  47.     <script type="text/javascript" src="style/jquery.js"></script>
  48.     <script type="text/javascript" src="style/bootstrap.js"></script>  
  49.     <script type="text/javascript" src="script.js"></script>   
  50. </body>
  51. </html>
  52.  
  53. <?php
  54. }
  55. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement