kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
dmcschool.ac.in
/
dmcadmin
/
Upload FileeE
HOME
<?php //EncAjax.php session_start(); require_once("../includes/settings.php"); require_once("../includes/database.php"); require_once("../includes/functions/common.php"); require_once("../includes/classes/db.cls.php"); require_once("../includes/classes/sitedata.cls.php"); $db = new SiteData(); //loginValidate(); $id = isset($_REQUEST['id'])?(int)$_REQUEST['id']:"0"; $sql = "SELECT tender_file FROM ".TENDER_PDF." where pid='$id'"; $res = $db->getData($sql); $tender_file = $res['oDATA'][0]['tender_file']; if($res['NO_OF_ITEMS']>0) { $tender_file = $res['oDATA'][0]['tender_file']; $file_path = "../tenders/".$tender_file; if(is_file($file_path)) { @unlink($file_path); } $sql_1 = "DELETE FROM ".TENDER_PDF." where pid='$id'"; $res_1 = $db->deleterecord($sql_1); } ?>