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/library/mypdf.js
function validateForm()
{
	var x=document.forms["frmAddPdf"]["txtTitle"].value;
	if (x==null || x=="")
  	{
  			alert("PDF Title must be filled out");
  			return false;
  	}
  	var y=document.forms["frmAddPdf"]["filePDF"].value;
	if (y==null || y=="")
  	{
  			alert("Please Select PDF To Upload");
  			return false;
  	}
}
function validateForm2()
{
	var x=document.forms["frmEditPDF"]["txtTitle"].value;
	if (x==null || x=="")
  	{
  			alert("PDF Title must be filled out");
  			return false;
  	}
}
function uploadPdf()
{
	window.location.href = 'index.php?view=upload'; 
}

function modifyPdf(pdfId)
{
	window.location.href = 'index.php?view=modify&pdfId=' + pdfId;
}

function deletePdf(pdfId)
{
	if (confirm('Delete this PDF ?')) {
		window.location.href = 'processPdf.php?action=deletePdf&pdfId=' + pdfId;
	}
}

function deleteMyPDF(pdfId)
{
	if (confirm('Delete this image')) {
		window.location.href = 'processPdf.php?action=deleteMyPDF&pdfId=' + pdfId;
	}
}