Mini Shell
<?php include 'connection.php'; ?>
<?php
$id=$_REQUEST['id'];
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$user=$_REQUEST['user'];
$pass=$_REQUEST['pass'];
$image = $_FILES['x']['name'] ;
if($image)
{
$temp=$_FILES["x"]["tmp_name"];
move_uploaded_file("$temp","admin_pic/$image");
$reg=mysql_query("update reg set pic='$image',name='$name',email='$email',uname='$user',pass='$pass' where id='$id'");
}
else
{
$reg=mysql_query("update reg set name='$name',email='$email',uname='$user',pass='$pass' where uname='$uname'");
}
if($reg==1)
{
?>
<script type="text/javascript">
window.location.href="profile_edit.php";
</script>
<?php
}
else
{
?>
<script type="text/javascript">
alert("Process Not Completed");
window.location.href="profile_edit.php";
</script>
<?php
}
?>
Zerion Mini Shell 1.0