web/app/db.php
/**
	 * The database version number
	 * @param false|string|resource $dbh_or_table the databaese (the current database, the database housing the specified table, or the database of the mysql resource)
	 * @return false|string false on failure, version number on success
	 */
The database version number
@param false|string|resource $dbh_or_table the databaese (the current database, the database housing the specified table, or the database of the mysql resource)
@return false|string false on failure, version number on success
The database version number @param false|string|resource $dbh_or_table the databaese ( the current database the database housing the specified table or the database of the mysql resource ) @return false|string false on failure version number on success
function db_version( $dbh_or_table = false ) {
		if ( !$dbh_or_table && $this->dbh )
			$dbh =& $this->dbh;
		elseif ( $dbh_or_table instanceof mysqli )
			$dbh =& $dbh_or_table;
		else
			$dbh = $this->db_connect( "SELECT FROM $dbh_or_table $this->users" );
		if ( $dbh )
			return preg_replace('/[^0-9.].*/', '', mysqli_get_server_info( $dbh ));
		return false;
	}
function db_version ( $ dbh_or_table = false ) { if ( ! $ dbh_or_table && $ this -> dbh ) $ dbh = & $ this -> dbh ; elseif ( $ dbh_or_table instanceof mysqli ) $ dbh = & $ dbh_or_table ; else $ dbh = $ this -> db_connect ( " SELECT FROM  $ dbh_or_table $ this -> users " ) ; if ( $ dbh ) return preg_replace ( '/[^0-9.].*/' , '' , mysqli_get_server_info ( $ dbh ) ) ; return false ; }
The database version number
 @param false|string|resource $dbh_or_table the databaese (the current database, the database housing the specified table, or the database of the mysql resource)
 @return false|string false on failure, version number on success
The database version number @param false|string|resource $dbh_or_table the databaese ( the current database the database housing the specified table or the database of the mysql resource ) @return false|string false on failure version number on success