diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-09-07 16:52:51 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-09-07 16:52:51 +0000 |
commit | 13e01d7b93a9f4acf44766ca474956e349e99621 (patch) | |
tree | 66707e4ccec4aae60b4c83ce73abfc0a72d9f816 /phpBB/adm | |
parent | 0b78036d66afea4790fa70109813e3ec4a6e9b87 (diff) | |
download | forums-13e01d7b93a9f4acf44766ca474956e349e99621.tar forums-13e01d7b93a9f4acf44766ca474956e349e99621.tar.gz forums-13e01d7b93a9f4acf44766ca474956e349e99621.tar.bz2 forums-13e01d7b93a9f4acf44766ca474956e349e99621.tar.xz forums-13e01d7b93a9f4acf44766ca474956e349e99621.zip |
Extension var update
git-svn-id: file:///svn/phpbb/trunk@4480 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm')
-rw-r--r-- | phpBB/adm/admin_attachments.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_ban.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_bbcodes.php | 4 | ||||
-rw-r--r-- | phpBB/adm/admin_board.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_database.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_disallow.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_email.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_icons.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_permissions.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_phpinfo.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_prune.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_prune_users.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_ranks.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_search.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_styles.php | 5 | ||||
-rw-r--r-- | phpBB/adm/admin_viewlogs.php | 2 | ||||
-rw-r--r-- | phpBB/adm/admin_words.php | 2 | ||||
-rw-r--r-- | phpBB/adm/images/cellpic1.gif | bin | 246 -> 369 bytes | |||
-rw-r--r-- | phpBB/adm/index.php | 4 |
19 files changed, 21 insertions, 22 deletions
diff --git a/phpBB/adm/admin_attachments.php b/phpBB/adm/admin_attachments.php index 01e5ef59e5..7f4ca15563 100644 --- a/phpBB/adm/admin_attachments.php +++ b/phpBB/adm/admin_attachments.php @@ -22,7 +22,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); if (!$auth->acl_get('a_attach')) diff --git a/phpBB/adm/admin_ban.php b/phpBB/adm/admin_ban.php index 72dafc4553..356c3e9eea 100644 --- a/phpBB/adm/admin_ban.php +++ b/phpBB/adm/admin_ban.php @@ -37,7 +37,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Load default header $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have ban permissions? diff --git a/phpBB/adm/admin_bbcodes.php b/phpBB/adm/admin_bbcodes.php index e8c2550644..0ecf9b5ee7 100644 --- a/phpBB/adm/admin_bbcodes.php +++ b/phpBB/adm/admin_bbcodes.php @@ -18,9 +18,7 @@ if (!empty($setmodules)) return; } - $filename = basename(__FILE__); - $module['POST']['BBCODES'] = $filename . $SID; - + $module['POST']['BBCODES'] = basename(__FILE__) . $SID; return; } diff --git a/phpBB/adm/admin_board.php b/phpBB/adm/admin_board.php index 0960262414..a67e6a16e1 100644 --- a/phpBB/adm/admin_board.php +++ b/phpBB/adm/admin_board.php @@ -37,7 +37,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Load default header $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Get mode diff --git a/phpBB/adm/admin_database.php b/phpBB/adm/admin_database.php index b47f820b69..8c73927951 100644 --- a/phpBB/adm/admin_database.php +++ b/phpBB/adm/admin_database.php @@ -28,7 +28,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Load default header $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); include($phpbb_root_path . 'functions_compress.'.$phpEx); diff --git a/phpBB/adm/admin_disallow.php b/phpBB/adm/admin_disallow.php index 7b8e9e6ca3..c6c1fcfa18 100644 --- a/phpBB/adm/admin_disallow.php +++ b/phpBB/adm/admin_disallow.php @@ -34,7 +34,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); require($phpbb_root_path . 'includes/functions_user.'.$phpEx); diff --git a/phpBB/adm/admin_email.php b/phpBB/adm/admin_email.php index 64cd4ab942..bcbfc53440 100644 --- a/phpBB/adm/admin_email.php +++ b/phpBB/adm/admin_email.php @@ -29,7 +29,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Check permissions diff --git a/phpBB/adm/admin_icons.php b/phpBB/adm/admin_icons.php index bf041701e9..b81c4ccd57 100644 --- a/phpBB/adm/admin_icons.php +++ b/phpBB/adm/admin_icons.php @@ -36,7 +36,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have general permissions? diff --git a/phpBB/adm/admin_permissions.php b/phpBB/adm/admin_permissions.php index 92581923df..9bc6c65a6d 100644 --- a/phpBB/adm/admin_permissions.php +++ b/phpBB/adm/admin_permissions.php @@ -35,7 +35,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); diff --git a/phpBB/adm/admin_phpinfo.php b/phpBB/adm/admin_phpinfo.php index d4583a8631..afedce729c 100644 --- a/phpBB/adm/admin_phpinfo.php +++ b/phpBB/adm/admin_phpinfo.php @@ -28,7 +28,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Load default header $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); diff --git a/phpBB/adm/admin_prune.php b/phpBB/adm/admin_prune.php index 0c19d6a7d9..2663cad24a 100644 --- a/phpBB/adm/admin_prune.php +++ b/phpBB/adm/admin_prune.php @@ -34,7 +34,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have permission? diff --git a/phpBB/adm/admin_prune_users.php b/phpBB/adm/admin_prune_users.php index 4c045c7bea..a623ac5476 100644 --- a/phpBB/adm/admin_prune_users.php +++ b/phpBB/adm/admin_prune_users.php @@ -34,7 +34,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have forum admin permissions? diff --git a/phpBB/adm/admin_ranks.php b/phpBB/adm/admin_ranks.php index 7869ec1600..3eba8532a3 100644 --- a/phpBB/adm/admin_ranks.php +++ b/phpBB/adm/admin_ranks.php @@ -33,7 +33,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Let's set the root dir for phpBB $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have permission? diff --git a/phpBB/adm/admin_search.php b/phpBB/adm/admin_search.php index 0d565c3517..6d5999575c 100644 --- a/phpBB/adm/admin_search.php +++ b/phpBB/adm/admin_search.php @@ -34,7 +34,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); include($phpbb_root_path . 'includes/functions_posting.'.$phpEx); diff --git a/phpBB/adm/admin_styles.php b/phpBB/adm/admin_styles.php index 4fd02e5171..8f5e233328 100644 --- a/phpBB/adm/admin_styles.php +++ b/phpBB/adm/admin_styles.php @@ -18,6 +18,9 @@ // Previews of templates, imagesets, themes ... unified // Security review +// BUGS +// Editing template -> store in DB -> some kind of failure + if (!empty($setmodules)) { if (!$auth->acl_get('a_styles')) @@ -37,7 +40,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have styles admin permissions? diff --git a/phpBB/adm/admin_viewlogs.php b/phpBB/adm/admin_viewlogs.php index 97adfb852d..a441026860 100644 --- a/phpBB/adm/admin_viewlogs.php +++ b/phpBB/adm/admin_viewlogs.php @@ -37,7 +37,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have styles admin permissions? diff --git a/phpBB/adm/admin_words.php b/phpBB/adm/admin_words.php index fae053b47f..e2f629290d 100644 --- a/phpBB/adm/admin_words.php +++ b/phpBB/adm/admin_words.php @@ -33,7 +33,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have forum admin permissions? diff --git a/phpBB/adm/images/cellpic1.gif b/phpBB/adm/images/cellpic1.gif Binary files differindex 715b8d4aa8..35932cc07b 100644 --- a/phpBB/adm/images/cellpic1.gif +++ b/phpBB/adm/images/cellpic1.gif diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index f9dfd15713..5f1673269d 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -11,12 +11,10 @@ // // ------------------------------------------------------------- - define('IN_PHPBB', 1); - // Include files $phpbb_root_path = '../'; -require($phpbb_root_path . 'extension.inc'); +$phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); // Do we have any admin permissions at all? |