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


Current Path : /proc/thread-self/root/var/www/oasis/src/
Upload File :
Current File : //proc/thread-self/root/var/www/oasis/src/userpasswordreset.php

<?php
function passwordresetforuser($aobj_context){
    // session_start();
    $collcode=$_SESSION['collcode'];
    // var_dump($college_code);
    // die();

    $user = $aobj_context->mobj_data["user"];
  $query="SELECT IFNULL(college_code,'')AS college_code, IFNULL(sysusr,'')AS username,ifnull(real_name,'') as realname, 
  IFNULL(email_id,'')AS emailid FROM s_sysdb where college_code='{$collcode}'";
  
 $results=$aobj_context->mobj_db->GetAll($query);


 if($results){
     $data['data'] = $results;
     echo $aobj_context->mobj_output->ToJSONEnvelope($data, 0,"success"); 
 }else{
     $data['data'] = "something went wrong";
     echo $aobj_context->mobj_output->ToJSONEnvelope($data, -1,"fail"); 
     return;
 }
}

?>