News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

smf_log_online log_time format

Started by mr.hanky, November 17, 2014, 11:32:22 AM

Previous topic - Next topic

mr.hanky

Hey i need some help,
i want to add users to the smf online list with mysql.

I need to know the log_time, were does it stand for?

example:

log_time           id_member id_spider
1416241856             3                   0

Arantor

You *really* should not be touching that table directly, that is seriously not recommended for all kinds of reasons, not least session handling will be messed up and possibly insecure.

vbgamer45

log_time  is stored in a unix timestamp
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Branko.

Quote from: mr.hanky on November 17, 2014, 11:32:22 AM
..I need to know the log_time....
...timestamp is based on seconds since standard epoch of 1/1/1970

I agree wit this ..
Quote from: Arantor on November 17, 2014, 04:04:15 PM
You *really* should not be touching that table directly, that is seriously not recommended for all kinds of reasons, not least session handling will be messed up and possibly insecure.

Touch in a bee's nest? If you wish to know, try Convert Unix timestamp to Readable Date/time and vice versa

Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

mr.hanky

Okay thanks!

The reason i need to do this is because im using smf as and ucp for samp.
wich is coded in pawn.

When players connect in-game they will be in the online list, i got it working. thanks! ;)

Arantor

Which means they need proper sessions and stuff. Doing what you asked for would be a security risk on its own.

How exactly do you envisage it working?

Advertisement: