From 4b3714ee8f7d35502bc6784f79940d81c574594f Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 21 Feb 2003 13:22:29 +0000 Subject: [PATCH] fix phpbb_realpath and added delimiter to phpbb_confirm table (what a single ; can do... :)) git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3490 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 2 ++ phpBB/install/schemas/mysql_schema.sql | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index f6f07bd87b..b93017a98f 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -692,6 +692,8 @@ function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', // dougk_ff7 function phpbb_realpath($path) { + global $phpbb_root_path, $phpEx; + return (!@function_exists('realpath') || !@realpath($phpbb_root_path . 'includes/functions.'.$phpEx)) ? $path : @realpath($path); } diff --git a/phpBB/install/schemas/mysql_schema.sql b/phpBB/install/schemas/mysql_schema.sql index 2160d3be03..f74cd7c4e1 100644 --- a/phpBB/install/schemas/mysql_schema.sql +++ b/phpBB/install/schemas/mysql_schema.sql @@ -101,7 +101,7 @@ CREATE TABLE phpbb_confirm ( code char(6) NOT NULL default '', PRIMARY KEY (session_id,confirm_id), KEY session_id (session_id) -) +); # --------------------------------------------------------