From 42d50106812c8bdf7e95e57f96c8129b7b31e1a7 Mon Sep 17 00:00:00 2001 From: fermin831 Date: Mon, 13 Jun 2016 18:18:12 +0200 Subject: [PATCH] Added some dafault values --- pandora_console/general/login_required.php | 3 +++ pandora_console/include/functions_config.php | 4 ++++ pandora_console/pandoradb.data.oracle.sql | 2 ++ pandora_console/pandoradb.data.postgreSQL.sql | 2 ++ pandora_console/pandoradb_data.sql | 2 ++ 5 files changed, 13 insertions(+) diff --git a/pandora_console/general/login_required.php b/pandora_console/general/login_required.php index 054b299982..6dc94e2eff 100644 --- a/pandora_console/general/login_required.php +++ b/pandora_console/general/login_required.php @@ -179,6 +179,9 @@ $(document).ready (function () { closeOnEscape: false, open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); } }); + + $(".ui-widget-overlay").css("background", "#000"); + $(".ui-widget-overlay").css("opacity", 0.6); }); /* ]]> */ diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 53101d68d5..d3e9c91d9c 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1482,6 +1482,10 @@ function config_process_config () { config_update_value ('identification_reminder', 1); } + if (!isset ($config["identification_reminder_timestamp"])) { + config_update_value ('identification_reminder_timestamp', 0); + } + if (!isset ($config["instance_registered"])) { config_update_value ('instance_registered', 0); } diff --git a/pandora_console/pandoradb.data.oracle.sql b/pandora_console/pandoradb.data.oracle.sql index 16572f8482..220ada0fec 100644 --- a/pandora_console/pandoradb.data.oracle.sql +++ b/pandora_console/pandoradb.data.oracle.sql @@ -135,6 +135,8 @@ INSERT INTO tconfig (token, value) VALUES ('custom_report_front_font', 'FreeSans INSERT INTO tconfig (token, value) VALUES ('custom_report_front_logo', 'images/pandora_logo_white.jpg'); INSERT INTO tconfig (token, value) VALUES ('custom_report_front_header', ''); INSERT INTO tconfig (token, value) VALUES ('custom_report_front_footer', ''); +INSERT INTO tconfig (token, value) VALUES ('identification_reminder', 1); +INSERT INTO tconfig (token, value) VALUES ('identification_reminder_timestamp', 0); INSERT INTO tconfig (token, value) VALUES ('post_process_custom_values', '{"0.00000038580247":"Seconds to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.0009765625":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}'); COMMIT; diff --git a/pandora_console/pandoradb.data.postgreSQL.sql b/pandora_console/pandoradb.data.postgreSQL.sql index 2810a99f72..fd1e2ccfb6 100644 --- a/pandora_console/pandoradb.data.postgreSQL.sql +++ b/pandora_console/pandoradb.data.postgreSQL.sql @@ -122,6 +122,8 @@ INSERT INTO "tconfig" ("token", "value") VALUES ('custom_report_front_logo', 'images/pandora_logo_white.jpg'), ('custom_report_front_header', ''), ('custom_report_front_footer', ''); +('identification_reminder', 1); +('identification_reminder_timestamp', 0); COMMIT WORK; diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 9194f65f79..5b157fba6e 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -109,6 +109,8 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('custom_report_front_logo', 'images/pandora_logo_white.jpg'), ('custom_report_front_header', ''), ('custom_report_front_footer', ''), +('identification_reminder', 1), +('identification_reminder_timestamp', 0), ('post_process_custom_values', '{"0.00000038580247":"Seconds to months","0.00000165343915":"Seconds to weeks","0.00001157407407":"Seconds to days","0.01666666666667":"Seconds to minutes","0.00000000093132":"Bytes to Gigabytes","0.00000095367432":"Bytes to Megabytes","0.0009765625":"Bytes to Kilobytes","0.00000001653439":"Timeticks to weeks","0.00000011574074":"Timeticks to days"}'); UNLOCK TABLES;