Rickard wrote:Does it really output indexphp? Not index.php?
Yes ... So there seems to be something in that PHP_SELF variable that probably should not be there.
We captured packets with Ethereal and the packets contain the value 0x00 and not 0x2e, which would apparently be a proper DOT. Funnily enough Ethereal shows the wrong value as the right dot.
We currently have no explanation as to why PHP does this. But it at least explains why PHP_SELF fails the IF-statement in header.php and why "Show new post since last visit" in pubBB does not show up.
===
Temporary Solution
I am no programmer, but I figured that the following (unelegant and crude) patch will do. It checks if the strings "index" oder "search" appear in the variable and respectively replace it with the value it ought to have to begin with ("/forum" is just my path). I inserted it in header.php before line 171:
if (strpos($_SERVER['PHP_SELF'], 'index')) {
$_SERVER['PHP_SELF'] = "/forum/index.php";
}
if (strpos($_SERVER['PHP_SELF'], 'search')) {
$_SERVER['PHP_SELF'] = "/forum/search.php";
}
Any suggestions from PHP programmers as to make this statement more elegant are more than welcome.
===
Thank you everybody for your time and concern.