Monday, 06 September 2010
Login Form





Lost Password?
No account yet? Register
Site Search
Forum Latest
Total Users
1802 registered
8 today
8 this week
55 this month
Last: Gundykosz
Forums
Welcome, Guest
Please Login or Register.    Lost Password?
PGV4.3 / SVN 6878 - global $SCRIPT_NAME (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: PGV4.3 / SVN 6878 - global $SCRIPT_NAME
#441
fisharebest (User)
Gold Boarder
Posts: 201
graphgraph
User Offline Click here to see the profile of this user
PGV4.3 / SVN 6878 - global $SCRIPT_NAME 7 Months, 1 Week ago Karma: 0  
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Advertisement
A PGV Themes Template © 2007