From: Will Budic Date: Thu, 30 Nov 2023 08:48:10 +0000 (+1100) Subject: Started work, revisit of L&F. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=b6fa6710cb64ef152ad788940f1e4c2849c7f69f;p=LifeLog.git Started work, revisit of L&F. --- diff --git a/htdocs/cgi-bin/login_ctr.cgi b/htdocs/cgi-bin/login_ctr.cgi index 1640cd6..71913fb 100755 --- a/htdocs/cgi-bin/login_ctr.cgi +++ b/htdocs/cgi-bin/login_ctr.cgi @@ -23,6 +23,7 @@ BEGIN { } my $cgi = CGI->new(); + my $session = CGI::Session->new("driver:File",$cgi, {Directory=>&Settings::logPath, SameSite=>'Lax'}); my $sssCreatedDB = $session->param("cdb"); my $sid=$session->id(); @@ -57,10 +58,11 @@ try{ my ($css,$colBG,$colSHDW) = (Settings::theme('css'),Settings::theme('colBG'),Settings::theme('colSHDW')); print $cgi->header(-expires=>"0s", -charset=>"UTF-8", -cookie=>$cookie); print $cgi->start_html( + -dtd=>"html", -title => "Personal Log Login", # -BGCOLOR => $colBG, - -script=> [ {-type => 'text/javascript', -src => 'wsrc/main.js'}, - {-type => 'text/javascript', -src => 'wsrc/feeds.js'}, + -script=> [ {-type => 'text/javascript', -src => 'wsrc/main.js'}, + {-type => 'text/javascript', -src => 'wsrc/feeds.js'}, {-type => 'text/javascript', -src => 'wsrc/jquery.js'}, {-type => 'text/javascript', -src => 'wsrc/jquery-ui.js'}], -style => [ @@ -68,21 +70,20 @@ try{ {-type => 'text/css', -src => 'wsrc/feeds.css'}, {-type => 'text/css', -src => 'wsrc/jquery-ui.css'}, {-type => 'text/css', -src => 'wsrc/jquery-ui.theme.css'}, - {-type => 'text/css', -src => $css} + {-type => 'text/css', -src => $css} ], -onload => "onBodyLoadGeneric()" ); - my @ht = split(m/\s/,`hostname -I`); - my $hst = ""; - $hst = `hostname` . "($ht[0])" if (@ht); + my @ht = (`hostname -I` =~ m/(.*)\s/g); + my $host = `hostname`; $host =~ s/\s*$//g; $host .= "($ht[0])" if (@ht); $frm = < - + @@ -98,42 +99,43 @@ try{ Make sure you note down your password. - +
Welcome to Life Log

Welcome to Life Log

Alias:
Host -> $hst
Host -> $host
HTML - print qq(
-
-
); Settings::printDebugHTML($DBG) if Settings::debug(); print $cgi->end_html; @@ -938,4 +940,3 @@ EContactHash : 990MWWLWM8C2MI8K (https://github.com/wbudic/EContactHash.md) Source : https://github.com/wbudic/LifeLog Open Source Code License -> https://github.com/wbudic/PerlCNF/blob/master/ISC_License.md =cut copyright - diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 0799a7a..3ba9442 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -828,6 +828,7 @@ if($isPUBViewMode){ +

Please Wait...
HTML } @@ -849,12 +850,7 @@ my $frm = qq(     - - -
Please Wait...
-    Category:  - @@ -870,7 +866,7 @@ my $frm = qq( - Amount: + Amount:   Marks as: @@ -1074,7 +1070,7 @@ else{

- Log
+ Log