| 3 |
// $Id$ |
// $Id$ |
| 4 |
// ----------------------------------------------------------------------------- |
// ----------------------------------------------------------------------------- |
| 5 |
// $Log$ |
// $Log$ |
| 6 |
|
// Revision 1.3 2002/12/04 07:42:54 jonen |
| 7 |
|
// + changes according to backend schema change |
| 8 |
|
// |
| 9 |
|
// Revision 1.2 2002/12/03 16:47:22 joko |
| 10 |
|
// - function preLogout() |
| 11 |
|
// + function preLogout($autologout = 0) |
| 12 |
|
// + function hadTimeout() |
| 13 |
|
// |
| 14 |
// Revision 1.1 2002/11/12 05:42:31 joko |
// Revision 1.1 2002/11/12 05:42:31 joko |
| 15 |
// + initial checkin |
// + initial checkin |
| 16 |
// |
// |
| 240 |
|
|
| 241 |
} |
} |
| 242 |
|
|
| 243 |
function preLogout() { |
function preLogout($autologout = 0) { |
| 244 |
global $site; |
global $site; |
| 245 |
$this->state[status] = ''; |
$this->state[status] = ''; |
| 246 |
|
$this->state[autologout] = $autologout; |
| 247 |
$this->_saveState(); |
$this->_saveState(); |
| 248 |
} |
} |
| 249 |
|
|
| 250 |
function getAccountSum() { |
function getAccountSum() { |
| 251 |
// store additional user-data to state |
// store additional user-data to state |
| 252 |
if (!$this->state[accountSum]) { |
if (!$this->state[accountSum]) { |
| 253 |
$this->state[accountSum] = $this->get("financeInfo.accountSum"); |
$this->state[accountSum] = $this->get("account.amount"); |
| 254 |
$this->_saveState(); |
$this->_saveState(); |
| 255 |
} |
} |
| 256 |
return $this->state[accountSum]; |
return $this->state[accountSum]; |
| 259 |
function getAccountCurrency() { |
function getAccountCurrency() { |
| 260 |
// store additional user-data to state |
// store additional user-data to state |
| 261 |
if (!$this->state[accountCurrency]) { |
if (!$this->state[accountCurrency]) { |
| 262 |
$this->state[accountCurrency] = $this->get("financeInfo.currency"); |
$this->state[accountCurrency] = $this->get("account.currency"); |
| 263 |
$this->_saveState(); |
$this->_saveState(); |
| 264 |
} |
} |
| 265 |
//print "state: " . $this->get("financeInfo.currency") . "<br>"; |
//print "state: " . $this->get("financeInfo.currency") . "<br>"; |
| 309 |
return $this->state[postvars][$var]; |
return $this->state[postvars][$var]; |
| 310 |
} |
} |
| 311 |
|
|
| 312 |
|
function hadTimeout() { |
| 313 |
|
if ($this->state[autologout]) { return 1; } |
| 314 |
|
} |
| 315 |
|
|
| 316 |
} |
} |
| 317 |
|
|