Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/profile-identity-update.php
<?php
	require_once('./admin.php');
	$Action = $_GET['action'];
	//update identity page----------------------------------------------------------------
	if($Action === 'identity')
	{
		$Name = _SafeString($_POST['name']);
		$Description = _SafeString($_POST['description']);
		$RealName = _SafeString($_POST['realname']);
		$Sex = _SafeString($_POST['sex']);
		$DateOfBirth = $_POST['dob_year'].$_POST['dob_month'].$_POST['dob_date'];
		if(isset($_POST['dob_show']))
			$DOBShow = $_POST['dob_show'];
		else
			$DOBShow = null;
		$Country = _SafeString($_POST['country']);
		$City = _SafeString($_POST['city']);
		
		//into database now
			$DC->Result("REPLACE INTO ".PR_DATABASE_PREFIX."identity (identity_name, identity_value) VALUES ('name', '{$Name}'), ('description', '{$Description}'), ('realname', '{$RealName}'), ('sex', '{$Sex}'), ('dateofbirth', '{$DateOfBirth}'), ('country', '{$Country}'), ('city', '{$City}')");
			if($DOBShow == 'yes')
			{
				$DC->Result("REPLACE INTO ".PR_DATABASE_PREFIX."config SET config_value = 'yes', config_name = 'show_dob'");
			}
			else
			{
				$DC->Result("REPLACE INTO ".PR_DATABASE_PREFIX."config SET config_value = 'no', config_name = 'show_dob'");
			}
			header("Location: profile-identity.php?highlight=Identity_updated");
			exit();
			$Highlight = 'Identity updated.';
	}
?>
Return current item: Prsaar Social Networking Platform