<commit_before><?php

/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines http://www.simplemachines.org
 * @copyright 2013 Simple Machines and individual contributors
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.1 Alpha 1
 */

$GLOBALS['current_smf_version'] = '2.1 Alpha 1';
$GLOBALS['db_script_version'] = '2-1';

$GLOBALS['required_php_version'] = '5.1.0';

// Don't have PHP support, do you?
// ><html dir="ltr"><head><title>Error!</title></head><body>Sorry, this installer requires PHP!<div style="display: none;">

// Database info.
$databases = array(
	'mysqli' => array(
		'name' => 'MySQLi',
		'version' => '4.0.18',
		'version_check' => 'return min(mysqli_get_server_info($db_connection), mysqli_get_client_info());',
		'supported' => function_exists('mysqli_connect'),
		'default_user' => 'mysql.default_user',
		'default_password' => '<PASSWORD>',
		'default_host' => 'mysql.default_host',
		'default_port' => 'mysql.default_port',
		'utf8_support' => true,
		'utf8_version' => '4.1.0',
		'utf8_version_check' => 'return mysqli_get_server_info($db_connection);',
		'utf8_default' => true,
		'utf8_required' => false,
		'alter_support' => true,
		'validate_prefix' => create_function('&$value', '
			$value = preg_replace(\'~[^A-Za-z0-9_\$]~\', \'\', $value);
			return true;
		'),
	),
	'mysql' => array(
		'name' => 'MySQL',
		'version' => '4.0.18',
		'version_check' => 'return min(mysql_get_server_info(), mysql_get_client_info());',
		'supported' => function_exists('mysql_connect'),
		'default_user' => 'mysql.default_user',
		'default_password' => '<PASSWORD>',
		'default_host' => 'mysql.default_host',
		'default_port' => 'mysql.default_port',
		'utf8_support' => true,
		'utf8_version' => '4.1.0',
		'utf8_version_check' => 'return mysql_get_server_info();',
		'utf8_default' => true,
		'utf8_required' => false,
		'alter_support' => true,
		'validate_prefix' => create_function('&$value', '
			$value = preg_replace(\'~[^A-Za-z0-9_\$]~\', \'\', $value);
			return true;
		'),
	),
	'postgresql' => array(
		'name' => 'PostgreSQL',
		'version' => '8.0',
		'function_check' => 'pg_connect',
		'version_check' => '$request = pg_query(\'SELECT version()\'); list ($version) = pg_fetch_row($request); list($pgl, $version) = explode(" ", $version); return $version;',
		'supported' => function_exists('pg_connect'),
		'always_has_db' => true,
		'utf8_default' => true,
		'utf8_required' => false,
		'utf8_support' => true,<commit_msg>! Bump the installer to require MySQL 5.0.3 instead of a very old version. There are things we are looking to do that require 5.0.3 as a flat minimum.<commit_after><?php

/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines http://www.simplemachines.org
 * @copyright 2013 Simple Machines and individual contributors
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.1 Alpha 1
 */

$GLOBALS['current_smf_version'] = '2.1 Alpha 1';
$GLOBALS['db_script_version'] = '2-1';

$GLOBALS['required_php_version'] = '5.1.0';

// Don't have PHP support, do you?
// ><html dir="ltr"><head><title>Error!</title></head><body>Sorry, this installer requires PHP!<div style="display: none;">

// Database info.
$databases = array(
	'mysqli' => array(
		'name' => 'MySQLi',
		'version' => '5.0.3',
		'version_check' => 'return min(mysqli_get_server_info($db_connection), mysqli_get_client_info());',
		'supported' => function_exists('mysqli_connect'),
		'default_user' => 'mysql.default_user',
		'default_password' => '<PASSWORD>',
		'default_host' => 'mysql.default_host',
		'default_port' => 'mysql.default_port',
		'utf8_support' => true,
		'utf8_version' => '5.0.3',
		'utf8_version_check' => 'return mysqli_get_server_info($db_connection);',
		'utf8_default' => true,
		'utf8_required' => false,
		'alter_support' => true,
		'validate_prefix' => create_function('&$value', '
			$value = preg_replace(\'~[^A-Za-z0-9_\$]~\', \'\', $value);
			return true;
		'),
	),
	'mysql' => array(
		'name' => 'MySQL',
		'version' => '5.0.3',
		'version_check' => 'return min(mysql_get_server_info(), mysql_get_client_info());',
		'supported' => function_exists('mysql_connect'),
		'default_user' => 'mysql.default_user',
		'default_password' => '<PASSWORD>',
		'default_host' => 'mysql.default_host',
		'default_port' => 'mysql.default_port',
		'utf8_support' => true,
		'utf8_version' => '5.0.3',
		'utf8_version_check' => 'return mysql_get_server_info();',
		'utf8_default' => true,
		'utf8_required' => false,
		'alter_support' => true,
		'validate_prefix' => create_function('&$value', '
			$value = preg_replace(\'~[^A-Za-z0-9_\$]~\', \'\', $value);
			return true;
		'),
	),
	'postgresql' => array(
		'name' => 'PostgreSQL',
		'version' => '8.0',
		'function_check' => 'pg_connect',
		'version_check' => '$request = pg_query(\'SELECT version()\'); list ($version) = pg_fetch_row($request); list($pgl, $version) = explode(" ", $version); return $version;',
		'supported' => function_exists('pg_connect'),
		'always_has_db' => true,
		'utf8_default' => true,
		'utf8_required' => false,
		'utf8_support' => true,
{'fraction_non_alphanumeric': 0.20680982781969434, 'fraction_numerical': 0.01934610176049526, 'mean_word_length': 5.0752056404230315, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3171158', 'n_tokens_mistral': 2041, 'n_tokens_neox': 1938, 'n_words': 351}