From: Will Budic Date: Tue, 7 Jan 2020 06:59:18 +0000 (+1100) Subject: added data view mode to menu. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=705cd9e588daa7370adf0861bad6ab91018ca14f;p=LifeLog.git added data view mode to menu. --- diff --git a/dbLifeLog/main.cnf b/dbLifeLog/main.cnf index 568cdba..d7b3149 100644 --- a/dbLifeLog/main.cnf +++ b/dbLifeLog/main.cnf @@ -3,7 +3,7 @@ This is the main configuration file for the LifeLog applications settings. https://github.com/wbudic/LifeLog This is an Open Source License project -> https://choosealicense.com/licenses/isc/ Credential format:< , dont enable here using AUTO_LOGIN option bellow, use config in app. -< +< < 00|$RELEASE_VER = 1.7`LifeLog Application Version. 01|$REC_LIMIT = 25`Records shown per page. diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index bda923e..f4628e4 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -33,6 +33,7 @@ my $dbname = $sss->param('database'); my $userid = $sss->param('alias'); my $password = $sss->param('passw'); my $sssCDB = $sss->param('cdb'); +my $vmode; if ( !$userid || !$dbname ) { print $cgi->redirect("login_ctr.cgi?CGISESSID=$sid"); @@ -46,11 +47,11 @@ my $db = DBI->connect( $dsn, $userid, $password, { PrintError => 0, RaiseE my ( $imgw, $imgh ); #Fetch settings -Settings::getConfiguration($db); -Settings::getTheme(); + Settings::getConfiguration($db); + Settings::getTheme(); ### Authenticate sss to alias password -&authenticate; - + &authenticate; +# my $log_rc = 0; my $log_rc_prev = 0; my $log_cur_id = 0; @@ -68,7 +69,7 @@ my $stmS = 'SELECT ID, ID_CAT, DATE, LOG, AMOUNT, AFLAG, RTF, STICKY from my $stmE = ""; my $stmD = ""; my $sm_reset_all; -my $rl = &Settings::recordLimit; +my $rec_limit = &Settings::recordLimit; ### Page specific settings Here my $TH_CSS = &Settings::css; my $BGCOL = &Settings::bgcol; @@ -614,7 +615,7 @@ qq(\n); $log_rc += 1; - if ( $rl > 0 && $log_rc == $rl ) { + if ( $rec_limit > 0 && $log_rc == $rec_limit ) { last; } @@ -817,10 +818,8 @@ _TXT ################################ -print -qq(