calguy1000 wrote:
Looking at the code to the redirect function in lib/misc.functions.php
I would add a debug statement in one of the admin files somewhere that dumps out the value of $_SERVER['PHP_SELF']
and see what it says.
also, dump out the value of $_SERVER['REQUEST_URI'];
and then after that, do a global dump of everything in $_SERVER. i.e:
print_r( $_SERVER );
sepearate everything with prompts, and/or statements so that you can tell which is which
and post what you get.
Here's print_r($_SERVER);
Code: Select all
Array
(
[HTTP_HOST] => www.domain.com
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 6.0; fi; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
[HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
[HTTP_ACCEPT_LANGUAGE] => fi,en;q=0.5
[HTTP_ACCEPT_ENCODING] => gzip,deflate
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_KEEP_ALIVE] => 300
[HTTP_CONNECTION] => keep-alive
[HTTP_REDIRECT_STATUS] => 200
[PATH] => /opt/iweb/webserver/bin/https/bin:/usr/sbin:/usr/bin:/bin:/usr/bin
[TZ] => EET
[LD_LIBRARY_PATH] => /usr/lib/lwp:/opt/iweb/webserver/bin/https/lib:/jre/lib/sparc/server:/jre/lib/sparc:/jre/lib/sparc/native_threads::/usr/lib/mps/secv1:/usr/lib/mps:/usr/lib/mps/sasl2:/opt/openldap/lib
[SERVER_SOFTWARE] => Sun ONE Web Server/6.1
[SERVER_PORT] => 80
[SERVER_NAME] => www.domain.com
[SERVER_URL] => http://www.domain.com
[REMOTE_HOST] => XXX.XXX.XXX.XXX
[REMOTE_ADDR] => XXX.XXX.XXX.XXX
[REDIRECT_STATUS] => 200
[HTTPS] => OFF
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[SCRIPT_NAME] =>
[PATH_INFO] => /test/redirect.php
[PATH_TRANSLATED] => /data/iweb/storage/NAMECHANGED/data/test/redirect.php
[PHPRC] => /config/php/www.pl
[PHP_SELF] => /test/redirect.php
[argv] => Array
(
)
[argc] => 0
)
php_self as you can see /test/redirect.php (nevermind the filename, it's just the name of the test script.
request_uri is not set so the variable does not exist. This was from a separate debug file. I'll try adding the same stuff to admin/index.php but I doubt it would be any different.