PHP Classes

File: reset_password.php

Recommend this page to a friend!
  Classes of Roman Shneer  >  PHP Web Application Firewall  >  reset_password.php  >  Download  
File: reset_password.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web Application Firewall
Block malicious requests using a white list
Author: By
Last change:
Date: 5 years ago
Size: 1,603 bytes


Class file image Download
 * script for reset password
 * License: GNU
 * Copyright 2016 WebAppFirewall RomanShneer <>

$WU=new WafUser;

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
<?php require_once "include/head.php"; ?>
        <div class='header'></div>
        <?php if(isset($_GET['pass_changed'])):?>
<h1 class='title'>Password Successfully changed</h1>
                    <div class='box'>
                            <center>Please login: <a href="login.php" class="add_user">Click here</a></center>
        <?php else:?>
<?php if($user):?>
<h1 class='title'>Change Your Password</h1>
                    <div class='box'>
                            <?php if(!empty($WU->error))echo '<div style="color:red">'.$WU->error.'</div>';?>
<form action="" method='POST'>
                                            <input type='password' name='pass' placeholder='New Password' class='inset'><br>
                                            <input type='password' name='pass1' placeholder='Confirm Password' class='inset'><br>
                            <input type='submit' value='change' id="change_button">
                    <?php else:?>
<h1 class='title'>Guru you never know</h1>
                    <?php endif;?>
<?php endif;?>


For more information send a message to info at phpclasses dot org.