[Phpbbkb-checkins] SF.net SVN: phpbbkb: [44] main/trunk/install/kb_install.php
Status: Alpha
Brought to you by:
markthedaemon
|
From: <mar...@us...> - 2007-01-26 18:24:16
|
Revision: 44
http://svn.sourceforge.net/phpbbkb/?rev=44&view=rev
Author: markthedaemon
Date: 2007-01-26 10:24:11 -0800 (Fri, 26 Jan 2007)
Log Message:
-----------
Couple of minor changes to the install file
Modified Paths:
--------------
main/trunk/install/kb_install.php
Modified: main/trunk/install/kb_install.php
===================================================================
--- main/trunk/install/kb_install.php 2007-01-26 18:12:17 UTC (rev 43)
+++ main/trunk/install/kb_install.php 2007-01-26 18:24:11 UTC (rev 44)
@@ -19,7 +19,7 @@
***************************************************************************/
define('IN_PHPBB', true);
-$phpbb_root_path = './';
+$phpbb_root_path = './../';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.' . $phpEx);
@@ -32,21 +32,8 @@
// End session management
//
-
-if( !$userdata['session_logged_in'] )
-{
- $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
- header($header_location . append_sid($phpbb_root_path . "login.$phpEx?redirect=kb_install.$phpEx", true));
- exit;
-}
-
-if( $userdata['user_level'] != ADMIN )
-{
- message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');
-}
-
$page_title = 'phpBB Knowledge Base MOD';
-include('includes/page_header.' . $phpEx);
+include($phpbb_root_path . 'includes/page_header.' . $phpEx);
$sql = array();
$sql[] = "CREATE TABLE " . $table_prefix . "kb_categories (
@@ -134,5 +121,5 @@
'<a href="http://www.phpbbknowledgebase.com" target="_blank">phpBB Knowledge Base Forums</a> or the <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=415458" target="_blank">phpBB.com topic</a> and ask someone for help.</span></td></tr>';
echo '<tr><td class="catBottom" height="28" align="center"><span class="genmed"><a href="' . append_sid($phpbb_root_path . "index.$phpEx") . '">Have a nice day, and thanks for using the phpBB Knowledge Base MODification!</a></span></td></table>';
-include('includes/page_tail.' . $phpEx);
+include($phpbb_root_path . 'includes/page_tail.' . $phpEx);
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|