mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
syntax highlighting can now be turned off, template can be changed in
configuration
This commit is contained in:
parent
630e16c4a0
commit
d247bff897
|
@ -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]
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user