### v.2.0 SUN STABLE Encountered
+* Implement gzip http page encoding compression of traffic.
* Multiple search views and their settings, should be preserved as last preset. Maybe even have name multiple ones in a dropdown.
* ✔ Autocompletion picks up long false words, in html and code type messages.
sudo cpan Regexp::Common;
sudo cpan JSON;
sudo cpan Switch;
-sudo cpan install IPC::Run
+sudo cpan IPC::Run
+sudo cpan Gzip::Faster;
#Install DBI module
sudo cpan DBI;
32|$KEEP_EXCS = 0`Cache excludes between sessions, off (default) or on.
34|$VIEW_ALL_LMT=1000`Limit of all records displayed for large logs. Set to 0, for unlimited.
36|$TRACK_LOGINS=1`Create system logs on login/logout of Life Log.
+38|$COMPRESS_ENC=0`Compress Encode pages, default -> 0=false, 1=true.
<<CAT<3>
01|Unspecified `For quick uncategorised entries.
03|File System `Operating file system/Application short log.
-#!/usr/bin/perl -w
+#!/usr/bin/perl
#
# Programed by: Will Budic
# Open Source License -> https://choosealicense.com/licenses/isc/
<td>$d</td>);
next;
}
+ elsif($n eq "COMPRESS_ENC"){
+ my($l,$u)=("","");
+ if($v == 0){
+ $l = "SELECTED"
+ }
+ else{
+ $u = "SELECTED"
+ }
+ $v = qq(<select id="cmp_enc" name="var$i">
+ <option value="0" $l>False</option>
+ <option value="1" $u>True</option>
+ </select>);
+ }
elsif(!defined(Settings::anon($n))){ #change into settable field to us found here unknown and not anon.
$v = '<input name="var'.$i.'" type="text" value="'.$v.'" size="12">';
}
use Regexp::Common qw /URI/;
use List::MoreUtils qw(uniq);
+use Gzip::Faster;
#DEFAULT SETTINGS HERE!
use lib "system/modules";
our $THEME = 'Standard';
our $TRACK_LOGINS = 1;
our $KEEP_EXCS = 0;
+our $COMPRESS_ENC = 0; #HTTP Compressed encoding.
#Annons here, variables that could be overiden in code or database, per need.
sub keepExcludes {return $KEEP_EXCS}
sub bgcol {return $BGCOL}
sub css {return $TH_CSS}
+sub compressPage {return $COMPRESS_ENC}
sub debug {my $ret=shift; if($ret){$DEBUG = $ret;}; return $DEBUG;}
sub createCONFIGStmt {
case "DEBUG" { $DEBUG = $r[2];}
case "KEEP_EXCS" { $KEEP_EXCS = $r[2];}
case "TRACK_LOGINS" { $TRACK_LOGINS = $r[2];}
+ case "COMPRESS_ENC" { $COMPRESS_ENC = $r[2];}
else { $anons{$r[1]} = $r[2];}
}
}