<commit_before><?php
/**
 * Created by PhpStorm.
 * User: ShinKenDo
 * Date: 15.09.14
 * Time: 19:11
 */


$session_user_id = 2;
$today = $app['today'];
$btnUrl = __BASE_URL__.'User/index';
$btnText = 'Back to the List';
$submitUrl = __BASE_URL__.'User/add'
?>
<main class="container">
	<header class="jumbo-narrow col-lg-4">
		<h1>
			Create New User
		</h1>
		<p>
			Password will be set afterwards
		</p>
		<p>
			<a href="<?php pu($btnUrl);?>" class="btn btn-primary btn-lg" role="button"><?php ph($btnText);?> &raquo;</a>
		</p>
	</header>
	<article id='postView' class="col-lg-8">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3>Write a Post</h3>
			</div>
			<div class="panel-body">
				<form role="form" class="" accept-charset="UTF-8" action="<?php pu($submitUrl); ?>" method="post">
					<input type="hidden" id="created" name="created" value="<?php ph($today); ?>">
					<input type="hidden" name="role" value="3">
					<div class="form-group">
						<label for="subject">Name</label>
						<input type="text" class="form-control" name="name" id="name" placeholder="Human readable name">
					</div>
					<div class="form-group">
						<label for="subject">Email</label>
						<input type="email" class="form-control" name="email" id="email" placeholder="<EMAIL>">
					</div>
					<div class="form-group">
						<label for="password">Password</label>
						<input type="password" class="form-control" name="password" id="password" size="32">
					</div>
					<div class="form-group">
						<label for="password-check">Retype Password</label>
						<input class="form-control" type="password" name="password-check" id="password-check"  size="32">
					</div>
					<div class="form-inline">
							<label class="radio-inline">
								<input type="radio" name="role" id="role1" value="1"> Admin
							</label>
							<label class="radio-inline">
								<input type="radio" name="role" id="role2" value="2"> Author
							</label>
							<label class="radio-inline">
								<input type="radio" name="role" id="role3" value="3"> Guest
							</label>
					</div>
					<button type="submit" id='submit' class="btn btn-default">Submit</button>
				</form>
			</div>
			<div class="panel-footer">
				created Today<commit_msg>Implemented user registration from scratch<commit_after><?php
/**
 * Created by PhpStorm.
 * User: ShinKenDo
 * Date: 15.09.14
 * Time: 19:11
 */


$session_user_id = 2;
$today = $app['today'];
$btnUrl = __BASE_URL__.'Post/index';
$btnText = 'Back to the List';
$submitUrl = __BASE_URL__.'User/add';
$name = '';
$email = '';
$alert = false;
if(isset($_POST) && !empty($_POST)){
	$name = $_POST['name'];
	$email = $_POST['email'];
	$alert = true;
}
?>
<main class="container">
	<header class="jumbo-narrow col-lg-4">
		<h1>
			Create New User
		</h1>
		<p>
			You will be able to write to this message board.
		</p>
		<p>
			<a href="<?php pu($btnUrl);?>" class="btn btn-primary btn-lg" role="button"><?php ph($btnText);?> &raquo;</a>
		</p>
	</header>
	<article id='postView' class="col-lg-8">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h3>Your account settings</h3>
			</div>
			<div class="panel-body">
				<form role="form" class="" accept-charset="UTF-8" action="<?php pu($submitUrl); ?>" method="post">
					<input type="hidden" id="created" name="created" value="<?php ph($today); ?>">
					<input type="hidden" name="role" value="3">
					<div class="form-group">
						<label for="subject">Name</label>
						<input type="text" class="form-control"
						       name="name" id="name"
						       value="<?php ph($name); ?>"
						       placeholder="<NAME>">
					</div>
					<div class="form-group">
						<label for="subject">Email</label>
						<input type="email" class="form-control"
						       name="email" id="email"
						       value="<?php ph($email); ?>"
						       placeholder="<EMAIL>">
					</div>
					<div class="form-group">
						<label for="password">Password</label>
						<input type="password" class="form-control" name="password" id="password" size="32">
					</div>
					<div class="form-group">
						<label for="password-check">Retype Password</label>
						<input class="form-control" type="password" name="password-check" id="password-check"  size="32">
					</div>
					<button type="submit" id='submit' class="btn btn-default">Submit</button>
				</form>
			</div>
			<div class="panel-footer">
				<div class="row">
					<div class="col-sm-4">
						<small><strong>Created:</strong><?php ph($today); ?></small>
					</div>
					<div class="col-sm-4">
						<small><strong>Modified:</strong><?php ph('Today'); ?></small>
					</div>
				</div>
{'fraction_non_alphanumeric': 0.21081890100491768, 'fraction_numerical': 0.011545862732520847, 'mean_word_length': 3.498076923076923, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5687526', 'n_tokens_mistral': 1988, 'n_tokens_neox': 1590, 'n_words': 347}