Mini Shell

Direktori : /home/athamevents/public_html/admin/
Upload File :
Current File : /home/athamevents/public_html/admin/profile_insert.php

<?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