From 27f91f3d8eb8fac2bcff73a435a02c39bf2249ae Mon Sep 17 00:00:00 2001 From: Banana Date: Tue, 19 Mar 2013 10:21:14 +0100 Subject: [PATCH] ignores and a new start --- .gitignore | 1 + insipid2.cgi | 15 +++++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) mode change 100644 => 100755 insipid2.cgi diff --git a/.gitignore b/.gitignore index 6f2e1f8..c7152ad 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ insipid-config.cgi .project .htaccess +phantomjs diff --git a/insipid2.cgi b/insipid2.cgi old mode 100644 new mode 100755 index 4833810..8c0b3be --- a/insipid2.cgi +++ b/insipid2.cgi @@ -24,8 +24,15 @@ 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."); +#http://search.cpan.org/~wonko/HTML-Template-2.94/ +use HTML::Template; + +# debug. Send errors to the browser +use CGI::Carp qw(warningsToBrowser fatalsToBrowser); + +if(!-e "insipid-config_.cgi") { + print $html->header('text/html'); + print $html->start_html(); + print $html->h1("Configuration file missing"); + print $html->end_html(); } \ No newline at end of file -- 2.39.5