Login   Register  
PHP Classes
elePHPant
Icontem

File: changepass.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of oran  >  Login Script with PDO  >  changepass.php  >  Download  
File: changepass.php
Role: Example script
Content type: text/plain
Description: sampe change pass usage
Class: Login Script with PDO
Manage user accounts stored in a database with PDO
Author: By
Last change:
Date: 5 years ago
Size: 365 bytes
 

Contents

Class file image Download
<?php
 session_start
();
if(isset(
$_SESSION['username']))
{
    
    echo 
"user {$_SESSION['username']} loged in  ";
}
else
{
    
header('location: yourloginpage.com');
}


require_once 
'sys.class.php';
$SetingsChange = new ChangeSetting;
$SetingsChange->SetOldPass("dsfsdfsdfg");
$SetingsChange->SetPassword("newpassssss"); // set new pass 
$SetingsChange->ChangePass()

?>