PHP Classes

File: forgotpass.php

Recommend this page to a friend!
  Classes of oran   Login Script with PDO   forgotpass.php   Download  
File: forgotpass.php
Role: Example script
Content type: text/plain
Description: forgot pass sample
Class: Login Script with PDO
Manage user accounts stored in a database with PDO
Author: By
Last change:
Date: 14 years ago
Size: 570 bytes
 

Contents

Class file image Download
<?php
require_once 'sys.class.php';

 
session_start();
 
/*
if(isset($_SESSION['username']))
{
   
    echo "user {$_SESSION['username']} loged in ";
}
else
{
    header('location: yourloginpage.com');
}
$SetingsChange = new ChangeSetting;
$SetingsChange->SetEmail("jjjs@sdsd.com"); // email to send new link for new pass
$SetingsChange->SendMailForNewPass();


*/
// DO NOT PLACE TOGETHER


/*
// put where to wait for vouchers (after finish send new rand pass to user mail time limit for one hour)
$SetingsChange = new ChangeSetting;
$SetingsChange->SetNewPass();

*/
?>