mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Updates for installation of styles
git-svn-id: file:///svn/phpbb/trunk@4391 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
e6978f1e1c
commit
eeab805012
1 changed files with 6 additions and 10 deletions
|
@ -68,7 +68,6 @@ else
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Set some basic vars
|
// Set some basic vars
|
||||||
$error = $cfg = $stylecfg = array();
|
$error = $cfg = $stylecfg = array();
|
||||||
$tmp_path = '';
|
$tmp_path = '';
|
||||||
|
@ -115,10 +114,6 @@ switch ($action)
|
||||||
remove($mode, $id);
|
remove($mode, $id);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'preview':
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mode based actions
|
// Mode based actions
|
||||||
|
@ -765,7 +760,7 @@ function viewsource(url)
|
||||||
{
|
{
|
||||||
if (!in_array($value, $test_ary))
|
if (!in_array($value, $test_ary))
|
||||||
{
|
{
|
||||||
$base_classes['custom'][] = $value;
|
// $base_classes['custom'][] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($matches);
|
unset($matches);
|
||||||
|
@ -1428,9 +1423,10 @@ function frontend($type, $options)
|
||||||
$dp = opendir("{$phpbb_root_path}styles");
|
$dp = opendir("{$phpbb_root_path}styles");
|
||||||
while ($file = readdir($dp))
|
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]);
|
$name = trim($cfg[0]);
|
||||||
if (!in_array($name, $installed))
|
if (!in_array($name, $installed))
|
||||||
|
@ -1454,7 +1450,7 @@ function frontend($type, $options)
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="<?php echo $row_class; ?>"><?php echo $cfg['name']; ?></td>
|
<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&mode=$mode&action=install&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&mode=$mode&action=install&path=" . urlencode($cfg['path']); ?>"><?php echo $user->lang['INSTALL']; ?></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue