PHP Classes

File: lib/compile/f2c57870308dc87f432e5912d4de6f8e322721ba.bladec

Recommend this page to a friend!
  Classes of Jorge Castro   Security One Mysql   lib/compile/f2c57870308dc87f432e5912d4de6f8e322721ba.bladec   Download  
File: lib/compile/f2c57870308dc87f432e5912d4de6f8e322721ba.bladec
Role: Example script
Content type: text/plain
Description: Example script
Class: Security One Mysql
Implement a login page for users in a MySQL table
Author: By
Last change:
Date: 1 month ago
Size: 1,833 bytes
 

Contents

Class file image Download
<?php echo $this->runChild("_head",['title'=>"Register Screen"]); ?>
<body>
<form class="form-signin" method="post">
 <div class="text-center mb-4">
 <img class="mb-4 img-fluid" src="<?php echo static::e($logo); ?>" alt="">
 <h1 class="h3 mb-3 font-weight-normal"><?php echo $title; ?></h1>
 <p><?php echo $subtitle; ?></p>
 </div>
<?php if($valid): ?>
<div class="form-label-group">
 <input type="text" id="user" name="user" class="form-control" placeholder="user" readonly value="<?php echo static::e($user); ?>">
 <label for="user">User</label>
 <?php if(@$mensaje['user']): ?><em class="text-danger"><?php echo static::e($mensaje['user']); ?></em><?php endif; ?>
</div>

 <div class="form-label-group">
 <input type="password" id="password" name="password" class="form-control" placeholder="Password" autofocus required value="<?php echo static::e(@$obj['password']); ?>">
 <label for="password">Password</label>
 <?php if(@$mensaje['password']): ?><em class="text-danger"><?php echo static::e($mensaje['password']); ?></em><?php endif; ?>
</div>

 <div class="form-label-group">
 <input type="password" id="password2" name="password2" class="form-control" placeholder="Password" required value="<?php echo static::e(@$obj['password2']); ?>">
 <label for="password2">Repeat Password</label>
 <?php if(@$mensaje['password']): ?><em class="text-danger"><?php echo static::e($mensaje['password']); ?></em><?php endif; ?>
</div>

 <button class="btn btn-lg btn-primary btn-block" name="button" value="1" type="submit">Change the password</button>
<?php endif; ?>
<p class="text-danger h4 text-center"><?php echo $message; ?></p>
<?php if(!$valid): ?>
<a href="<?php echo $home; ?>" class="btn btn-lg btn-primary btn-block" name="button" value="1" type="submit">Go to login screen</a>
<?php endif; ?>


</form>
</body>
</html>