diff options
author | Nils Adermann <naderman@naderman.de> | 2006-05-20 23:56:12 +0000 |
---|---|---|
committer | Nils Adermann <naderman@naderman.de> | 2006-05-20 23:56:12 +0000 |
commit | 5fb416fc26fdbf6d8f7141039f95aba3d3ef681d (patch) | |
tree | 6aaddd945d89a51508be27306d0e0e505c3fdab3 /phpBB/style.php | |
parent | 5029170afbe7e74a0c46b3b3f1ecca83697ced42 (diff) | |
download | forums-5fb416fc26fdbf6d8f7141039f95aba3d3ef681d.tar forums-5fb416fc26fdbf6d8f7141039f95aba3d3ef681d.tar.gz forums-5fb416fc26fdbf6d8f7141039f95aba3d3ef681d.tar.bz2 forums-5fb416fc26fdbf6d8f7141039f95aba3d3ef681d.tar.xz forums-5fb416fc26fdbf6d8f7141039f95aba3d3ef681d.zip |
- 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
Diffstat (limited to 'phpBB/style.php')
-rw-r--r-- | phpBB/style.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/style.php b/phpBB/style.php index ad799033e9..e1bc5ef375 100644 --- a/phpBB/style.php +++ b/phpBB/style.php @@ -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'); |