From: Marcel Werk Date: Mon, 19 Nov 2012 16:51:10 +0000 (+0100) Subject: Added offline mode X-Git-Tag: 2.0.0_Beta_1~764 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dce072f6966da41d8ad4faa690e537178a575400;p=GitHub%2FWoltLab%2FWCF.git Added offline mode --- 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 +