Extension var update

git-svn-id: file:///svn/phpbb/trunk@4480 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-09-07 16:52:51 +00:00
parent 0b78036d66
commit 13e01d7b93
19 changed files with 21 additions and 22 deletions

View file

@ -22,7 +22,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
if (!$auth->acl_get('a_attach')) if (!$auth->acl_get('a_attach'))

View file

@ -37,7 +37,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Load default header // Load default header
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have ban permissions? // Do we have ban permissions?

View file

@ -18,9 +18,7 @@ if (!empty($setmodules))
return; return;
} }
$filename = basename(__FILE__); $module['POST']['BBCODES'] = basename(__FILE__) . $SID;
$module['POST']['BBCODES'] = $filename . $SID;
return; return;
} }

View file

@ -37,7 +37,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Load default header // Load default header
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Get mode // Get mode

View file

@ -28,7 +28,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Load default header // Load default header
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
include($phpbb_root_path . 'functions_compress.'.$phpEx); include($phpbb_root_path . 'functions_compress.'.$phpEx);

View file

@ -34,7 +34,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
require($phpbb_root_path . 'includes/functions_user.'.$phpEx); require($phpbb_root_path . 'includes/functions_user.'.$phpEx);

View file

@ -29,7 +29,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Check permissions // Check permissions

View file

@ -36,7 +36,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have general permissions? // Do we have general permissions?

View file

@ -35,7 +35,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);

View file

@ -28,7 +28,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Load default header // Load default header
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);

View file

@ -34,7 +34,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have permission? // Do we have permission?

View file

@ -34,7 +34,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have forum admin permissions? // Do we have forum admin permissions?

View file

@ -33,7 +33,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Let's set the root dir for phpBB // Let's set the root dir for phpBB
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have permission? // Do we have permission?

View file

@ -34,7 +34,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
include($phpbb_root_path . 'includes/functions_posting.'.$phpEx); include($phpbb_root_path . 'includes/functions_posting.'.$phpEx);

View file

@ -18,6 +18,9 @@
// Previews of templates, imagesets, themes ... unified // Previews of templates, imagesets, themes ... unified
// Security review // Security review
// BUGS
// Editing template -> store in DB -> some kind of failure
if (!empty($setmodules)) if (!empty($setmodules))
{ {
if (!$auth->acl_get('a_styles')) if (!$auth->acl_get('a_styles'))
@ -37,7 +40,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have styles admin permissions? // Do we have styles admin permissions?

View file

@ -37,7 +37,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have styles admin permissions? // Do we have styles admin permissions?

View file

@ -33,7 +33,7 @@ if (!empty($setmodules))
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have forum admin permissions? // Do we have forum admin permissions?

Binary file not shown.

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 369 B

View file

@ -11,12 +11,10 @@
// //
// ------------------------------------------------------------- // -------------------------------------------------------------
define('IN_PHPBB', 1); define('IN_PHPBB', 1);
// Include files // Include files
$phpbb_root_path = '../'; $phpbb_root_path = '../';
require($phpbb_root_path . 'extension.inc'); $phpEx = substr(strrchr(__FILE__, '.'), 1);
require('pagestart.' . $phpEx); require('pagestart.' . $phpEx);
// Do we have any admin permissions at all? // Do we have any admin permissions at all?