From 99e71f47db81555911c8c899cda0143baaf28bd0 Mon Sep 17 00:00:00 2001 From: Banana Date: Thu, 14 Mar 2013 22:00:54 +0100 Subject: [PATCH] new start --- ChangeLog | 4 ++++ insipid.cgi | 7 ++++--- insipid2.cgi | 31 +++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 insipid2.cgi diff --git a/ChangeLog b/ChangeLog index 2ec7548..b44685f 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +version 1.6 (tba) + * code fixes + * new options in htaccess file + version 1.5 (30 Nov. 2012) * support phantomjs as a screenshot tool for a bookmark * code updates and cleanup diff --git a/insipid.cgi b/insipid.cgi index 4bb6de3..746ec33 100755 --- a/insipid.cgi +++ b/insipid.cgi @@ -2,6 +2,9 @@ # # Copyright (C) 2008 Luke Reeves # +# Copyright (C) 2012 Johannes Keßler +# https://github.com/jumpin-banana/insipid +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -78,9 +81,7 @@ sub show_error { print "Insipid Error"; print ""; print "

$subject

"; - print "

"; - print "

$body"; - print "

"; + print "

$body

"; if(defined($error)) { print '
' . $error . '
'; diff --git a/insipid2.cgi b/insipid2.cgi new file mode 100644 index 0000000..4833810 --- /dev/null +++ b/insipid2.cgi @@ -0,0 +1,31 @@ +#!/usr/bin/perl +# +# Copyright (C) 2008 Luke Reeves +# +# Copyright (C) 2012 Johannes Keßler +# https://github.com/jumpin-banana/insipid +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA +# + +use warnings; +use strict; + +if(!-e "insipid-config.cgi") { + # TODO: Better error message here. + show_error("Configuration file missing", "The \"insipid-config.cgi\"" . + " file could not be found."); +} \ No newline at end of file -- 2.39.5