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
|
; size limit per paste or comment in bytes, default is 2 Mibibytes
|
||||||
sizelimit = 2097152
|
sizelimit = 2097152
|
||||||
|
|
||||||
|
; template to include, default is "page" (tpl/page.html)
|
||||||
|
template = "page"
|
||||||
|
|
||||||
[expire]
|
[expire]
|
||||||
; expire value that is selected per default
|
; expire value that is selected per default
|
||||||
; make sure the value exists in [expire_options]
|
; make sure the value exists in [expire_options]
|
||||||
|
|
|
@ -405,7 +405,7 @@ class zerobin
|
||||||
$page->assign('SYNTAXHIGHLIGHTING', $this->_conf['main']['syntaxhighlighting']);
|
$page->assign('SYNTAXHIGHLIGHTING', $this->_conf['main']['syntaxhighlighting']);
|
||||||
$page->assign('EXPIRE', $expire);
|
$page->assign('EXPIRE', $expire);
|
||||||
$page->assign('EXPIREDEFAULT', $this->_conf['expire']['default']);
|
$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/sjcl.js#"></script>
|
||||||
<script type="text/javascript" src="js/base64.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/rawdeflate.js#"></script>
|
||||||
<script type="text/javascript" src="js/rawinflate.js#"></script>
|
<script type="text/javascript" src="js/rawinflate.js#"></script>{if="$SYNTAXHIGHLIGHTING"}
|
||||||
<script type="text/javascript" src="js/prettify.js#"></script>
|
<script type="text/javascript" src="js/prettify.js#"></script>{/if}
|
||||||
<script type="text/javascript" src="js/zerobin.js?{$VERSION|rawurlencode}#"></script>
|
<script type="text/javascript" src="js/zerobin.js?{$VERSION|rawurlencode}#"></script>
|
||||||
<!--[if lt IE 10]>
|
<!--[if lt IE 10]>
|
||||||
<style> body {padding-left:60px;padding-right:60px;} div#ienotice {display:block;} </style>
|
<style> body {padding-left:60px;padding-right:60px;} div#ienotice {display:block;} </style>
|
||||||
|
|
Loading…
Reference in New Issue