From dce072f6966da41d8ad4faa690e537178a575400 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 19 Nov 2012 17:51:10 +0100 Subject: [PATCH] Added offline mode --- com.woltlab.wcf/template/offline.tpl | 21 +++++++++++++++++++ com.woltlab.wcf/template/userNotice.tpl | 7 +++++++ com.woltlab.wcf/userGroupOption.xml | 6 ++++++ .../lib/system/request/Request.class.php | 13 ++++++++++++ .../system/request/RequestHandler.class.php | 9 ++++++++ wcfsetup/install/lang/de.xml | 1 + 6 files changed, 57 insertions(+) create mode 100644 com.woltlab.wcf/template/offline.tpl diff --git a/com.woltlab.wcf/template/offline.tpl b/com.woltlab.wcf/template/offline.tpl new file mode 100644 index 0000000000..fe6eed537f --- /dev/null +++ b/com.woltlab.wcf/template/offline.tpl @@ -0,0 +1,21 @@ +{include file='documentHeader'} + + + {lang}wcf.global.error.title{/lang} - {PAGE_TITLE|language} + + {include file='headInclude'} + + + + +{include file='header'} + +
+

{lang}wcf.page.offline{/lang}

+

{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE}{else}{@OFFLINE_MESSAGE|htmlspecialchars|nl2br}{/if}

+
+ +{include file='footer'} + + + \ No newline at end of file diff --git a/com.woltlab.wcf/template/userNotice.tpl b/com.woltlab.wcf/template/userNotice.tpl index 24f7638205..782c83e424 100644 --- a/com.woltlab.wcf/template/userNotice.tpl +++ b/com.woltlab.wcf/template/userNotice.tpl @@ -1,3 +1,10 @@
+ {if OFFLINE && $__wcf->session->getPermission('admin.general.canViewPageDuringOfflineMode')} +
+

{lang}wcf.page.offline{/lang}

+

{if OFFLINE_MESSAGE_ALLOW_HTML}{@OFFLINE_MESSAGE}{else}{@OFFLINE_MESSAGE|htmlspecialchars|nl2br}{/if}

+
+ {/if} + {event name='userNotice'}
\ No newline at end of file diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index 45c703cf75..91ad710dc4 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -60,6 +60,12 @@ 0 1 +