Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: b4bced723d
Fetching contributors…

Cannot retrieve contributors at this time

132 lines (118 sloc) 4.364 kB
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
require_once 'classes/Auth.class.php';
session_start();
$auth = new Auth();
if (isset($_POST['email']) && isset($_POST['password'])) {
if ($auth->createUser($_POST['email'], $_POST['password'])) { ?>
<div class="alert alert-success">
<a class="close" data-dismiss="alert" href="#">×</a>
<h4 class="alert-heading">You're Registered!</h4>
Account Created, please check your email for verification information
</div>
<?php }
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Shorten It - Register</title>
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="./css/bootstrap.css" rel="stylesheet">
<style type="text/css">
/* Override some defaults */
html, body {
background-color: #eee;
}
body {
padding-top: 40px;
}
.container {
width: 300px;
}
/* The white background content wrapper */
.container > .content {
background-color: #fff;
padding: 20px;
margin: 0 -20px;
-webkit-border-radius: 10px 10px 10px 10px;
-moz-border-radius: 10px 10px 10px 10px;
border-radius: 10px 10px 10px 10px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.register-form {
margin-left: 65px;
}
legend {
margin-right: -50px;
font-weight: bold;
color: #404040;
}
</style>
<script type="text/javascript" src="./js/jquery-1.7.2.min.js"></script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.php">Shorten It</a>
<div class="nav-collapse">
<ul class="nav">
<li><a href="index.php">Home</a></li>
<li><a href="index.php#about">About</a></li>
<li><a href="index.php#contact">Contact</a></li>
<li ><a href="login.php">Login</a></li>
<li class="active"><a href="register.php">Register</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="row">
<div class="register-form">
<h2>Register</h2>
<form name="registerForm" action="register.php" method="post">
<fieldset>
<div class="clearfix">
<input type="text" placeholder="Email" name="email">
</div>
<div class="clearfix">
<input type="password" placeholder="Password" name="password">
</div>
<button class="btn btn-primary" type="submit">Register</button>
</fieldset>
</form>
</div>
</div>
</div>
</div> <!-- /container -->
<script type="text/javascript">
$(".alert").alert('close')
</script>
<script src="./js/bootstrap/bootstrap-transition.js"></script>
<script src="./js/bootstrap/bootstrap-alert.js"></script>
<script src="./js/bootstrap/bootstrap-modal.js"></script>
<script src="./js/bootstrap/bootstrap-dropdown.js"></script>
<script src="./js/bootstrap/bootstrap-scrollspy.js"></script>
<script src="./js/bootstrap/bootstrap-tab.js"></script>
<script src="./js/bootstrap/bootstrap-tooltip.js"></script>
<script src="./js/bootstrap/bootstrap-popover.js"></script>
<script src="./js/bootstrap/bootstrap-button.js"></script>
<script src="./js/bootstrap/bootstrap-collapse.js"></script>
<script src="./js/bootstrap/bootstrap-carousel.js"></script>
<script src="./js/bootstrap/bootstrap-typeahead.js"></script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.