@@ -768,4 +919,71 @@ function swatch(field)
}
+
+// ---------
+// FUNCTIONS
+//
+class template_admin extends template
+{
+ function compile_cache_clear($template = false)
+ {
+ global $phpbb_root_path;
+
+ $template_list = array();
+
+ if (!$template)
+ {
+ $dp = opendir($phpbb_root_path . $this->cache_root);
+ while ($dir = readdir($dp))
+ {
+ $template_dir = $phpbb_root_path . $this->cache_root . $dir;
+ if (!is_file($template_dir) && !is_link($template_dir) && $dir != '.' && $dir != '..')
+ {
+ array_push($template_list, $dir);
+ }
+ }
+ closedir($dp);
+ }
+ else
+ {
+ array_push($template_list, $template);
+ }
+
+ foreach ($template_list as $template)
+ {
+ $dp = opendir($phpbb_root_path . $this->cache_root . $template);
+ while ($file = readdir($dp))
+ {
+ unlink($phpbb_root_path . $this->cache_root . $file);
+ }
+ closedir($dp);
+ }
+
+ return;
+ }
+
+ function compile_cache_show($template)
+ {
+ global $phpbb_root_path;
+
+ $template_cache = array();
+
+ $template_dir = $phpbb_root_path . $this->cache_root . $template;
+ $dp = opendir($template_dir);
+ while ($file = readdir($dp))
+ {
+ if (preg_match('#\.html$#i', $file) && is_file($template_dir . '/' . $file))
+ {
+ array_push($template_cache, $file);
+ }
+ }
+ closedir($dp);
+
+ return;
+ }
+}
+//
+// FUNCTIONS
+// ---------
+
?>
\ No newline at end of file
diff --git a/phpBB/language/en/lang_admin.php b/phpBB/language/en/lang_admin.php
index 180a4c6460..0b63e84e57 100644
--- a/phpBB/language/en/lang_admin.php
+++ b/phpBB/language/en/lang_admin.php
@@ -893,6 +893,80 @@ $lang = array_merge($lang, array(
'Disallowed_already' => 'The name you entered could not be disallowed. It either already exists in the list, exists in the word censor list, or a matching username is present',
+ 'THEMES' => 'Themes',
+ 'THEMES_EXPLAIN' => 'From here you can add, edit, delete and export themes. A theme is the combination of colours and images that are applied to your templates to define the basic look of your forum. To manage templates, imagesets or styles please see the navigation menu.',
+
+ 'EDIT_THEME' => 'Edit Theme',
+ 'EDIT_THEME_EXPLAIN' => 'Here you can edit the selected theme, changing colours, images, etc. You can switch between a simplified interface where you can set basic colours, etc. and a more advanced "raw CSS" mode. Using the raw mode you can style additional CSS elements such as borders, etc. You only need set the parameters you need, e.g. if you do not want a background image leave that parameter unset. You may also add additional "custom" classes should your template or style make use of them.',
+ 'SELECT_CLASS' => 'Select class',
+ 'SHOW_RAW_CSS' => 'Show CSS',
+ 'HIDE_RAW_CSS' => 'Hide CSS',
+
+ 'style_cat_text' => 'Text Classes',
+ 'style_body' => 'Body',
+ 'style_p' => 'Paragraph',
+ 'style_h1' => 'Header 1',
+ 'style_h2' => 'Header 2',
+ 'style_h3' => 'Header 3',
+ 'style_tabletitle' => 'Table Title',
+ 'style_cattitle' => 'Category Title',
+ 'style_topictitle' => 'Topic Titles',
+ 'style_topicauthor' => 'Topic Author',
+ 'style_topicdetails' => 'Topic Details',
+ 'style_postbody' => 'Post Text',
+ 'style_posthilit' => 'Post Highlight Text',
+ 'style_postauthor' => 'Post Author',
+ 'style_postdetails' => 'Post Details',
+ 'style_a' => 'General Anchor',
+ 'style_genmed' => 'General Text',
+ 'style_gensmall' => 'Small Text',
+ 'style_copyright' => 'Copyright Text',
+
+ 'style_cat_tables' => 'Tabular Classes',
+ 'style_table' => 'Table',
+ 'style_th' => 'Table Header',
+ 'style_td' => 'Table Data',
+ 'style_cat' => 'Category Header',
+ 'style_catdiv' => 'Category Fade',
+ 'style_row1' => 'Alternate Row 1',
+ 'style_row2' => 'Alternate Row 2',
+ 'style_row3' => 'Alternate Row 3',
+ 'style_spacer' => 'Spacer Row',
+ 'style_hr' => 'Horizontal Rule',
+
+ 'style_cat_forms' => 'Form Classes',
+ 'style_form' => 'Form',
+ 'style_input' => 'Input',
+ 'style_select' => 'Select',
+ 'style_textarea' => 'Textarea',
+ 'style_post' => 'Text Input',
+ 'style_btnmain' => 'Primary Buttons',
+ 'style_btnlite' => 'Secondary Buttons',
+ 'style_button' => 'BBCode Buttons',
+
+ 'style_cat_bbcode' => 'BBCode Classes',
+ 'style_b' => 'Bold',
+ 'style_u' => 'Underline',
+ 'style_i' => 'Italics',
+ 'style_color' => 'Colour',
+ 'style_size' => 'Size',
+ 'style_code' => 'Code',
+ 'style_quote' => 'Quote',
+ 'style_flash' => 'Flash',
+ 'style_syntaxbg' => 'Syntax Background',
+ 'style_syntaxcomment' => 'Syntax Comments',
+ 'style_syntaxdefault' => 'Syntax Default',
+ 'style_syntaxhtml' => 'Syntax HTML',
+ 'style_syntaxkeyword' => 'Syntax Keyword',
+ 'style_syntaxstring' => 'Syntax String',
+
+ 'STYLE_ANCHOR_LINK' => 'Link',
+ 'STYLE_ANCHOR_ACTIVE' => 'Active',
+ 'STYLE_ANCHOR_VISITED' => 'Visited',
+ 'STYLE_ANCHOR_HOVER' => 'Hover',
+
+
+
'Edit_style' => 'Edit Styles',
'Style' => 'Style',
'Styles_admin' => 'Styles Administration',
@@ -903,7 +977,7 @@ $lang = array_merge($lang, array(
'Template' => 'Select template',
'Download' => 'Download',
'Edit_theme' => 'Edit Theme',
- 'Edit_theme_explain' => 'Use this panel to edit an existing theme. Each editable class can be selected individually. Set only the parameters you need, e.g. if you do not want a border leave the border parameters blank.',
+ 'Edit_theme_explain' => 'Use this panel to edit an existing theme. Each editable class can be selected individually. ',
'Select_theme' => 'Select theme',
'CSS_data' => 'CSS Data',
'CSS_data_explain' => 'This CSS is output to the template and may be included within the header of each page.',
@@ -930,6 +1004,9 @@ $lang = array_merge($lang, array(
'Save_Settings' => 'Save Settings',
+
+
+
'SEARCH_INDEX_EXPLAIN' => 'phpBB2 uses a fulltext search system. This breaks down each post into seperate words and then, if the word does not already exist it stores those words in a table. In turn the post is linked to each word it contains in this table. This allows quick searching of large databases and helps reduce load on the server compared to most other methods.
However, if the tables get out of sync for some reason or you change the minimum, maximum or disallowed list of words the tables need updating. This facility allows you to do just that.
Please be aware this procedure can take a long time, particularly on large databases. During this period your forum will be automatically shut down to prevent people posting. You can cancel the procedure at any time. Please remember this is an intensive operation and should only be carried out when absolutely necessarily. Do not run this script too often!
',
'SEARCH_INDEX_CANCEL' => 'Re-indexing of search system has been cancelled. Please note this will result in searches returning incomplete results. You can re-index the posts again at any stage.',
'SEARCH_INDEXING_COMPLETE' => 'Re-indexing of search system has been completed. You can re-index the posts again at any stage.',