From: Metabox Date: Tue, 6 Aug 2019 21:27:14 +0000 (+1000) Subject: Started on new fix features. Error handling fixed. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=7592ea792d1cf4f496fb5c9f850b506507c1df75;p=LifeLog.git Started on new fix features. Error handling fixed. --- 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(