inc/header.inc.php ~ 287
if( ereg("board.php", $PHP_SELF) )
so ändern:
if( eregi("board.php", $_SERVER['PHP_SELF']) )
sonst wird unter umständen lastvisited nicht gesetzt (war jedenfalls bei mir so)
Ort: / Boardübersicht / Archiv / Lastvisited problem / register_globals = off
Seite 1 von 1
inc/header.inc.php ~ 287
if( ereg("board.php", $PHP_SELF) )
so ändern:
if( eregi("board.php", $_SERVER['PHP_SELF']) )
sonst wird unter umständen lastvisited nicht gesetzt (war jedenfalls bei mir so)
wenn schon, dann auch $HTTP_SERVER_VARS['PHP_SELF']
gelöscht da blind :D
Jonas postete
wenn schon, dann auch $HTTP_SERVER_VARS['PHP_SELF']
nö.
$_SERVER
Note: Introduced in 4.1.0. In earlier versions, use $HTTP_SERVER_VARS.
This is a 'superglobal', or automatic global, variable. This simply means that it is available in all scopes throughout a script. You don't need to do a global $_SERVER; to access it within functions or methods, as you do with $HTTP_SERVER_VARS.
theDon, $_SERVER mag zwar sinnvoller sein, da superglobal,
allerdings ist das Forum-System von haus aus lauffähig mit
PHP 4.0.6. Daher $HTTP_SERVER_VARS
Seite 1 von 1