aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2006-06-03 22:19:41 +0000
committerNils Adermann <naderman@naderman.de>2006-06-03 22:19:41 +0000
commit6ba50e34d60441e3eaf6c9fe1bff95a902393c84 (patch)
treee9ba8f0c1c5ff596a41ca070a0a80e641efebc77 /phpBB/adm
parent9aa9cb4bb6d9ad21db25bf24e70ed35b92c0f1a9 (diff)
downloadforums-6ba50e34d60441e3eaf6c9fe1bff95a902393c84.tar
forums-6ba50e34d60441e3eaf6c9fe1bff95a902393c84.tar.gz
forums-6ba50e34d60441e3eaf6c9fe1bff95a902393c84.tar.bz2
forums-6ba50e34d60441e3eaf6c9fe1bff95a902393c84.tar.xz
forums-6ba50e34d60441e3eaf6c9fe1bff95a902393c84.zip
- removed useless code from style.php
- added a view template cache mode to acp_styles - syntax highlighting for the acp css - completed refresh actions for themes and templates - fixed theme and template installation - use a function for generating database theme data - removed useless code from mcp_queue.php we might need to do some more tests of acp_styles with safe_mode on git-svn-id: file:///svn/phpbb/trunk@6007 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm')
-rw-r--r--phpBB/adm/style/acp_styles.html55
-rw-r--r--phpBB/adm/style/admin.css36
-rw-r--r--phpBB/adm/style/viewsource.html19
3 files changed, 110 insertions, 0 deletions
diff --git a/phpBB/adm/style/acp_styles.html b/phpBB/adm/style/acp_styles.html
index b38a35702d..3a5b6330db 100644
--- a/phpBB/adm/style/acp_styles.html
+++ b/phpBB/adm/style/acp_styles.html
@@ -244,6 +244,8 @@
//-->
</script>
+ <a href="{U_BACK}" style="float: right">&laquo; {L_BACK}</a>
+
<h1>{L_EDIT_THEME}</h1>
<p>{L_EDIT_THEME_EXPLAIN}</p>
@@ -374,6 +376,59 @@
</form>
<!-- ENDIF -->
+<!-- ELSEIF S_CACHE -->
+ <script language="Javascript" type="text/javascript">
+ <!--
+
+ function viewsource(url)
+ {
+ window.open(url, '_source', 'HEIGHT=550,resizable=yes,scrollbars=yes,WIDTH=750');
+ return false;
+ }
+
+ //-->
+ </script>
+
+ <a href="{U_BACK}" style="float: right">&laquo; {L_BACK}</a>
+
+ <h1>{L_TEMPLATE_CACHE}</h1>
+
+ <p>{L_TEMPLATE_CACHE_EXPLAIN}</p>
+
+ <form name="acp_styles" method="post" action="{U_ACTION}">
+
+ <table cellspacing="1">
+ <thead>
+ <tr>
+ <th>{L_CACHE_FILENAME}</th>
+ <th>{L_CACHE_FILESIZE}</th>
+ <th>{L_CACHE_CACHED}</th>
+ <th>{L_CACHE_MODIFIED}</th>
+ <th>{L_MARK}</th>
+ </tr>
+ </thead>
+ <tbody>
+ <!-- BEGIN file -->
+ <!-- IF file.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
+ <td><a href="{file.U_VIEWSOURCE}" onclick="viewsource('{file.UA_VIEWSOURCE}');return false">{file.FILENAME}</a></td>
+ <td>{file.FILESIZE}</td>
+ <td>{file.CACHED}</td>
+ <td>{file.MODIFIED}</td>
+ <td><input type="checkbox" name="delete[]" value="{file.FILENAME}" /></td>
+ </tr>
+ <!-- BEGINELSE -->
+ <tr class="row1">
+ <td colspan="5">{L_TEMPLATE_CACHE_EMPTY}</td>
+ </tr>
+ <!-- END file -->
+ </table>
+
+ <fieldset class="quick">
+ <span class="small"><a href="javascript:marklist('acp_styles', 'delete', true);">Mark all</a> :: <a href="javascript:marklist('acp_styles', 'delete', false);">Unmark all</a></span><br />
+
+ <input class="button1" type="submit" id="submit" name="submit" value="{L_DELETE_MARKED}" />
+ </fieldset>
+ </form>
<!-- ELSEIF S_EXPORT -->
<a href="{U_BACK}" style="float: right">&laquo; {L_BACK}</a>
diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css
index dc57c98962..67cd36ae16 100644
--- a/phpBB/adm/style/admin.css
+++ b/phpBB/adm/style/admin.css
@@ -915,3 +915,39 @@ table.pmask td.name {
height: 1%;
}
/* End hide */
+
+/* Syntax Highlighting
+---------------------------------------- */
+.sourcenum {
+ color: gray;
+ font-family: 'Courier New', monospace;
+ font-size: 125%;
+ font-weight: bold;
+ line-height: 120%;
+ text-align: right;
+ padding: 0px;
+}
+.source {
+ font-family: 'Courier New', monospace;
+ font-size: 125%;
+ line-height: 120%;
+ padding: 0px;
+}
+.syntaxbg {
+ color: #FFFFFF;
+ }
+.syntaxcomment {
+ color: #FF8000;
+ }
+.syntaxdefault {
+ color: #0000BB;
+ }
+.syntaxhtml {
+ color: #000000;
+ }
+.syntaxkeyword {
+ color: #007700;
+ }
+.syntaxstring {
+ color: #DD0000;
+ } \ No newline at end of file
diff --git a/phpBB/adm/style/viewsource.html b/phpBB/adm/style/viewsource.html
new file mode 100644
index 0000000000..44b1ad6be4
--- /dev/null
+++ b/phpBB/adm/style/viewsource.html
@@ -0,0 +1,19 @@
+<!-- INCLUDE simple_header.html -->
+
+<div class="panel" style="padding:10px">
+
+ <h1>{FILENAME}</h1>
+
+ <table>
+ <tbody>
+ <!-- BEGIN source -->
+ <tr valign="top">
+ <td class="sourcenum">{source.LINENUM}&nbsp;&nbsp;</td>
+ <td class="source">{source.LINE}</td>
+ </tr>
+ <!-- END source -->
+ </tbody>
+ </table>
+</div>
+
+<!-- INCLUDE simple_footer.html --> \ No newline at end of file