PHP Classes

File: changepass.php

Recommend this page to a friend!
  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: 14 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()

?>