Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('./global.php');
- $title = "Login";
- $error = "";
- $template->vars(array(
- 'TITLE' => $title,
- 'ERROR' => $error,
- ));
- if(isset($_POST['login'])) {
- $username = $_POST['username'];
- $password = $_POST['password'];
- if(trim($username) == "" or trim($password) == "") {
- $error = "<b>Error:</b> You have an error.";
- }
- }
- $template->display('Login page', 'login_body.html', '');
Add Comment
Please, Sign In to add comment