? GR0V Shell

GR0V shell

Linux node1.dnscloudserver.in 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64

Path : /home/yogsadhna/public_html/admin/
File Upload :
Current File : /home/yogsadhna/public_html/admin/editphoto.php

<? include "include/header.php";
if($_POST)
{
extract($_POST);
echo $new;

$obj->query("update events set `title`='$name', `description`='$isbn' where `sno`='".$_GET['eid']."'");

if($_FILES['image1']['name'])
{
$imageName=$_GET['id']."-".$_FILES['image1']['name'];
$source=$_FILES['image1']['tmp_name'];
 move_uploaded_file($source, "gallery_images/".$imageName);
 $obj->query("update events set `proImage`='$imageName' where `sno`='".$_GET['eid']."'");

}
if($_FILES['imagethum']['name'])
{
$imageName=$_GET['id']."-".$_FILES['imagethum']['name'];
$source=$_FILES['imagethum']['tmp_name'];
move_uploaded_file($source, "gallery_thum/".$imageName);
$obj->query("update events set `proThum`='$imageName' where `sno`='".$_GET['eid']."'");
}
}

if($_GET['eid'])
{ 
$results=$obj->query("select * from events where `sno`='".$_GET['eid']."'");
$rows=$obj->fetch_query($results);
}
if($_GET['st']=="success")
$msg="Successfully  Added";
if($_GET['st']=="error")
$msg="This Photo Already Exist";
?>
   <!--main page-->
   <link href="style.css" rel="stylesheet" type="text/css"><table width="100%" border="0" cellspacing="2" cellpadding="3">
           <tr>
             <td width="20%" class="border" valign="top"><? include "include/leftmenu.php" ?></td>
             <td bgcolor="#e6e4ef" id="welcomenote" valign="top">
			 <table cellpadding="5" cellspacing="0" border="0"  class="normaltext" align="center" width="80%">
			   <tr bgcolor="#FFFFFF" height="30">
			     <td align="center" colspan="2"><strong>Edit Photo</strong></td>
			   </tr>
			   <tr height="40"><td colspan="2" id="error">&nbsp;<?=$msg?></td></tr>
			   <form name="product" action="" method="post"  enctype="multipart/form-data">
			   <tr bgcolor="#EEEEEE">
			     <td class="textboxcap">Title</td>
                 <input type="hidden" name="itype" value="1" />
			     <td><input name="name"  type="text" class="inputboxp" value="<?=$rows->title?>"></td>
			   </tr>
			   <tr><td colspan="2">&nbsp;</td></tr>
               
                <tr bgcolor="#EEEEEE">
			     <td class="textboxcap">Description</td>
			     <td><textarea name="isbn" cols="50" rows="8"><?=$rows->description?></textarea> </td>
			   </tr>
			   
			   
               <tr><td colspan="2">&nbsp;</td></tr>

			   <tr bgcolor="#EEEEEE"><td class="textboxcap">Upload Image</td><td><input name="image1" type="file" class="inputboxp">
			     <br /><?=$rows->proImage ?></td></tr>     <tr><td colspan="2">&nbsp;</td></tr>

			  <tr bgcolor="#EEEEEE"><td class="textboxcap">Upload Thumbnail</td><td><input name="imagethum" type="file" class="inputboxp">
			     <br /><?=$rows->proThum ?></td></tr>     <tr><td colspan="2">&nbsp;</td></tr>
			   
			   <tr><td colspan="2" align="center"><input type="hidden" value="<?=$rows->sno?>" name="eid" />
			     <input name="submit"  type="image" src="images/Submit.jpg" class="submitbox" value="Submit"></td></tr>
			   </form>
			   </table>
			 </td>
           </tr>
        </table>
 <!--end main page-->
	  <? include "include/footer.php";?>

T1KUS90T
  root-grov@65.21.25.53:~$