
04-02-2002, 01:58 PM
|
|
|
Join Date: Feb 2002
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally posted by Jawelin
Yeah. Infact yesterday I applied the hack and found about 270 users from the midnight with all your corrections.
Today I have 0 (zero!) users, according to the same hack...
Actually I think the traslation you made to $unixtoday var had the wrong sign ... :?:
I though to a simpler solution, I guess.
Simply, replace in the ORIGINAL HACK CODE:
PHP Code:
mktime(0,0,0,date("m"),date("d"),date("Y"));
with:
PHP Code:
mktime($timeoffset-$bbuserinfo['timezoneoffset'],0,0,date("m"),date("d"),date("Y"));
This should traslate the server's midnight time towards the user one.
What do you thin about ?
|
It does not give desirable outcomes!
I have other solution:
Quote:
in the ORIGINAL HACK CODE (index.php & onlinetoday.php):
replace:
PHP Code:
mktime(0,0,0,date("m"),date("d"),date("Y"))
with:
PHP Code:
mktime(0,0,0,vbdate("m", time()),vbdate("d",time()),vbdate("Y", time()))
|
It should work.
|