From: Will Budic Date: Mon, 17 Feb 2020 19:14:33 +0000 (+1100) Subject: New CNF Development. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=a2231264dc278291a65c05eb70c2f83006323e36;p=LifeLog.git New CNF Development. --- diff --git a/dbLifeLog/database.cnf b/dbLifeLog/database.cnf index 0ad6952..db60ee9 100644 --- a/dbLifeLog/database.cnf +++ b/dbLifeLog/database.cnf @@ -1,9 +1,14 @@ +!CNF1.1 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/ The credential format:< , dont enable here using AUTO_LOGIN option bellow, use config in app. -<> +<>> +# List command anon with the name of 'list_cmd'. +<>> <<> +>>> + + <>> +<>> +<>> +<>> +<>> +<> +<> + +<>> +<>> +<<>> + +<<$HELP>> + + +<>> + +<>> \ No newline at end of file diff --git a/dbLifeLog/databaseInventory.cnf b/dbLifeLog/databaseInventory.cnf new file mode 100644 index 0000000..c90f4f5 --- /dev/null +++ b/dbLifeLog/databaseInventory.cnf @@ -0,0 +1,56 @@ +!CNF1.1 +Sample database and data. Presentnting a Inventory database of itmes. Having multiple categories. +<<> + +<> + +<> + + +<> + +<> + +/** + * Following file contains rest of data for ITEMS table. + */ +<>> + + diff --git a/dbLifeLog/databaseInventoryDATA.cnf b/dbLifeLog/databaseInventoryDATA.cnf new file mode 100644 index 0000000..5f64215 --- /dev/null +++ b/dbLifeLog/databaseInventoryDATA.cnf @@ -0,0 +1,8 @@ +!CNF1.1 +Sample database data tagged properties. +See databaseInventory.cnf for data structure. +<> diff --git a/htdocs/cgi-bin/configFileTester.pl b/htdocs/cgi-bin/configFileTester.pl deleted file mode 100755 index 11628d6..0000000 --- a/htdocs/cgi-bin/configFileTester.pl +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/perl -w -# -# Programed by: Will Budic -# Open Source License -> https://choosealicense.com/licenses/isc/ -# -use strict; -use warnings; -use Try::Tiny; - -use DateTime; -use DateTime::Format::SQLite; -use DateTime::Duration; -use Text::CSV; - -#DEFAULT SETTINGS HERE! -use lib "system/modules"; - -use lib $ENV{'PWD'}.'/htdocs/cgi-bin/system/modules'; -require CNFParser; - -my $cnf = CNFParser->new(); - -$cnf->parse($ENV{'PWD'}."/dbLifeLog/database.cnf"); - -foreach ($cnf->SQLStatments()){ - print "$_\n"; -} -foreach my $p ($cnf->constants()){ - - print "$p=", $cnf->constant($p),"\n"; -} -# foreach (sort keys %ENV) { -# print "$_= $ENV{$_}\n"; -# } - -### CGI END -1;