php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#225843 - 10/03/02 05:38 PM Browser Check
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
This is a standalone script which checks whether the user's browser supports various features used by UBB.threads, and displays the results. <br /> <br />The idea is that if a user if having a problem using UBB.threads, he can run this script to help isolate the problem. <br /> <br />The following client-side features are tested: <br /> Cookies - Cookies can be set and read. <br /> Referrer - The URL of the referring page can be read. <br /> Javascript - Javascript within a web page can be executed. <br /> Javascript read cookie - Cookies can be read using Javascript. <br /> Javascript set cookie - Cookies can be set using Javascript. <br /> Clock - The server and client clocks agree within a specified tolerance. <br /> <br />Feedback requested. <img src="/threads/php/images/graemlins/smile.gif" alt="" /> <br /> <br />Please test this with different platforms/browsers, and with different browser security settings. <br /> <br />Edit: attachment updated to version 1.0.1 - made downward-compatible with PHP 4.0 <br /> <br />Edit: attachment updated to version 1.1.0 - added Javascript cookie tests and clock test, and added a separate configuration file.[i] <br /> <br />[i]Edit: attachment updated to version 1.2.0 - split single referrer test into three tests, changed clock difference display to use appropriate time units, added a few parameters to configuration file. <br /> <br />Edit: attachment updated to version 1.2.1 - Fixed clock difference display to use appropriate time units for negative values. <br /> <br />Edit: attachment updated to version 1.3.0 - Added link to Infopop's Browser Problems article on test results page. <br /> <br />--------- <br /> <br />Reposted here.


Edited by Dave_L (07/10/03 06:05 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225844 - 10/03/02 05:58 PM Re: Browser Check [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
This sounds Really Cool! <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Thanks Dave.<br /><br />Is there anything I need to configure? I copied it into my threads directory, but when I visit the page, I get this error:<br /><br />Warning: Undefined variable: _SERVER in /home/measurection/htdocs/forums/browser_check.php on line 41<br /><br />Warning: Cannot add header information - headers already sent by (output started at /home/measurection/htdocs/forums/browser_check.php:41) in /home/measurection/htdocs/forums/browser_check.php on line 41<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225845 - 10/03/02 06:08 PM Re: Browser Check [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
What version of PHP are you running?<br /><br />The variable $_SERVER is only implemented in PHP 4.1+. There's a note about that in the script. I wonder if I should make it downward-compatible with PHP 4.0.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225846 - 10/03/02 06:16 PM Re: Browser Check [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Ahhh.....<br /><br />Just did a PHP Info and I've got 4.0.<br /><br />Surprising tha I didn't read all the directions. LOL So unlike me. <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />Sorry. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225847 - 10/03/02 06:23 PM Re: Browser Check [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I'll go ahead and make the script compatibile with 4.0, since there are probably a lot of people still using that.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225848 - 10/03/02 06:30 PM Re: Browser Check [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I've never been one to upgrade "if it ain't broke".. but should I be running PHP 4.1.<br /><br />I haven't fooled with any OS upgrades for fear of screwing something up that I don't undersstand... but I think Rackspace would do it for me if I filled out a ticket.<br /><br />Is 4.1 a security fix?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225849 - 10/03/02 06:33 PM Re: PHP versions [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I'm in the same position, except that I'm using 4.1.2, and should probably upgrade to 4.2. I had so much trouble getting PHP and MySQL working on my server, though, that I'm scared to upgrade. <img src="/forum/images/graemlins/crazy.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225850 - 10/03/02 07:30 PM Re: PHP versions [Re: joeuser]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
A good number of security fixes have been added since 4.0 <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#225851 - 10/03/02 07:33 PM Re: PHP versions [Re: SurfMinister]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
we must have the same issues here:<br /><br />http://www.threadsdev.com/threads/browser_check.php<br /><br /><img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#225852 - 10/03/02 07:41 PM Re: PHP versions [Re: SurfMinister]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
It looks like you're running PHP 4.0.6 here. Is that correct? I thought you were more progressive than that. <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225853 - 10/03/02 07:55 PM Re: Browser Check [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I've updated the attachment in the initial post, so the script should work on PHP 4.0. The new version is 1.0.1, and the timestamp on the PHP file is 2002-10-04 0032 GMT.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225854 - 10/03/02 08:04 PM Re: Browser Check [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
That's really cool!<br /><br />Thanks dave!<br /><br />I'm adding this to my help forum at my site. <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Thanks
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225855 - 10/03/02 08:18 PM Re: PHP versions [Re: joeuser]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
This is infopop's server... we're just happy squatters <img src="/forum/images/graemlins/tongue.gif" alt="" /><br /><br />I'll upload your new script in a second <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#225856 - 10/03/02 08:20 PM Re: PHP versions [Re: SurfMinister]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Cool, works well <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#225857 - 10/03/02 08:27 PM Re: Browser Check [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
If anyone wants to see it in action, you can here.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225858 - 10/04/02 04:15 PM Re: Browser Check [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Okay mine does not pass the referer check what can I do?<br /><br />Feature Description Test result <br />Cookies Client-side cookies can be set and read. PASSED <br />Referrer The URL of the referring page can be read. FAILED <br />Javascript Javascript within a web page can be executed. PASSED <br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#225859 - 10/04/02 04:23 PM Re: Browser Check [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
You probably need to adjust your firewall settings. See this document for more info. Usually it's Norton or Zone Alarm Pro. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225860 - 10/04/02 07:01 PM Re: Browser Check [Re: Daine]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Actually my settings have been set correctly for a while. Now I have no problem with UBBthreads or anything. However that test does say I pass the referer check. Probally my cable modem cache but if thats the problem i would not see new content which I indeed do.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#225861 - 10/04/02 07:13 PM Re: Browser Check [Re: sf49rminer]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Are you testing it on your site... or my site?<br /><br />If it were mine you'd probably have to add www.measurection.com into the firewall settings.<br /><br />I don't know much about how that works. Maybe Dave_L can explain more about if the test can fail if threads still works. I guess it does if the site has the refer check off. <img src="/forum/images/graemlins/wink.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225862 - 10/05/02 11:23 AM Re: Browser Check [Re: Daine]
Dslam Offline
Member

Registered: 06/05/01
Posts: 246
Loc: USA
now an idea was born .<br />hey the browser check is good but if some stuff fails <br />then you should have a link to a howto fix <br />so a page needs to be made to point out firwall setting & stuff like that .<br /><br />eh? what do you guy's think ?<br /><br />

Top
#225863 - 10/05/02 11:55 AM Re: Browser Check [Re: interforos]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Thats an Excellent Idea.<br /><br />I think I'm going to "hack" mine to link to the How To poss I have on my site for fixing the firewall etc.... <br /><br />Thanks. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225864 - 10/06/02 05:11 PM Re: Browser Check [Re: sf49rminer]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
omegatron, is that test still failing for you?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225865 - 10/06/02 05:25 PM Re: Browser Check [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Issues:<br /><br />1) Currently, the test-cookie set by the script has an expiration date/time of five minutes from "now". I'm wondering if that could cause problems if the user's clock is off a bit. Or maybe if that does cause the test to fail, it means that the test script is doing what it should. <img src="/forum/images/graemlins/confused.gif" alt="" /><br /><br />2) I'm also thinking of adding a test for server date/time vs. client date/time. I'm not sure how to do this, but maybe Javascript could be used to read the client's clock. If I can get this working, what "tolerance" do you think should be used to distinguish pass/fail?<br /><br />3) I think I'm going to add some more info to the displayed results, to aid in diagnosing test failures.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225866 - 10/09/02 05:42 PM Re: Browser Check [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
I just uploaded a new version (1.1.0) that has additional tests and a separate configuration file, which makes it easier to customize the displayed header and footer.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225867 - 10/10/02 03:56 PM Re: Browser Check [Re: joeuser]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
In the new version my referer also fails everything else passes.
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#225868 - 10/10/02 04:52 PM Re: Browser Check [Re: sf49rminer]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
1) Are you running the Browser Check script on the same server that your UBB.threads is on?<br /><br />2) In your UBB.threads configuration settings, do you have "Do you want to disable the referer check?" set to (a) "No, always check referer" or (b) "Yes, disable this check." ?
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225869 - 10/10/02 05:21 PM Re: Browser Check [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
New Version is Cool Dave! <img src="/forum/images/graemlins/cool.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#225870 - 10/10/02 05:25 PM Re: Browser Check [Re: Daine]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
<img src="/forum/images/graemlins/laugh.gif" alt="" />
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225871 - 10/10/02 05:36 PM Re: Browser Check [Re: joeuser]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Referer is no always preform check and my browser check script is run from the same server<br />
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#225872 - 10/10/02 05:57 PM Re: Browser Check [Re: sf49rminer]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Could you try this?<br /><br />Edit browser_check.php and in function do_page3() at line 216, change:<br /><pre><font class="small">code:</font><hr>$results_display<br />$clock_comparison_display<br /><p><b>Click <a href='{$HTTP_SERVER_VARS['PHP_SELF']}'>HERE</a> to repeat the tests.</b></pre><hr><br />to<br /><pre><font class="small">code:</font><hr>$results_display<br />$clock_comparison_display<br />[:"red"]<p>referrer='{$HTTP_SERVER_VARS['HTTP_REFERER']}'<br /><br />referrer_should_be='$referrer_should_be'</p>[/]<br /><p><b>Click <a href='{$HTTP_SERVER_VARS['PHP_SELF']}'>HERE</a> to repeat the tests.</b></pre><hr><br /><br />Then copy/paste the output here, or send it to me privately.<br /><br />Thanks. <img src="/forum/images/graemlins/smile.gif" alt="" /><br />


Edited by Dave_L (10/10/02 06:01 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225873 - 10/10/02 08:47 PM Re: Browser Check [Re: sf49rminer]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Thanks, got your PM, the info was helpful.<br /><br />It's interesting that on your server, the query string portion of HTTP_REFERER was not passed.<br /><br />I guess I'll need to make the referrer test more flexible.<br /><br />One question: When you're viewing the postlist for a specific board within your UBB.threads, or viewing a specific thread, and you click the Search link, does it default to searching that specific board? UBB.threads (6.1.1) seems to use the query string portion of HTTP_REFERER to figure out which board to search, so I would think that would fail.


Edited by Dave_L (10/10/02 08:49 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225874 - 10/11/02 05:05 AM Re: Browser Check [Re: joeuser]
omegatron Offline
Member

Registered: 04/05/01
Posts: 3440
Loc: abingdon,md
Nope not at all. When I click search it defaults to the forum I am viewing when viewing both a thread or postlist of the specific forum. Dave I gor your private message. I beleive I answered above. To be even more clear if I am in reefs and hit search I get reefs not all forums.


Edited by omegatron (10/11/02 04:57 PM)
_________________________
Chuck S

DIVE IN AND VISIT ME:

Omegatron\'s Reefs

Administrator at ReefTalk

Top
#225875 - 10/16/02 07:46 AM Re: Browser Check [Re: sf49rminer]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Sorry for not repliying earlier, I just noticed your reply.<br /><br />Hmmmm .... I don't understand how the search can behave like that with the referrer test failing.<br /><br />But I've updated the script to version 1.2.0, in which I've split the referrer test into three tests. In your case, I would expect the first two referrer tests to pass, and the third to fail. The third test can be disabled in the config file if desired.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225876 - 11/13/02 09:46 AM Re: Browser Check [Re: joeuser]
Dave_L_dup1 Offline
Addict

Registered: 04/23/02
Posts: 1929
Loc: Virginia, USA
Updated to version 1.2.1. This is basically just a cosmetic fix.
_________________________
UBB.threads beta tester / threadsdev.com moderator
Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.

Top
#225877 - 07/10/03 06:21 PM Re: Browser Check [Re: joeuser]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Reposted here.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
Page 1 of 2 1 2 >



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks