MOON
Server: Apache
System: Linux ip-208-109-13-31.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els4.x86_64 #1 SMP Sat Aug 31 06:58:57 UTC 2024 x86_64
User: durgeshpandey215 (1013)
PHP: 8.1.29
Disabled: NONE
Upload Files
File: /home/durgeshpandey215/public_html/zeeroprice.skilladders.com/ajax_delExecPic.php
<? require_once "application_top.php"; 
$id = isset($_REQUEST['id'])? $_REQUEST['id'] : "";
$dbid = isset($_REQUEST['dbid'])? decode($_REQUEST['dbid']) : "";
if(!$dbid){
	exit;
}

$db->where("adminid", $dbid);
$rowu = $db->getOne('adminlogin');

if($rowu){
	if($rowu['pic'.$id]){
		$unlinkurl = 'images/users/'.$rowu["pic".$id];
		@unlink($unlinkurl);
		
		$updatedata = array(
			'pic'.$id => ''
		);
		$db->where("adminid", $dbid);
		$db->update('adminlogin',$updatedata);		
	}	
	echo " done";
}else{
	echo "not done";
}
?>