| Author |
Message |
christianb Worker


Joined: Nov 24, 2004 Posts: 131 Location: Batesville, AR
|
Posted:
Sun May 15, 2005 7:03 pm |
|
I'm almost 100% sure it has to do with mainfile.php - I uploaded the 7.6 version and there was activity with firefox, but with the patched version (aka 7.7) it was blank - nothing. |
|
|
|
 |
christianb Worker


Joined: Nov 24, 2004 Posts: 131 Location: Batesville, AR
|
Posted:
Sun May 15, 2005 7:37 pm |
|
I found the offending code!!! * Pats self on back *
In the patched 7.7 version, this code stopped firefox from seeing my website (why I've not figured out YET)
| Code: | if ($phpver < '4.1.0') {
$_GET = $HTTP_GET_VARS;
$_POST = $HTTP_POST_VARS;
$_SERVER = $HTTP_SERVER_VARS;
}
if ($phpver >= '4.0.4pl1' && strstr($_SERVER["HTTP_USER_AGENT"],'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start(array('ob_gzhandler',5));
ob_implicit_flush(0);
header('Content-Encoding: gzip');
}
}
} |
The code I used from 7.6 is this:
| Code: | if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
//header('Content-Encoding: gzip');
}
}
} |
The resulting code looks like this:
| Code: | $phpver = phpversion();
//if ($phpver < '4.1.0') {
// $_GET = $HTTP_GET_VARS;
// $_POST = $HTTP_POST_VARS;
// $_SERVER = $HTTP_SERVER_VARS;
//}
//if ($phpver >= '4.0.4pl1' && strstr($_SERVER["HTTP_USER_AGENT"],'compatible')) {
// if (extension_loaded('zlib')) {
// ob_end_clean();
// ob_start('ob_gzhandler');
// }
//} else if ($phpver > '4.0') {
// if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
// if (extension_loaded('zlib')) {
// $do_gzip_compress = TRUE;
// ob_start(array('ob_gzhandler',5));
// ob_implicit_flush(0);
// header('Content-Encoding: gzip');
// }
// }
//}
if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
//header('Content-Encoding: gzip');
}
}
} |
Now firefox works  |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Sun May 15, 2005 7:57 pm |
|
Make a copy of mainfile.php and in one of them edit the code you commented out to:
| Code: | if ($phpver < '4.1.0') {
$_GET = $HTTP_GET_VARS;
$_POST = $HTTP_POST_VARS;
$_SERVER = $HTTP_SERVER_VARS;
}
if ($phpver >= '4.0.4pl1' && strstr($_SERVER["HTTP_USER_AGENT"],'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
} else if ($phpver > '4.0') {
if (strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
if (extension_loaded('zlib')) {
$do_gzip_compress = TRUE;
ob_start();
ob_implicit_flush(0);
//header('Content-Encoding: gzip');
}
}
} |
To see if it will work for you in firefox, the weird part is it works for me in firefox and IE but i guess server and browser settings might affect how and if it works for people, either way let me know what happens with what i suggested above. |
|
|
|
 |
christianb Worker


Joined: Nov 24, 2004 Posts: 131 Location: Batesville, AR
|
Posted:
Sun May 15, 2005 8:09 pm |
|
it does work replacing the commented out with what you typed. |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Sun May 15, 2005 8:15 pm |
|
Interesting, guess i will have to find out why it works for some and not for others. Out of curiousity, what version of Firefox are you using? |
|
|
|
 |
christianb Worker


Joined: Nov 24, 2004 Posts: 131 Location: Batesville, AR
|
Posted:
Sun May 15, 2005 8:22 pm |
|
1.0.3 - I thought about that too. I almost uninstalled it and installed an earlier version to see if that was the case. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sun May 15, 2005 8:47 pm |
|
I placed the 7.7pl3 code in my 6.9 mainfile.php and it works w/o any problem. Being too lazy to compare the two, what did you modify so it worked in his? |
|
|
|
 |
CurtisH Life Cycles Becoming CPU Cycles

Joined: Mar 15, 2004 Posts: 638 Location: West Branch, MI
|
Posted:
Sun May 15, 2005 8:56 pm |
|
Sounds like you could use this nifty little freeware program: ExamDiff File Comparison Tool
It has made my life so much easier many times! *LOL* |
|
|
|
 |
chatserv The Mouse Is Extension Of Arm

Joined: May 02, 2003 Posts: 1396 Location: Puerto Rico
|
Posted:
Sun May 15, 2005 9:05 pm |
|
I changed:
| Code: | | ob_start(array('ob_gzhandler',5)); |
to:
and commented out the header line like Nuke has it. |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sun May 15, 2005 9:12 pm |
|
| CurtisHancock wrote: | Sounds like you could use this nifty little freeware program: ExamDiff File Comparison Tool
It has made my life so much easier many times! *LOL* | I have 2 very good ones, but thanks. That takes effort  |
|
|
|
 |
christianb Worker


Joined: Nov 24, 2004 Posts: 131 Location: Batesville, AR
|
Posted:
Mon May 16, 2005 1:46 am |
|
I'm just glad that the firefox issues is resolved. That was really bugging me... pun intended.  |
|
|
|
 |
VinDSL Life Cycles Becoming CPU Cycles

Joined: Jul 11, 2004 Posts: 617 Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com
|
Posted:
Mon May 16, 2005 5:44 pm |
|
| CurtisHancock wrote: | Sounds like you could use this nifty little freeware program: ExamDiff File Comparison Tool
It has made my life so much easier many times! *LOL* |
Thanks!
My drives got wiped yesterday, thanks to a nasty Trojan. I lost all my downloads from the last 5 years, or so... |
|
|
 |
 |
CurtisH Life Cycles Becoming CPU Cycles

Joined: Mar 15, 2004 Posts: 638 Location: West Branch, MI
|
Posted:
Mon May 16, 2005 6:08 pm |
|
You use that program too? Man I love it! I just need to get off my rear and go ahead and by the pro version so I can edit too. *LOL* |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon May 16, 2005 6:22 pm |
|
A couple other excellent ones. Wish there was an objective comparison of the 3 metioned here. I settled on Compare and Merge (so far, anyway)
|
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Mon May 16, 2005 10:18 pm |
|
Beyond Compare 2 is still my fave!
|
|
|
|
 |
VinDSL Life Cycles Becoming CPU Cycles

Joined: Jul 11, 2004 Posts: 617 Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com
|
Posted:
Tue May 17, 2005 12:25 pm |
|
My favorite, for the last year or two, has been 'Visual Comparer', but I'm always willing to try something new...
The problem is, they don't offer the freeware beta version any more, and I lost my downloads, so if I decide to go that route again, I'll have to buy it.
No big deal, I suppose, but it always makes me feel funny to buy software when 'we' give our's away for free, you know? |
|
|
 |
 |
Dibas New Member


Joined: Apr 04, 2005 Posts: 16
|
Posted:
Sun Jun 05, 2005 5:50 pm |
|
i'm gonna recover this issue, i made that change on mainfile.php and i noticed that know... when opening the page the urls until i click somewhere else or refresh the page, the urls show the PHPSESSID...
any solution to this one, though it's only on the firs opening, when clicking in some link the urls don't show the ID anymore. |
|
|
|
 |
benson Worker


Joined: May 15, 2004 Posts: 119 Location: Germany
|
Posted:
Mon Jun 27, 2005 12:20 am |
|
| chatserv wrote: | I changed:
| Code: | | ob_start(array('ob_gzhandler',5)); |
to:
and commented out the header line like Nuke has it. |
Hi,
with ob_start(array('ob_gzhandler',5)); and //header('Content-Encoding: gzip'); I get a warning PHP Warning: ob_start(): output handler 'ob_gzhandler' cannot be used after 'URL-Rewriter' ?
If I do additional ob_start(); this warning has gone.
Is this a combination I should use ?
(ob_start(); and //header('Content-Encoding: gzip') |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Mon Jun 27, 2005 1:19 am |
|
| Dibas wrote: | i'm gonna recover this issue, i made that change on mainfile.php and i noticed that know... when opening the page the urls until i click somewhere else or refresh the page, the urls show the PHPSESSID...
any solution to this one, though it's only on the firs opening, when clicking in some link the urls don't show the ID anymore. | Are you using the latest version of NukeSentinel? |
|
|
|
 |
|
|
|
|