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/translate.creativefellows.nl/views/login/login.php
<?php

	include_once __DIR__."/../inc/header.php";

?>

<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 align-middle" style="height:100%;">
					
					
					
					
					<!-- content -->
					<div class="cell auto">
							
						<div class="grid-container">
							<div class="grid-x grid-padding-x grid-margin-x align-center">
								<div class="cell small-12 medium-4 content">
									<div class="content-block">
										<?php
										
											echo '<form class="form form__login" action="login" method="post">';	
												echo '<div class="grid-x grid-padding-x form__input">';
												echo '<div class="small-12 cell">';
												
													echo '<a class="logo">Content Translator</a>';
					
													// show login error
													if ($data["loginError"])
													{	
														echo '<div class="callout primary text-center"><p>'. $data["loginError"] .'</p></div>';
													}
		
													echo '<label>Username';
														echo '<input type="text" placeholder="E-mail" value="" name="username" autocomplete="off">';
													echo '</label>';
											
													echo '<label>Password';
														echo '<input type="password" placeholder="Password" value="" name="password" autocomplete="off">';
													echo '</label>';
				
																	
													// show captcha after first failed login
													//if($data["loginAttemps"]) echo '<div class="g-recaptcha" data-sitekey="6Lf14R8UAAAAAC93GnhuvJ_XquQVSdPtvOXarktU"></div>';
						
													// show button
													echo '<button type="submit" class="button primary expanded">Login</button>';
													echo '<a href="'. $router->pathFor("password.reset")  .'" class="form__reset-link">Reset password</a>';
													
					
													
					
				
													$_SESSION["csrf_token"] = hash('sha512',(uniqid(mt_rand(), true)));
													$redirect = isset($_GET["r"]) ? htmlspecialchars($_GET["r"], ENT_QUOTES, "UTF-8") : "";
					
													echo '<input type="hidden" value="'. $redirect .'" name="redirect">';
													echo '<input type="hidden" value="'. $_SESSION["csrf_token"] .'" name="csrf">';

												echo '</div>';
												echo '</div>';
											echo '</form>';
				
											//echo password_hash("1024Kbps",PASSWORD_BCRYPT);
			
										
										?>
									</div>									
								</div>
							</div>
						</div>
						
						
					</div>
					
				</div>
			
			
			
			</div>			
		</div>
		
		
		
	</div>

</div>

<?php

	include_once __DIR__."/../inc/footer.php";

?>