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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user