public static function getSvnInfo() {
		global $pgIP;

		// http://svnbook.red-bean.com/nightly/en/svn.developer.insidewc.html
		$entries = $pgIP . '/.svn/entries';

		if( !file_exists( $entries ) ) {
			return false;
		}

		$lines = file( $entries );
		if( !count( $lines ) ) {
			return false;
		}

		// check if file is xml (subversion release <= 1.3) or not (subversion release = 1.4)
		if( preg_match( '/^<\?xml/', $lines[0] ) ) {
			return false;
		}

		// Subversion is release 1.4 or above.
		if( count( $lines ) < 11 ) {
			return false;
		}

		$info = array(
			'checkout-rev'  => intval( trim( $lines[3] ) ),
			'url'           => trim( $lines[4] ),
			'repo-url'      => trim( $lines[5] ),
			'directory-rev' => intval( trim( $lines[10] ) )
		);

		return $info;
	}