Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-inside/connect-frame.php
<?php
require_once('../pr-config/config.php');
class ConnectFrame
{
	var $Name = false;
	var $Description = false; //optional
	var $Image = false; //prsaar currently cant show images
	var $RealName = false; //optional
	var $Sex = false; //optional
	var $Email = false; //optional
	var $DateOfBirth = '00000000'; //optional
	var $Country = false; //optional
	var $City = false; //optional
	var $PlatformID = false; //for social-networking sites, where users have a unique ID, meaningless for prsaar.
	var $Homepage = false; //for social-networking sited, url which shows the profile of the user
	
	//constructor
	function ConnectFrame()
	{
		$DC = new DatabaseConnect;
		$Identity = $DC->Result("SELECT * FROM ".PR_DATABASE_PREFIX."identity");
		foreach($Identity as $KeyValue)
		{
			if($KeyValue['identity_name'] == 'name') $this->Name = $KeyValue['identity_value'];
			if($KeyValue['identity_name'] == 'description') $this->Description = $KeyValue['identity_value'];
			if($KeyValue['identity_name'] == 'realname') $this->RealName = $KeyValue['identity_value'];
			if($KeyValue['identity_name'] == 'sex') $this->Sex = $KeyValue['identity_value'];
			if($KeyValue['identity_name'] == 'dateofbirth') $this->DateOfBirth = $KeyValue['identity_value'];
			if($KeyValue['identity_name'] == 'country') $this->Country = $KeyValue['identity_value'];
			if($KeyValue['identity_name'] == 'city') $this->City = $KeyValue['identity_value'];
		}
	}
}
$Connect = new ConnectFrame;
?>
Return current item: Prsaar Social Networking Platform