From: Ivan Kohler Date: Tue, 5 Jun 2012 03:13:23 +0000 (-0700) Subject: add logout timeout, RT#17057 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=37805051fb90d22813cd3f5ad3995f92acdd9a72 add logout timeout, RT#17057 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 4e497c1cc..151e31c7d 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -5077,6 +5077,13 @@ and customer address. Include units.', 'type' => 'checkbox', }, + { + 'key' => 'logout-timeout', + 'section' => 'UI', + 'description' => 'If set, automatically log users out of the backoffice after this many minutes.', + 'type' => 'text', + }, + { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" }, diff --git a/httemplate/elements/header.html b/httemplate/elements/header.html index d0ab3055d..c6ad3c387 100644 --- a/httemplate/elements/header.html +++ b/httemplate/elements/header.html @@ -42,6 +42,12 @@ Example: <% include('init_overlib.html') |n %> <% include('rs_init_object.html') |n %> <% include('logout.html') |n %> +% my $timeout = $conf->config('logout-timeout'); +% if ( $timeout && $timeout =~ /^\s*\d+\s*$/ ) { + +% } <% $head |n %>