<commit_before><?php
//instantiate if needed
include("auth.php");
include('logger.php');
$log = new logmein();
$log->encrypt = true; //set encryption


if($_REQUEST['action'] == 'create'){
    if($log->create("ownership", $_POST['username'], $_POST['password'], $_POST['email']) == true){
        //do something on successful creation
        
        // logger('login');

			header('Location: ./');
    }else{
        //do something on FAILED login
		
			echo '	<!DOCTYPE html>
					<html>
						<head>
								<title>openHTML - Create Account</title>
								<link rel="stylesheet" href="css/style.css" type="text/css" />
						</head>
						<body>
							<div id="control"><div class="control"><div class="buttons"><div id="auth"><span id="logo">openHTML</span></div></div></div></div><div id="bin" class="stretch">

								<form name="createformname" method="post" id="createformname" class="loginformid" enctype="application/x-www-form-urlencoded" action="/openhtml/create.php">
										<h1>Create Account</h1>
										<div><label for="username">Username (required)</label>
										<input name="username" id="username" type="text" maxlength="20" autofocus></div>
										<div><label for="password">Password (required)</label>
										<input name="password" id="password" type="password"></div>
										<div><label for="email">Email (optional)</label>
										<input name="email" id="email" type="text"></div>
										<input name="action" id="action" value="create" type="hidden">
										<div><input name="submit" id="submit" value="Create Account" type="submit"></div>
									</form>
									
									<div class="warning">Please try again.</div>

						</body>
				</html>
			';
			
			die();
    }
}




?>


<!DOCTYPE html>
	<html>
		<head>
				<title>openHTML - Create Account</title>
				<link rel="stylesheet" href="css/style.css" type="text/css" />
		</head>
		<body>
			<div id="control"><div class="control"><div class="buttons"><div id="auth"><span id="logo">openHTML</span></div></div></div></div><div id="bin" class="stretch">

				<form name="createformname" method="post" id="createformname" class="loginformid" enctype="application/x-www-form-urlencoded" action="/openhtml/create.php">
						<h1>Create Account</h1>
						<div><label for="username">Username (required)</label>
						<input name="username" id="username" class="required" type="text" maxlength="20" autofocus></div>
						<div><label for="password">Password (required)</label>
						<input name="password" id="password" class="required" type="password"></div>
						<div><label for="email">Email (optional)</label>
						<input name="email" id="email" type="text"></div>
						<input name="action" id="action" value="create" type="hidden">
						<div><input name="submit" id="submit" value="Create Account" type="submit"></div>
					</form>
				
		</body>
</html>

<commit_msg>update create account page<commit_after><?php
//instantiate if needed
include("auth.php");
include('logger.php');
$log = new logmein();
$log->encrypt = true; //set encryption


if($_REQUEST['action'] == 'create'){
    if($log->create("ownership", $_POST['username'], $_POST['password'], $_POST['email']) == true){
        //do something on successful creation
        
        // logger('login');

			header('Location: ./');
    }else{
        //do something on FAILED login
		
			echo '	<!DOCTYPE html>
					<html>
						<head>
								<title>openHTML - Create Account</title>
								<link rel="stylesheet" href="css/style.css" type="text/css" />
						</head>
						<body>
							<div id="control"><div class="control"><div class="buttons"><div id="auth"><span id="logo">openHTML</span></div></div></div></div><div id="bin" class="stretch">

								<form name="createformname" method="post" id="createformname" class="loginformid" enctype="application/x-www-form-urlencoded" action="/openhtml/create.php">
										<h1>Create Account</h1>
										<div><label for="username">Username (required)</label>
										<input name="username" id="username" type="text" maxlength="20" autofocus></div>
										<div><label for="password">Password (required)</label>
										<input name="password" id="password" type="password"></div>
										<div><label for="email">Email (optional)</label>
										<input name="email" id="email" type="text"></div>
										<input name="action" id="action" value="create" type="hidden">
										<div><input name="submit" id="submit" value="Create Account" type="submit"></div>
									</form>
									<p style="text-align: center;"><a href="./"  style="color: #888;">Already Have Account</a></p>
									<div class="warning">Please try again.</div>

						</body>
				</html>
			';
			
			die();
    }
}




?>


<!DOCTYPE html>
	<html>
		<head>
				<title>openHTML - Create Account</title>
				<link rel="stylesheet" href="css/style.css" type="text/css" />
		</head>
		<body>
			<div id="control">
				<div class="control">
					<div class="buttons">
						<div id="auth">
							<span id="logo">openHTML</span>
						</div>
					</div>
					</div>
				</div>
			<div id="bin" class="stretch">

				<form name="createformname" method="post" id="createformname" class="loginformid" enctype="application/x-www-form-urlencoded" action="/openhtml/create.php">
						<h1>Create Account</h1>
						<div>
							<label for="username">Username (required)</label>
							<input name="username" id="username" class="required" type="text" maxlength="20" autofocus>
						</div>
						<div>
							<label for="password">Password (required)</label>
							<input name="password" id="password" class="required" type="password">
						</div>
						<div>
							<label for="email">Email (optional)</label>
							<input name="email" id="email" type="text">
						</div>
						<input name="action" id="action" value="create" type="hidden">
						<div><input name="submit" id="submit" value="Create Account" type="submit"></div>
			</form>
					<p style="text-align: center;"><a href="./" style="color: #888;">Already Have Account</a></p>
				
				</div>
		</body>
</html>


{'fraction_non_alphanumeric': 0.2035485460818137, 'fraction_numerical': 0.0036142598981435846, 'mean_word_length': 3.4405543398978846, 'pattern_counts': {'":': 0, '<': 194, '<?xml version=': 0, '>': 198, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3452259', 'n_tokens_mistral': 2458, 'n_tokens_neox': 1854, 'n_words': 385}