1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 03:34:04 +02:00

- added a theme editor

- some adjustments in acp_styles.php
- fixed storing themes in db (needs revisiting)


git-svn-id: file:///svn/phpbb/trunk@5953 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Nils Adermann
2006-05-20 23:56:12 +00:00
parent 5029170afb
commit 5fb416fc26
5 changed files with 903 additions and 250 deletions

View File

@@ -83,8 +83,8 @@ if ($id && $sid)
{
exit;
}
$force_load = true; // Ideally this needs to be based on $config['load_tplcompile']
/*$force_load = true; // Ideally this needs to be based on $config['load_tplcompile']
if ($theme['theme_mtime'] < filemtime("{$phpbb_root_path}styles/" . $theme['theme_path'] . '/theme/stylesheet.css') || $force_load)
{
@@ -103,10 +103,10 @@ if ($id && $sid)
}
$sql = "UPDATE {$table_prefix}styles_theme
SET theme_data = '" . $db->sql_escape($theme['theme_data']) . "', theme_mtime = " . time() . "
SET theme_data = '" . $db->sql_escape(str_replace('./', "styles/{$theme['theme_path']}/theme/", $theme['theme_data'])) . "', theme_mtime = " . time() . "
WHERE theme_id = $id";
$db->sql_query($sql);
}
}*/
header('Expires: ' . gmdate('D, d M Y H:i:s \G\M\T', time() + 3600));
header('Content-type: text/css');