Unclassified NewsBoard Code Reference

UnbUpdateStat function

Update a statistics value in the database

function UnbUpdateStat ($key, $offset);

Parameters:

key
(string) "NewThreads", "NewPosts", "OnlineUsers", "OnlineGuests", "NewUsers"
value
(int)
for "OnlineUsers" and "OnlineGuests" keys:
New absolute value, will be saved if it's greater than current value
else:
Value to add/subtract to current value (difference value)
offset

Implementation file: unb_lib/stat.lib.php, line 56

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.