changed: in Request:
removed start_tm added start_date (PT::Date) changed: in Session: removed: tm_time added: start_date (PT::Date) renamed: time -> start_time the same is for last_time now we have (last_time and last_date) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@838 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include "plugindata.h"
|
||||
#include "rebus.h"
|
||||
#include "textstream.h"
|
||||
#include "date/date.h"
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +29,7 @@ struct Session
|
||||
Session(const Session & ses);
|
||||
Session & operator=(const Session & ses);
|
||||
|
||||
void SetTimeToNow();
|
||||
void SetTimesTo(time_t time);
|
||||
void Clear(bool clear_plugin_data = true);
|
||||
|
||||
|
||||
@@ -40,18 +41,27 @@ struct Session
|
||||
|
||||
// when this session was created
|
||||
// (the same values)
|
||||
time_t time;
|
||||
tm tm_time;
|
||||
time_t start_time;
|
||||
PT::Date start_date;
|
||||
|
||||
// when this session was last used
|
||||
// (the same values)
|
||||
time_t last_time;
|
||||
tm tm_last_time;
|
||||
time_t last_time;
|
||||
PT::Date last_date;
|
||||
|
||||
// when there was a last get request
|
||||
// (used to calculate spam)
|
||||
time_t last_time_get;
|
||||
|
||||
// how many seconds should be added/substructed from the universal time
|
||||
// to create the local time for this session/user
|
||||
// it has combined time zone offset and daylight saving time
|
||||
// so when reading a value from a user (e.g. in html form) you should
|
||||
// substract tz_add and when printing you should add it
|
||||
time_t tz_add;
|
||||
|
||||
|
||||
|
||||
// 0 - means that nobody is logged
|
||||
User * puser;
|
||||
|
||||
|
Reference in New Issue
Block a user