HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/old-myadmin/mypdf/modify.php
<?php
if (!defined('WEB_ROOT')) {
	exit;
}
// make sure a product id exists
if (isset($_GET['pdfId']) && $_GET['pdfId'] > 0) {
	$pdfId = $_GET['pdfId'];
} else {
	// redirect to index.php if product id is not present
	header('Location: index.php');
}
// get product info
//pdf_id, pdf_title, pdf_url, add_date, modify_date 
$sql = "SELECT * FROM mypdf WHERE pdf_id = $pdfId";
$result = mysql_query($sql) or die('Cannot get product. ' . mysql_error());
$row    = mysql_fetch_assoc($result);
extract($row);
?> 
<div id="ptitle">:: Notice PDF/DOC >> Modify PDF/DOC </div>
<script type="text/javascript" src="<?php echo WEB_ROOT;?>myadmin/library/mypdf.js"> </script>
<form action="processPdf.php?action=modifyPdf&pdfId=<?php echo $pdfId; ?>" method="post" enctype="multipart/form-data" name="frmEditPDF" id="frmEditPDF" onsubmit="return validateForm2()">
 <br />
 <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable">
  <tr> 
   <td width="150" class="label">PDF/DOC Title</td>
   <td class="content"> <input name="txtTitle" type="text" class="box" id="txtName" value="<?php echo $pdf_title; ?>" size="50" > </td>
  </tr>
  <tr> 
   <td width="150" class="label">Click Link </td>
   <td class="content"> <a href="../../pdf/<?php echo $pdf_url; ?>" target="_blank">View OLD PDF/DOC </a>  </td>
  </tr>
  <tr> 
   <td width="150" class="label">Upload New PDF/DOC</td>
   <td class="content"> <input name="filePDF" type="file" id="filePDF" size="50" value="100000"><br/>
   <font color="red" />(Note: If new file selected for upload old file will get replace )</font>

   </td>
  </tr>
 </table>
 <p align="center"> 
  <input name="btnModifyProduct" type="submit" id="btnModifyProduct" value="Modify PDF" onClick="checkAddProductForm();" class="box">
  &nbsp;&nbsp;<input name="btnCancel" type="button" id="btnCancel" value="Cancel" onClick="window.location.href='index.php';" class="box">  
 </p>
</form>