aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-08-12 20:46:43 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-08-12 20:46:43 +0000
commiteeab805012287d9be97dcc9626751d73557b5355 (patch)
tree4f4d1d368585d7191f7030c8a3fe64eadaad9dd2 /phpBB
parente6978f1e1c1bbf89a985ee48fa7a6b9b33ba9dfd (diff)
downloadforums-eeab805012287d9be97dcc9626751d73557b5355.tar
forums-eeab805012287d9be97dcc9626751d73557b5355.tar.gz
forums-eeab805012287d9be97dcc9626751d73557b5355.tar.bz2
forums-eeab805012287d9be97dcc9626751d73557b5355.tar.xz
forums-eeab805012287d9be97dcc9626751d73557b5355.zip
Updates for installation of styles
git-svn-id: file:///svn/phpbb/trunk@4391 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/adm/admin_styles.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/phpBB/adm/admin_styles.php b/phpBB/adm/admin_styles.php
index 9b0b749a04..a7cc2f2406 100644
--- a/phpBB/adm/admin_styles.php
+++ b/phpBB/adm/admin_styles.php
@@ -68,12 +68,11 @@ else
}
}
-
// Set some basic vars
$error = $cfg = $stylecfg = array();
$tmp_path = '';
-$safe_mode = (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on') ? true : false;
+$safe_mode = (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on') ? true : false;
$file_uploads = (@ini_get('file_uploads') || strtolower(@ini_get('file_uploads')) == 'on') ? true : false;
// Generate list of archive types inc. regexp | match
@@ -115,10 +114,6 @@ switch ($action)
remove($mode, $id);
}
break;
-
- case 'preview':
-
- break;
}
// Mode based actions
@@ -765,7 +760,7 @@ function viewsource(url)
{
if (!in_array($value, $test_ary))
{
- $base_classes['custom'][] = $value;
+// $base_classes['custom'][] = $value;
}
}
unset($matches);
@@ -1428,9 +1423,10 @@ function frontend($type, $options)
$dp = opendir("{$phpbb_root_path}styles");
while ($file = readdir($dp))
{
- if ($file{0} != '.' && file_exists("{$phpbb_root_path}styles/$file/$type/$type.cfg"))
+ $subpath = ($type != 'style') ? "$type/" : '';
+ if ($file{0} != '.' && file_exists("{$phpbb_root_path}styles/$file/$subpath$type.cfg"))
{
- if ($cfg = file("{$phpbb_root_path}styles/$file/$type/$type.cfg"))
+ if ($cfg = file("{$phpbb_root_path}styles/$file/$subpath$type.cfg"))
{
$name = trim($cfg[0]);
if (!in_array($name, $installed))
@@ -1454,7 +1450,7 @@ function frontend($type, $options)
?>
<tr>
<td class="<?php echo $row_class; ?>"><?php echo $cfg['name']; ?></td>
- <td class="<?php echo $row_class; ?>" colspan="<?php echo $thspan ?>" align="center"><a href="<?php echo "admin_styles.$phpEx$SID&amp;mode=$mode&amp;action=install&amp;path=" . urlencode($cfg['path']); ?>"><?php echo $user->lang['INSTALL']; ?></a></td>
+ <td class="<?php echo $row_class; ?>" colspan="<?php echo ($type != 'style') ? $thspan : $thspan + 1 ?>" align="center"><a href="<?php echo "admin_styles.$phpEx$SID&amp;mode=$mode&amp;action=install&amp;path=" . urlencode($cfg['path']); ?>"><?php echo $user->lang['INSTALL']; ?></a></td>
</tr>
<?php