aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/admin/admin_styles.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-03-22 17:00:33 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-03-22 17:00:33 +0000
commitf0e4a8a4e4124f25a502219fe0e3da7aef5c1ee4 (patch)
treee8eef954971db13d1a198af737a7ed9ede51d243 /phpBB/admin/admin_styles.php
parent42e30320e4cfc76229f3022954eda0b9fd2e4b13 (diff)
downloadforums-f0e4a8a4e4124f25a502219fe0e3da7aef5c1ee4.tar
forums-f0e4a8a4e4124f25a502219fe0e3da7aef5c1ee4.tar.gz
forums-f0e4a8a4e4124f25a502219fe0e3da7aef5c1ee4.tar.bz2
forums-f0e4a8a4e4124f25a502219fe0e3da7aef5c1ee4.tar.xz
forums-f0e4a8a4e4124f25a502219fe0e3da7aef5c1ee4.zip
Fix problem with user_admin not showing correct status for certain settings + switch to same include series as main files
git-svn-id: file:///svn/phpbb/trunk@2397 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_styles.php')
-rw-r--r--phpBB/admin/admin_styles.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/phpBB/admin/admin_styles.php b/phpBB/admin/admin_styles.php
index 0d15d94983..2d5c64a8ff 100644
--- a/phpBB/admin/admin_styles.php
+++ b/phpBB/admin/admin_styles.php
@@ -35,18 +35,19 @@ if( !empty($setmodules) )
//
// Load default header
//
-$phpbb_root_dir = "./../";
-
//
// Check if the user has cancled a confirmation message.
//
+$phpbb_root_path = "../";
+
$confirm = ( isset($HTTP_POST_VARS['confirm']) ) ? TRUE : FALSE;
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : FALSE;
if( empty($HTTP_POST_VARS['send_file']) )
{
$no_page_header = ( $cancel ) ? TRUE : FALSE;
- require('pagestart.inc');
+ require($phpbb_root_path . 'extension.inc');
+ require('pagestart.' . $phpEx);
}
if( $cancel )
@@ -72,7 +73,7 @@ switch( $mode )
if( isset($install_to) )
{
- include($phpbb_root_dir . "templates/" . $install_to . "/theme_info.cfg");
+ include($phpbb_root_path. "templates/" . $install_to . "/theme_info.cfg");
$template_name = $$install_to;
$found = FALSE;
@@ -127,15 +128,15 @@ switch( $mode )
$installable_themes = array();
- if( $dir = @opendir($phpbb_root_dir . "templates/") )
+ if( $dir = @opendir($phpbb_root_path. "templates/") )
{
while( $sub_dir = @readdir($dir) )
{
if( !is_file($phpbb_root_path . 'templates/' .$sub_dir) && !is_link($phpbb_root_path . 'templates/' .$sub_dir) && $sub_dir != "." && $sub_dir != ".." && $sub_dir != "CVS" )
{
- if( @file_exists($phpbb_root_dir . "templates/" . $sub_dir . "/theme_info.cfg") )
+ if( @file_exists($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg") )
{
- include($phpbb_root_dir . "templates/" . $sub_dir . "/theme_info.cfg");
+ include($phpbb_root_path. "templates/" . $sub_dir . "/theme_info.cfg");
for($i = 0; $i < count($$sub_dir); $i++)
{