3 |
// $Id$ |
// $Id$ |
4 |
// ------------------------------------------------------------------------- |
// ------------------------------------------------------------------------- |
5 |
// $Log$ |
// $Log$ |
6 |
|
// Revision 1.4 2002/12/04 07:41:30 jonen |
7 |
|
// + merged conflic |
8 |
|
// |
9 |
// Revision 1.3 2002/12/03 16:13:21 joko |
// Revision 1.3 2002/12/03 16:13:21 joko |
10 |
// + bugfix with autologout: |
// + bugfix with autologout: |
11 |
// + now just setting some message to site_state here |
// + now just setting some message to site_state here |
128 |
$time_now = time(); |
$time_now = time(); |
129 |
$last_date = strtotime($mus[last_date]); |
$last_date = strtotime($mus[last_date]); |
130 |
$max_idle_date = $last_date + $max_idle_time; |
$max_idle_date = $last_date + $max_idle_time; |
131 |
|
/* |
132 |
// check timeout |
// check timeout |
133 |
if ($time_now > $max_idle_date) { |
if ($time_now > $max_idle_date) { |
134 |
// set autologout message |
// set autologout message |
140 |
$this->site->user->preLogout(1); |
$this->site->user->preLogout(1); |
141 |
$this->site->request->overrideRequestIdentifier('/home/logout/'); |
$this->site->request->overrideRequestIdentifier('/home/logout/'); |
142 |
} |
} |
143 |
|
*/ |
144 |
|
return $max_idle_date; |
145 |
} |
} |
146 |
|
|
147 |
} |
} |