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.137.200.56


Current Path : /proc/thread-self/root/var/www/html/bnu_old/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/bnu_old/src/sendusrandpws.php

<?php
session_start();
include('sendsmsapi.php');
function sendusernameandpassword($aobj_context)
{ 
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
	$collcode = trim($aobj_context->mobj_data["collcode"]);

	$query = "SELECT s.college_code, s.sysusr, s.sysusrkey, s.fmobileno FROM s_sysdb s
	inner join college c  
	WHERE s.college_code = '{$collcode}'  
	AND s.sysusr = 'admin' and ifnull(c.fotpstatus,'') <> 'T'";	
	$results = $aobj_context->mobj_db->GetRow($query);
	if($results)
	{	
		$username = 'logisyhttp';
		$password = 'Logis986';
		$from = 'UNISOL';
		$category = '';
		$to = '9741089633';
		$text = "<span>Your college Code : 1111</span><br>
				<span>User Name : admin</span><br>
				<span>password : ".$results['sysusrkey']."<span>";
		$smsresp = sendsmaapi($username,$password,$from,$to,$text,$category);
		echo $aobj_context->mobj_output->ToJSONEnvelope($smsresp,0,"success"); 

	}else
	{
		echo $aobj_context->mobj_output->ToJSONEnvelope($smsresp,-1,"failure"); 	
	}
	
}	
?>