<<BACKUP_ENABLED<1>
# Default database driver prefix, is SQLite.
<<DBI_SOURCE<DBI:SQLite:>
-# ProgresSQL DB driver. Remove -> '!' prefix to tag name, to enable.
+# ProgresSQL DB driver. Remove -> '!' prefix to tag name, to enable, and override the above SQLite one.
<<!DBI_SOURCE<DBI:Pg:host=localhost;>
-
+# LOG actual variable size limit, - 1024 default, 128 minimum value.
+#<<DBI_LOG_VAR_SIZE<1024>
# Set following to an database name, if multiple aliases connect to a single log database.
# Users have to be set, and alias is then used for their userid to be able to login.
# By default this setting is disabled with 0, making alias, its own log database.
#Timezoning, if set to 1, country locale setting for timezone in config page is ignored.
<<AUTO_SET_TIMEZONE<0>
+
# Public, enabled list of categories. Remove -> '!' prefix to tag name, to enable. Be careful what category you add/enable here.
# Public records view feature only, it doesn't allow new log entries to be added and have pin point searching of all existing.
<<!PUBLIC_CATS<03,06,09>#File,System log and Event.
## Following are historical migration changes.
-//ALTER TABLE LOG RENAME AMMOUNT TO AMOUNT;
+//ALTER TABLE LOG RENAME AMOUNT TO AMOUNT;
CREATE TABLE life_log_temp_table AS SELECT * FROM LOG;
DROP TABLE LOG;
if($v){$BACKUP_ENABLED = $v; next}
$v = Settings::parseAutonom('DBI_SOURCE',$line);
if($v){Settings::dbSrc($v); next}
- $v = Settings::parseAutonom('AUTO_SET_TIMEZONE',$line);
- if($v){$AUTO_SET_TIMEZONE = $v; next}
+ $v = Settings::parseAutonom('AUTO_SET_TIMEZONE',$line);
+ if($v){$AUTO_SET_TIMEZONE = $v; next}
+ $v = Settings::parseAutonom('DBI_LOG_VAR_SIZE',$line);
+ if($v){Settings::dbVLSZ($v); next}
last if Settings::parseAutonom('CONFIG',$line); #By specs the config tag, is not an autonom, if found we stop reading. So better be last one spec. in file.
}
close $fh;
CONNECTION LIMIT = -1;
));
$db->disconnect(); undef $db;
+ return 1;
}
+ return 0;
}
sub checkCreateTables {
my %curr_tables = ();
if(Settings::isProgressDB()){
- checkPreparePGDB();
+ $changed = checkPreparePGDB();
$db = Settings::connectDB($alias, $passw);
my @tbls = $db->tables(undef, 'public');
foreach (@tbls){
# Default version is the scripted current one, which could have been updated.
# We need to maybe update further, if these versions differ.
# Source default and the one from the CONFIG table in the (present) database.
- Settings::getConfiguration($db,{backup_enabled=>$BACKUP_ENABLED,auto_set_timezone=>$AUTO_SET_TIMEZONE});
+ Settings::getConfiguration($db,{backup_enabled=>$BACKUP_ENABLED,auto_set_timezone=>$AUTO_SET_TIMEZONE, db_log_var_limit=>Settings::dbVLSZ()});
my $DB_VERSION = Settings::release();
my $hasLogTbl = $curr_tables{'LOG'};
my $hasNotesTbl = $curr_tables{'NOTES'};
$stc->finish();
}
#
- #Fetch entries!
+ # Fetch log entries!
#
my $CID_EVENT = 9;
my $tags = "";
<tr class="collpsd">
<td align="right">View by Category:</td>
<td align="left">
-
<span id="lcat_v" class="ui-button">$catselected</span>
<button class="bordered" data-dropdown="#dropdown-standard-v">«</button>
<div id="dropdown-standard-v" class="dropdown-menu dropdown-anchor-left-center dropdown-has-anchor">
$BUFFER = $cgi->start_html(
-title => "Personal Log",
-BGCOLOR => $BGCOL,
- -onload => "onBodyLoad('$toggle','".Settings::timezone()."','$today','".&Settings::sessionExprs."',$rs_cur);",
+ -onload => "onBodyLoad('$toggle','".&Settings::timezone."','$today','".&Settings::sessionExprs."','$rs_cur',".&Settings::dbVLSZ.");",
-style => [
{ -type => 'text/css', -src => "wsrc/$TH_CSS" },
{ -type => 'text/css', -src => 'wsrc/jquery-ui.css' },