syntax highlighting can now be turned off, template can be changed in

configuration
This commit is contained in:
Simon Rupf 2013-10-31 22:24:40 +01:00
parent 630e16c4a0
commit d247bff897
3 changed files with 6 additions and 3 deletions

View File

@ -20,6 +20,9 @@ burnafterreadingselected = false
; size limit per paste or comment in bytes, default is 2 Mibibytes
sizelimit = 2097152
; template to include, default is "page" (tpl/page.html)
template = "page"
[expire]
; expire value that is selected per default
; make sure the value exists in [expire_options]

View File

@ -405,7 +405,7 @@ class zerobin
$page->assign('SYNTAXHIGHLIGHTING', $this->_conf['main']['syntaxhighlighting']);
$page->assign('EXPIRE', $expire);
$page->assign('EXPIREDEFAULT', $this->_conf['expire']['default']);
$page->draw('page');
$page->draw($this->_conf['main']['template']);
}
/**

View File

@ -10,8 +10,8 @@
<script type="text/javascript" src="js/sjcl.js#"></script>
<script type="text/javascript" src="js/base64.js#"></script>
<script type="text/javascript" src="js/rawdeflate.js#"></script>
<script type="text/javascript" src="js/rawinflate.js#"></script>
<script type="text/javascript" src="js/prettify.js#"></script>
<script type="text/javascript" src="js/rawinflate.js#"></script>{if="$SYNTAXHIGHLIGHTING"}
<script type="text/javascript" src="js/prettify.js#"></script>{/if}
<script type="text/javascript" src="js/zerobin.js?{$VERSION|rawurlencode}#"></script>
<!--[if lt IE 10]>
<style> body {padding-left:60px;padding-right:60px;} div#ienotice {display:block;} </style>