Time Zone And Browsers Ban Error

Started on the old forum in April 2007 · view the original in the archive · old links redirect here

41 replies · 3,968 views · started 19 years ago · 1 min read

TL;DR · summary of 41 replies
  • $tm = time(); should be replaced with $tm = time() + (16.5 * 60 * 60); to adjust the time zone.
  • The second problem, where browsers are not showing up in user profiles and statistics, might require checking for missing or incorrect database keys like PRIMARY KEYS.
  • Adding $timeadjust = (4 * 60 * 60); // +4 hours; to config.php could help adjust the time of your site.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

6 participants
alesh Lead · 604 posts #21

hmmmm okay i made it!!!!!

i found sum $tm = time(); and i replaced it with $tm = time() + (23 * 60 * 60);

BUUUUUUUUUT subzero didnt calculate it right so i change into $tm = time() + (16.5 * 60 * 60); and now its shows

my true time hehehe im i smart or not? lmao im kiding!!!

btw if any1 will use this, then u also look 4 $shtm = time(); and similar cuz its not just $tm = time(); all over the script!!

AND THANX GOES 2 SUBZERO LOL

OKAY 1ST PROBLEM IS SOLVED... NOW BACK AT 2ND PROBLEM!!!!

wHY I CNT SEE USERS BROWSERS???????? WHERE CN I LOOK 4 THAT ERROR???

eeeeerrr....

alesh Lead · 604 posts #23

ughhhhh so no1 knows or no1 wanna help me with the 2nd problem???

i'd just like 2 know where i have 2 look 2 find that browser ERROR!!!!

u knw how hard it is when u cnt c the users browsers??

it just wont show at users profile and at the statistic the browsers r not counted....

pls any1.....

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #24

you can still do that trick lol

$shtm = time() + (16.5 * 60 * 60);

or

$shtm = time(16.5 * 60 * 60);

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #25

no sub...... that part of problem i solved lol

u c this topic has two question!!!!

now time zone is adjust and it shows my corect time!!!

but the second problem is that I DONT C USERS BROWSERS!!!! JUST THEIR IP ADDRESS.....

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #26

i dont get it your on my server i can see browsers bro

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #27

yeah i dnt get it either!!!! anyway i dnt have ibwf_browser ...... just at ibwf_users i have a browserm ....

ugh...

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #28

bro

browserm varchar(50) latin1_swedish_ci No ?? is that the same bro ?

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #29

yes its excatly the same!!!!!!!!

its the same as i have.....

it worked fine b4 i transfer 2 ur host.... maybe sumthng get lost during the transfer???

or maybe i screwd it sumwhere in the script.....

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #30

one of them is missing i'll look again ok

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

alesh Lead · 604 posts #31

okay... i searched the whole script and i compared it with other lavalair scripts, but w/out succes!!!!

evrythng looks fine... ughhhhhhhhh

but i did noticed sum warning at ibwf_users..... it says sum NO TWO PRIMARY KEYS CANT BE dnt knw what lol

maybe its sumthng there??

eeeeerrr....

Guest #32

add this to the config.php file $timeadjust = (4 * 60 * 60); // +4 hours

and replace every time() in every php file with this: (time() + $timeadjust)

so now you can adjust the time of your site in the config.php file. Hope this helps. i did it before, and it worked.

alesh Lead · 604 posts #33

add this to the config.php file $timeadjust = (4 * 60 * 60); // +4 hours

and replace every time() in every php file with this: (time() + $timeadjust) so now you can adjust the time of your site in the config.php file. Hope this helps. i did it before, and it worked.

hey thanx dude!!! i made it b4!!! now im on the 2nd problem at this topic lol time works fine now!!!!

now i wanna know why i dont c users browsers??

eeeeerrr....

alesh Lead · 604 posts #34

///////////////////////////////////////////Get IP

function getip_uid($uid) { $not = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$uid."'")); return $not[0];

}

///////////////////////////////////////////Get Browser

function getbr_uid($uid) { $not = mysql_fetch_array(mysql_query("SELECT browserm FROM ibwf_users WHERE id='".$uid."'")); return $not[0];

}

and this should b alright.... right???? i found it in core.php

eeeeerrr....

subzero Super moderator Fellow · 3,954 posts #35

lol alash bro your problem fixed once again enjoy External image (may be gone) lol

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #37

I have the same problem with time. I used on every time stamp +(76060) but the problem is in the statistics: The day begins at 7 AM.

learner Lead · 587 posts #38

how do i change the time on funmobile? i tried adding putenv("TZ=Africa/Johannesburg"); and then the site stop workin lol how to add this code in funmobile config any help?

<?php $siturl = "http://funmobile.ws"; $stitle = "FunMobile.WS"; $dbname = ""; $dbhost = "localhost"; $dbuser = ""; $dbpass = "";

Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!

BEST MOBILE ADVERTISER

External image (may be gone)

Guest #40

i put a code on meine where users can set there own time.

hmm thats the way u missed ?> that code so it should be

<?php $siturl = "http://funmobile.ws"; $stitle = "FunMobile.WS"; $dbname = ""; $dbhost = "localhost"; $dbuser = ""; $dbpass = ""; $max_buds=35; $topic_af = 120; $post_af = 45; $onver = false; ?>
                                                                      ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/006.gif) ![](http://www.2wap.org/forums/style_emoticons/<#EMO_DIR#>/006.gif)

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close