From 7592ea792d1cf4f496fb5c9f850b506507c1df75 Mon Sep 17 00:00:00 2001 From: Metabox Date: Wed, 7 Aug 2019 07:27:14 +1000 Subject: [PATCH] Started on new fix features. Error handling fixed. --- htdocs/cgi-bin/config.cgi | 426 ++++++++++++++++++-------------------- 1 file changed, 207 insertions(+), 219 deletions(-) diff --git a/htdocs/cgi-bin/config.cgi b/htdocs/cgi-bin/config.cgi index c0c0eaa..0d8a9e8 100755 --- a/htdocs/cgi-bin/config.cgi +++ b/htdocs/cgi-bin/config.cgi @@ -40,7 +40,7 @@ my $cipher_key = '95d7a85ba891da'; #15mg data post limit $CGI::POST_MAX = 1024 * 15000; -my $LOGOUT = 0; +my ($LOGOUT,$ERROR) = (0,""); my $cgi = CGI->new; my $session = new CGI::Session("driver:File",$cgi, {Directory=>$LOG_PATH}); my $sid=$session->id(); @@ -85,16 +85,13 @@ $today->set_time_zone( $TIME_ZONE ); my $stmtCat = 'SELECT * FROM CAT ORDER BY ID;'; -$dbs = $db->prepare( $stmtCat ); -$rv = $dbs->execute() or die or die "

Error->"& $DBI::errstri &"

"; - my $status = "Ready for change!"; - ############### &processSubmit; ############### + print $cgi->header(-expires=>"+6s", -charset=>"UTF-8"); print $cgi->start_html(-title => "Personal Log", -BGCOLOR=>"#c8fff8", -onload => "loadedBody();", @@ -129,7 +126,6 @@ print $cgi->start_html(-title => "Personal Log", -BGCOLOR=>"#c8fff8", ); - print qq(