Location: PHPKode > projects > Prsaar Social Networking Platform > PrsaarColour-0.7.alpha.6.3/pr-admin/option-account-update.php
<?php
	require_once('./admin.php');
	
	//update the account page-------------------
	if($Action === 'update')
	{
		$AdminID = strtolower(trim($_POST['admin_id']));
		$AdminMail = trim($_POST['admin_mail']);
		if(empty($_POST['admin_id']))
			$Error['admin_id'] = 'ID can\'t be left blank';
		if(empty($_POST['admin_mail']))
			$Error['admin_mail'] = 'Please provide your e-mail';
		
		if(isset($Error))
		{
			require('option-account.php');
			exit();
		}
		else
		{
			$AdminID = str_replace("'", "\'", $_POST['admin_id']);
			$DC->Result("REPLACE INTO ".PR_DATABASE_PREFIX."config SET config_name='admin_id', config_value='{$AdminID}'");
			$Email = str_replace("'", "\'", $_POST['admin_mail']);
			$DC->Result("REPLACE INTO ".PR_DATABASE_PREFIX."config SET config_name='admin_mail', config_value='{$Email}'");
			header("Location: option-account.php?highlight=account_settings_updated");
			exit();
		}
	}
Return current item: Prsaar Social Networking Platform