Last active
February 14, 2018 13:21
-
-
Save rizkyramadhan21/89f94dd9b954a505b975972268f40007 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* memasukan config.php, harap sesuaikan folder penyimpanan | |
untuk file-file assets dibawah, silahkan cari sendiri ya! :) */ | |
require_once '../config/config.php'; | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<meta name="description" content="Autentikasi login php dengan telegram bot"> | |
<meta name="author" content="Rizky Ramadhan"> | |
<link rel="icon" href="../../favicon.ico"> | |
<title>Autentikasi login php dengan telegram bot</title> | |
<link rel="stylesheet" href="../assets/bootstrap.min.css"> | |
<link rel="stylesheet" href="../assets/font-awesome.min.css"> | |
<link rel="stylesheet" href="../assets/signin.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<form action="login_validasi.php" class="form-signin" method="post"> | |
<h4 class="form-signin-heading"><i class="fa fa-flash"></i> Please <small>Signin</small></h4> | |
<?php | |
/* handle error: fungsinya adalah menampilkan/ menangkap error yang terjadi | |
yang di set pada script login-validasi.php | |
misalnya username atau password salah */ | |
if (isset($_GET['false'])) : ?> | |
<div class="alert alert-danger" role="alert"> | |
<small><?=base64_decode($_GET['false']);?></small> | |
</div> | |
<?php endif;?> | |
<label for="inputUsername" class="sr-only">Username</label> | |
<input type="text" name="username" class="form-control" placeholder="Username" required> | |
<label for="inputPassword" class="sr-only">Password</label> | |
<input type="password" name="password" class="form-control" placeholder="Password" required> | |
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button> | |
</form> | |
</div> | |
<script src="../assets/bootstrap.min.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment