1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-13 20:44:43 +01:00

- cleaned up firebirdsql

- cleaned up install


git-svn-id: file:///svn/phpbb/trunk@6563 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M 2006-11-10 14:56:18 +00:00
parent a5e32e5a94
commit a098417514
2 changed files with 6 additions and 5 deletions

View File

@ -207,7 +207,7 @@ class dbal_firebird extends dbal
foreach (get_object_vars($cur_row) as $key => $value)
{
$row[strtolower($key)] = trim(str_replace("\\0", "\0", str_replace("\\n", "\n", $value)));
$row[strtolower($key)] = trim(str_replace(array("\\0", "\\n"), array("\0", "\n"), $value));
}
return (sizeof($row)) ? $row : false;

View File

@ -1074,7 +1074,7 @@ class install_install extends module
// Set default config and post data, this applies to all DB's
$sql_ary = array(
'INSERT INTO ' . $table_prefix . "config (config_name, config_value)
VALUES ('board_startdate', $current_time)",
VALUES ('board_startdate', '$current_time')",
'INSERT INTO ' . $table_prefix . "config (config_name, config_value)
VALUES ('default_lang', '" . $db->sql_escape($default_lang) . "')",
@ -1156,7 +1156,7 @@ class install_install extends module
WHERE config_name = 'newest_username'",
'UPDATE ' . $table_prefix . "users
SET username = '" . $db->sql_escape($admin_name) . "', user_password='" . $db->sql_escape(md5($admin_pass1)) . "', user_ip = '" . $db->sql_escape($user_ip) . "', user_lang = '" . $db->sql_escape($default_lang) . "', user_email='" . $db->sql_escape($board_email1) . "', user_dateformat='" . $db->sql_escape($lang['default_dateformat']) . "', user_email_hash = '" . (int) (crc32(strtolower($board_email1)) . strlen($board_email1)) . "', username_clean = '" . $db->sql_escape(utf8_clean_string($admin_name)) . "'
SET username = '" . $db->sql_escape($admin_name) . "', user_password='" . $db->sql_escape(md5($admin_pass1)) . "', user_ip = '" . $db->sql_escape($user_ip) . "', user_lang = '" . $db->sql_escape($default_lang) . "', user_email='" . $db->sql_escape($board_email1) . "', user_dateformat='" . $db->sql_escape($lang['default_dateformat']) . "', user_email_hash = " . (int) (crc32(strtolower($board_email1)) . strlen($board_email1)) . ", username_clean = '" . $db->sql_escape(utf8_clean_string($admin_name)) . "'
WHERE username = 'Admin'",
'UPDATE ' . $table_prefix . "moderator_cache
@ -1768,7 +1768,8 @@ class install_install extends module
break;
case 'oracle':
$sql = 'SELECT table_name FROM USER_TABLES';
$sql = 'SELECT table_name
FROM USER_TABLES';
$field = 'table_name';
break;
}
@ -2017,7 +2018,7 @@ class install_install extends module
'MODULE' => 'oci8',
'DELIM' => '/',
'COMMENTS' => 'remove_comments',
'DRIVER' => 'oci8'
'DRIVER' => 'oracle'
),
'postgres' => array(
'LABEL' => 'PostgreSQL 7.x/8.x',