Location: PHPKode > projects > phpServerAdmin > phpserveradmin/pptpd/includes/database.inc.php
<?php

	function database_connect()
	{
		global $error, $db_host, $db_username, $db_password, $conx;
		
	  $conx = @mysql_connect ( $db_host , $db_username , $db_password ) or die ("Cannot log into ServerAdmin Database.".mysql_error());

		// Connect to the database
		$db  = @mysql_connect( $db_host, $db_username , $db_password );
		if ( ! $db )
		{
			$error = "Cannot connect to the database.".mysql_error();
			return false;
		}
		$db_selected = @mysql_select_db ( "citadmin" , $db );
		if ( ! $db_selected  )
		{
			$error = "Cannot select 'citadmin' database";
			return false;
		}

		return true;
	}
	
?>
Return current item: phpServerAdmin