JoshPet
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="" />
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.
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.
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.
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/0206:01 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.
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/0208:49 PM)
_________________________
UBB.threads beta tester / threadsdev.com moderator Software consulting services including UBB.threads problem resolution / installs / upgrades / customization.
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.
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.