HEX
Server: Apache
System: Linux v38079.2is.nl 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: democfellows (10015)
PHP: 8.1.34
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/creativefellows.nl/mygeomil.creativefellows.nl/03072023/views/login/view.reset.php
<?php

	echo $this->fetch('partials/header.inc.php', [
		"meta_title" => $page->metaTitle(),
		"meta_description" => $page->metaDescription(),
	]);

?>

<div class="grid-y grid-frame">
		
	<div class="cell auto">
		
		
		<div class="grid-y grid-frame">
			<div class="cell auto cell-block-y">
				
				<div class="grid-x full-height">
							
					
					<!-- content -->
					<div class="cell auto">
							
						<div class="grid-container full-height">
							<div class="grid-x grid-padding-x grid-margin-x align-center align-middle full-height">
								<div class="cell small-12 medium-5">
									<div class="page-content">
										

										<?php
											
											/*
											 * Login form
											 */
										
											//echo password_hash("test",PASSWORD_BCRYPT);
																						
											echo '<form class="form form__login" action="/reset" method="post">';
												
												echo '<h1 class="geomil-logo">'. $navigation->getLogo() .'</h1>';
						
												// show login error
												if ($loginError) echo '<div class="callout primary text-center"><p>'. $loginError .'</p></div>';
												
												echo '<label>Username';
												  echo '<input type="text" name="username" placeholder="E-mail">';
												echo '</label>';

												// session token
												$_SESSION["csrf_token"] = hash('sha512',(uniqid(mt_rand(), true)));
												echo '<input type="hidden" value="'. $_SESSION["csrf_token"] .'" name="csrf">';
						
												echo '<button type="submit" class="button secondary expanded">Reset Password</button>';
												
						
											echo '</form>';

										?>

									</div>
									
									
								</div>
							</div>
						</div>
						
					</div>
					
				</div>
				
			
			
			
			</div>			
		</div>
		
		
		
	</div>

</div>

<?php

	echo $this->fetch('partials/footer.inc.php');

?>