From d247bff8970ca662d46ad8042c3285cdd4562b9e Mon Sep 17 00:00:00 2001 From: Simon Rupf Date: Thu, 31 Oct 2013 22:24:40 +0100 Subject: [PATCH] syntax highlighting can now be turned off, template can be changed in configuration --- cfg/conf.ini | 3 +++ lib/zerobin.php | 2 +- tpl/page.html | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cfg/conf.ini b/cfg/conf.ini index 77c43ec..5b91ece 100644 --- a/cfg/conf.ini +++ b/cfg/conf.ini @@ -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] diff --git a/lib/zerobin.php b/lib/zerobin.php index 1e57fbb..89585db 100644 --- a/lib/zerobin.php +++ b/lib/zerobin.php @@ -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']); } /** diff --git a/tpl/page.html b/tpl/page.html index 652e6d4..abff849 100644 --- a/tpl/page.html +++ b/tpl/page.html @@ -10,8 +10,8 @@ - - + {if="$SYNTAXHIGHLIGHTING"} + {/if}