<?php require_once 'includes/QBCoref.class.php'; $qbc = new QBCoref(); $qbc->logout(); if (!empty($_POST['username']) && !empty($_POST['password'])) { $username = $_POST['username']; $password = $_POST['password']; $result = $qbc->login($username, $password); if ($result) { header("Location: index.php"); } else { $error = "<strong>Invalid login</strong>. Please try again."; } } ?> <!doctype html> <html lang="us"> <head> <meta charset="utf-8"> <title>Coreference Tool - Login</title> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <link href="css/bootstrap-theme.min.css" rel="stylesheet" media="screen"> <link href="css/coref.css" rel="stylesheet"> <script src="js/jquery-1.10.2.js"></script> <script src="js/bootstrap.min.js"></script> <style type="text/css"> body { padding-top: 60px; padding-bottom: 40px; }