From b0322067b95aacf477e3bae1987f25c7acfe02e0 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 23 Feb 2003 11:59:51 +0000 Subject: [PATCH] added missing variable to session_end, fixed schema directories within upgrade file. git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3515 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/sessions.php | 2 ++ phpBB/includes/usercp_register.php | 2 +- phpBB/install/upgrade.php | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/phpBB/includes/sessions.php b/phpBB/includes/sessions.php index 2db18c751d..23c05d4e12 100644 --- a/phpBB/includes/sessions.php +++ b/phpBB/includes/sessions.php @@ -329,6 +329,8 @@ function session_end($session_id, $user_id) $cookiedomain = $board_config['cookie_domain']; $cookiesecure = $board_config['cookie_secure']; + $current_time = time(); + // // Pull cookiedata or grab the URI propagated sid // diff --git a/phpBB/includes/usercp_register.php b/phpBB/includes/usercp_register.php index 642f5471d4..06cc704097 100644 --- a/phpBB/includes/usercp_register.php +++ b/phpBB/includes/usercp_register.php @@ -209,7 +209,7 @@ if ( // and ensure that they were trying to register a second time // (Prevents double registrations) // -if ( $userdata['session_logged_in'] && $mode =="register" && $username == $userdata['username']) +if ( $userdata['session_logged_in'] && $mode == 'register' && $username == $userdata['username']) { message_die(GENERAL_MESSAGE, $lang['Username_taken'], '', __LINE__, __FILE__); } diff --git a/phpBB/install/upgrade.php b/phpBB/install/upgrade.php index a607fb7e99..9fdcc9e393 100644 --- a/phpBB/install/upgrade.php +++ b/phpBB/install/upgrade.php @@ -194,7 +194,7 @@ function get_schema() { global $table_prefix; - $schemafile = file('db/schemas/mysql_schema.sql'); + $schemafile = file('schemas/mysql_schema.sql'); $tabledata = 0; for($i=0; $i < count($schemafile); $i++) @@ -280,7 +280,7 @@ function get_inserts() { global $table_prefix; - $insertfile = file('db/schemas/mysql_basic.sql'); + $insertfile = file('schemas/mysql_basic.sql'); for($i = 0; $i < count($insertfile); $i++) { @@ -1936,8 +1936,8 @@ if ( !empty($next) ) } } -print "
If the upgrade completed without error you may click Here to proceed to the index
"; +print "
If the upgrade completed without error you may click Here to proceed to the index
"; common_footer(); -?> +?> \ No newline at end of file