0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.226.52.26


Current Path : /proc/thread-self/root/var/www/html/kus/custom_src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/kus/custom_src/execute_query.php

<?php 
function saveExcuteUserDefinedQuery($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);	
	$execute_query= (trim($aobj_context->mobj_data["execute_query"]));	
	
	$arr_execute_query=explode(';',$execute_query);
	
	foreach($arr_execute_query as $k=>$v)
		{
			if(!empty($v))
			{
			$lobj_execute_query = $aobj_context->mobj_db->Execute($v);
			 
   			}							
		 }
		 
		if($lobj_execute_query)
			{
				$rdata = "Query Executed Successfully.";
				print_r($aobj_context->mobj_output->ToJSONEnvelope($rdata,0,"success"));
				return $rdata;        
			 }
			else
			{
				$rdata = "Execution Failed.";
				print_r($aobj_context->mobj_output->ToJSONEnvelope($rdata,-1,"Failure"));  						
			    return $rdata;
			}   
}			
?>