Source for file modpass.php
Documentation is available at modpass.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
//////////// Check Inclusion de pages ////////////
include_once("../lib/lib_common.php");
//////////// Check Droits utilisateur ////////////
if(isset ($_POST['id'])) $id= $_POST['id'];
if(isset ($_GET['id'])) $id= $_GET['id'];
$result= $sql_object->DBSelect($requete);
if($result== 0 || count($result)!= 1) exit;
$user_email= $result[0]['profile_email'];
$user_login= $result[0]['user_login'];
$new_pass= $user_object->GetNewPassword();
$result= $user_object->UpdateUserPassword($id, $new_pass, $sql_object);
/** include envoi de mail */
$todo_mail= 'change_pass';
include_once(themePath('../user/mail_actions.php'));
include_once('../mail/template.php');
$link_confirm= "confirm.php?rub=". $rub. "&todo=". $todo;
if($result) header("Location: ". $link_confirm);
|