{
time_t now;
now = time(NULL);
- StrBufAppendPrintf(Target, "%l", now);
+ StrBufAppendPrintf(Target, "%ld", now);
}
void
InitModule_DATE
(void)
{
- RegisterNamespace("DATE:NOW:STR", 1, 2, tmplput_nowstr, CTX_NONE);
- RegisterNamespace("DATE:NOW:NO", 1, 2, tmplput_nowno, CTX_NONE);
+ RegisterNamespace("DATE:NOW:STR", 0, 0, tmplput_nowstr, CTX_NONE);
+ RegisterNamespace("DATE:NOW:NO", 0, 0, tmplput_nowno, CTX_NONE);
}
/*@}*/
<tr><td><?_("User ID number")></td><td><input type="text" name="usernum" value="<?USERLIST:UID>" maxlength="7"></td></tr>
<tr><td><?_("Date and time of last login")></td><td><select name="lastcall">
<option selected value="<?USERLIST:LASTLOGON:NO>"><?USERLIST:LASTLOGON:STR></option>
- <option value="<?TIME:NOW:NO>"><?TIME:NOW:STR></option>
+ <option value="<?DATE:NOW:NO>"><?DATE:NOW:STR></option>
</select></td></tr>
<tr><td><?_("Auto-purge after this many days")></td><td><input type="text" name="purgedays" value="<?USERLIST:DAYSTILLPURGE>" maxlength="5"></td></tr>
ul->AccessLevel = StrBufExtract_int(SerializedUser, 5, '|');
ul->UID = StrBufExtract_int(SerializedUser, 6, '|');
StrBufExtract_token(ul->LastLogon, SerializedUser, 7, '|');
- /// TODO: ul->LastLogon -> ulLastLogonT
+ ul->LastLogonT = StrTol(ul->LastLogon);
ul->DaysTillPurge = StrBufExtract_int(SerializedUser, 8, '|');
return ul;
}
RegisterConditional(HKEY("COND:USERACCESS"), 0, ConditionalUserAccess, CTX_USERLIST);
RegisterConditional(HKEY("COND:USERLIST:FLAG:USE_INTERNET"), 0, ConditionalFlagINetEmail, CTX_USERLIST);
- RegisterConditional(HKEY("COND:USERNAME"), 0, ConditionalUser, CTX_USERLIST);
RegisterIterator("USERLIST", 0, NULL, iterate_load_userlist, NULL, DeleteHash, CTX_USERLIST);
}
/*@}*/