In versions of PGV before SVN6878, a global variable $SCRIPT_NAME was defined, which contained the path and name of the current script.
e.g. on the page "http://example.com/phpGedView/script.php?action=foo"
$SCRIPT_NAME would contain /phpGedView/script.php
In order to work reliably on some servers, we have removed this global, and replaced it with these constants
PGV_SERVER_NAME =
http://example.com
PGV_SCRIPT_PATH = /phpGedView/
PGV_SCRIPT_NAME = script.php
The second of these always begins/ends with a slash.
If your custom theme needs to reference the current script (with either an absolute or relative path), you should use the new constants.