Mini Shell
<?php include 'connection.php'; ?>
<?php
$name=$_REQUEST['name'];
$cat=$_REQUEST['cat'];
$subcat=$_REQUEST['subcat'];
$youtubename=$_REQUEST['youtubename'];
$date=date("Y/m/d");
$image=$_FILES["x"]["name"];
if($image)
{
$temp=$_FILES["x"]["tmp_name"];
move_uploaded_file("$temp","video_pic/$image");
$reg=mysql_query("insert into video values('','$name','$date','','$image','0','$cat','$subcat') ");
}
else
{
$reg=mysql_query("insert into video values('','$name','$date','$youtubename','','1','$cat','$subcat') ");
}
if($reg==1)
{
?>
<script type="text/javascript">
window.location.href="video_add.php";
</script>
<?php
}
else
{
?>
<script type="text/javascript">
alert("Not complete");
window.location.href="video_add.php";
</script>
<?php
}
?>
Zerion Mini Shell 1.0