Bug - 5511: Added new system preference: SessionRestrictionByIP

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Amit Gupta 2013-10-08 09:36:59 +05:30 committed by Tomas Cohen Arazi
parent e3bb139080
commit 2d4d65d526
2 changed files with 9 additions and 1 deletions

View file

@ -472,5 +472,6 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('XSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on intranet','Free'),
('XSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on intranet','Free'),
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo')
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
('SessionRestrictionByIP','0','Check for Change in Remote IP address for Session Security . Disable when remote ip address changes frequently.','','YesNo');
;

View file

@ -9752,6 +9752,13 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "3.19.00.XXX";
if ( CheckVersion($DBversion) ) {
$dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SessionRestrictionByIP','0','Check for Change in Remote IP address for Session Security. Disable when remote ip address changes frequently.','','YesNo')");
print "Upgrade to $DBversion done (Bug 5511 - SessionRestrictionByIP)";
SetVersion ($DBversion);
}
=head1 FUNCTIONS
=head2 TableExists($table)