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 : 3.144.242.20


Current Path : /var/www/html/pgadm/admin-src/
Upload File :
Current File : /var/www/html/pgadm/admin-src/admconfirmation.php

<?php
function loaddegcreateuser($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
	
	
	
	
	$query1 = "select e.fdegree,e.fdescpn from masuser m 
  inner join entdeg e on instr ( m.fdegree,concat (e.fdegree,'*'))>0
  where fmobileno='{$_SESSION['MOBILE']}'";
  $result1 = $aobj_context->mobj_db->GetAll($query1);
  // var_dump($result1);
  // var_dump($query1);
	if($result1)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
}

function loadstuddetadm($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
	
	$deg = stripslashes($aobj_context->mobj_data["deg"]);
	$status = stripslashes($aobj_context->mobj_data["status"]);
	// var_dump($deg,$status);
	if($status == 'Admitted'){
		$query1 = "select e.fappno,s.fname,e.fcollcode,e.frank,e.freserve,e.fallotno,date_format(e.fallotdate, '%d/%m/%Y')as fallotdate,e.fcatcode,e.freserve,ifnull(e.fcollconf, '') as fcollconf
	from entseatallot e 
	inner join entstudadm s on e.fappno = s.fappno
	where fdegree = '{$deg}' and fcollcode = '{$_SESSION['FCOLLCODE']}' and fcollconf = 'T'
	order by fname";
  $result1 = $aobj_context->mobj_db->GetAll($query1);
	}else{
		$query1 = "select e.fappno,s.fname,e.fcollcode,e.frank,e.freserve,e.fallotno,date_format(e.fallotdate, '%d/%m/%Y')as fallotdate,e.fcatcode,e.freserve,ifnull(e.fcollconf, '') as fcollconf
	from entseatallot e 
	inner join entstudadm s on e.fappno = s.fappno
	where fdegree = '{$deg}' and fcollcode = '{$_SESSION['FCOLLCODE']}' and ifnull(fcollconf,'') <> 'T'
	order by fname";
  $result1 = $aobj_context->mobj_db->GetAll($query1);
	}
	
	if($deg && $status == ""){
	$query1 = "select e.fappno,s.fname,e.fcollcode,e.frank,e.freserve,e.fallotno,date_format(e.fallotdate, '%d/%m/%Y')as fallotdate,e.fcatcode,e.freserve,ifnull(e.fcollconf, '') as fcollconf
	from entseatallot e 
	inner join entstudadm s on e.fappno = s.fappno
	where fdegree = '{$deg}' and fcollcode = '{$_SESSION['FCOLLCODE']}'
	order by fname";
	$result1 = $aobj_context->mobj_db->GetAll($query1);
	}
  // var_dump($result1);
  // var_dump($query1);
	if($result1)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
}


function studconf($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  

	$admitted = stripslashes($aobj_context->mobj_data["admitted"]);
	$fappno = stripslashes($aobj_context->mobj_data["fappno"]);
	
	// var_dump($admitted);
  
	$query1 = "update entseatallot set fcollconf = '{$admitted}' ,
	fcollconfdate = now(), fcollconfusr ='{$_SESSION['USERNAME']}'
		where fappno = '{$fappno}'";
		$result1 = $aobj_context->mobj_db->Execute($query1);
		// $result1 = $aobj_context->mobj_db->GetAll($query1);
	// var_dump($query1);
	// var_dump($result1);
	if($result1)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($obj,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
}



function loadstudconf($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  

	// $admitted = stripslashes($aobj_context->mobj_data["admitted"]);
	$fappno = stripslashes($aobj_context->mobj_data["fappno"]);
	
	// var_dump($fappno);
  
	$query1 = "select * from entseatallot  
		where fappno = '{$fappno}'";
		// $result1 = $aobj_context->mobj_db->Execute($query1);
		$result1 = $aobj_context->mobj_db->GetAll($query1);
	// var_dump($query1);
	// var_dump($result1);
	if($result1)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
}


function printstatusreportadm($aobj_context)
{
	session_start();
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);

  $query = "select ifnull(fappno,'') as fappno, ifnull(ffinsub,'F') as ffinsub, 
  ifnull(fpaystatus,'') as fpaystatus from entstudadm 
  where fmobileno = '{$_SESSION['MOBILE']}'";

	$obj =  $aobj_context->mobj_db->GetRow($query); 
	// var_dump($obj);
  $row['fappno'] = $obj['fappno'];
  $row['ffinsub'] = $obj['ffinsub'];
  $row['fpaystatus'] = $obj['fpaystatus'];
	$row['error_code'] = '0';
	if($obj['fappno'] == '')
	{
		$row['error_code'] = '-1';
	}
	echo json_encode($row);
}