gnucash-htdocs master: Replace all occurrences of PHP_SELF by SCRIPT_NAME
Frank H.Ellenberger
fell at code.gnucash.org
Wed Aug 11 17:10:12 EDT 2021
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/3f7f85cc (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/be872ed8 (commit)
commit 3f7f85cc8a57d7be778e6537a60753711de438b4
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date: Wed Aug 11 23:01:05 2021 +0200
Replace all occurrences of PHP_SELF by SCRIPT_NAME
diff --git a/2.6-release-tour.phtml b/2.6-release-tour.phtml
index a6b9897..c389dd2 100644
--- a/2.6-release-tour.phtml
+++ b/2.6-release-tour.phtml
@@ -2,7 +2,7 @@
include("lang.php");
$title = T_("GnuCash 2.6 release tour");
$description = T_("This tour will introduce you to new major features in <span class=\"gnucash\">GnuCash</span> 2.6.");
-$page = $_SERVER['PHP_SELF'];
+$page = $_SERVER['SCRIPT_NAME'];
include("emulate_globals_on.php");
include("$top_dir/externals/header.phtml");
include("$top_dir/externals/menu.phtml");
diff --git a/develdocs.phtml b/develdocs.phtml
index 8d09a09..069ec74 100644
--- a/develdocs.phtml
+++ b/develdocs.phtml
@@ -3,7 +3,7 @@ include("emulate_globals_on.php");
include("lang.php");
$title = T_("Writing Documentation");
$description = T_("If you are interested in improving the <span class=\"gnucash\">GnuCash</span> documentation, you have come to the right place. This page will provide you with the necessary information to get started.");
-$page = $_SERVER['PHP_SELF'];
+$page = $_SERVER['SCRIPT_NAME'];
include("externals/header.phtml");
include("externals/menu.phtml");
?>
diff --git a/docs.phtml b/docs.phtml
index b5dad0b..2fb7250 100644
--- a/docs.phtml
+++ b/docs.phtml
@@ -9,7 +9,7 @@
include("lang.php");
$title = T_("Documentation");
$description = T_("The following links are to the <strong>English HTML editions of the current stable branch</strong> documentation. See further down the page for other <span class=\"gnucash\">GnuCash</span> versions, languages, and formats.");
- $page = $_SERVER['PHP_SELF'];
+ $page = $_SERVER['SCRIPT_NAME'];
$online = T_("Browse documentation online");
$pdf = T_("Download documentation as PDF");
$epub = T_("Download documentation as epub");
diff --git a/donate.phtml b/donate.phtml
index c492eb3..1979cae 100644
--- a/donate.phtml
+++ b/donate.phtml
@@ -3,7 +3,7 @@
include ("lang.php");
$title = T_ ( "Donations" );
$description = T_("<span class=\"gnucash\">GnuCash</span> is Free Software and is made available free of charge. Your donation, which is purely optional, supports our worldwide community. If you like the software, please consider a donation. We are only a handfull of developers and other volunteers serving countless users worldwide.");
- $page = $_SERVER['PHP_SELF'];
+ $page = $_SERVER['SCRIPT_NAME'];
include ("externals/header.phtml");
include ("externals/menu.phtml");
?>
diff --git a/download.phtml b/download.phtml
index 1948188..e911c3c 100644
--- a/download.phtml
+++ b/download.phtml
@@ -4,7 +4,7 @@
include("lang.php");
$title = T_("Download");
$description = T_("Download executable bundles of the <span class=\"gnucash\">GnuCash</span> program inclusive documentation or the source files here. Several versions are available for recent and older operating systems.");
- $page = $_SERVER['PHP_SELF'];
+ $page = $_SERVER['SCRIPT_NAME'];
include("externals/header.phtml");
include("externals/menu.phtml");
?>
diff --git a/features.phtml b/features.phtml
index c0a0135..792a578 100644
--- a/features.phtml
+++ b/features.phtml
@@ -3,7 +3,7 @@
include("lang.php");
$title = T_("Features");
$description = T_("<span class=\"gnucash\">GnuCash</span> is powerful accounting software. Below are details of some of the numerous features that <span class=\"gnucash\">GnuCash</span> has to offer to its users.");
- $page = $_SERVER['PHP_SELF'];
+ $page = $_SERVER['SCRIPT_NAME'];
include("$top_dir/externals/header.phtml");
include("$top_dir/externals/menu.phtml");
?>
diff --git a/index.phtml b/index.phtml
index 4b0e16a..d9e7d28 100644
--- a/index.phtml
+++ b/index.phtml
@@ -2,7 +2,7 @@
$homepage = true;
include ("emulate_globals_on.php");
include ("lang.php");
-$page = $_SERVER['PHP_SELF'];
+$page = $_SERVER['SCRIPT_NAME'];
// ^ alternate: __FILE__;
include ("externals/header.phtml");
include ("externals/menu.phtml");
diff --git a/new_features-4.0.phtml b/new_features-4.0.phtml
index d59e25e..6e87a19 100644
--- a/new_features-4.0.phtml
+++ b/new_features-4.0.phtml
@@ -3,7 +3,7 @@
include("lang.php");
$title = T_("Features");;
$description = sprintf (T_("What's New in GnuCash %s"),"4.0");
- $page = $_SERVER['PHP_SELF'];
+ $page = $_SERVER['SCRIPT_NAME'];
include("$top_dir/externals/header.phtml");
include("$top_dir/externals/menu.phtml");
?>
diff --git a/news.phtml b/news.phtml
index 1947100..0c01935 100644
--- a/news.phtml
+++ b/news.phtml
@@ -3,7 +3,7 @@ include("emulate_globals_on.php");
include("lang.php");
$title = T_("News");
$description = T_("Announcement of New Releases, Server Maintenance â¦");
-$page = $_SERVER['PHP_SELF'];
+$page = $_SERVER['SCRIPT_NAME'];
include("externals/header.phtml");
include("externals/menu.phtml");
?>
diff --git a/oldnews.phtml b/oldnews.phtml
index e3aad01..48c6736 100644
--- a/oldnews.phtml
+++ b/oldnews.phtml
@@ -3,7 +3,7 @@ include("emulate_globals_on.php");
include("lang.php");
$title = T_("Older Announcements");
$description = T_("This is an archive of announcements that once appeared on the GnuCash home page.");
-$page = $_SERVER['PHP_SELF'];
+$page = $_SERVER['SCRIPT_NAME'];
include("externals/header.phtml");
include("externals/menu.phtml");
?>
diff --git a/sizing.phtml b/sizing.phtml
index b986c0b..5c1900b 100644
--- a/sizing.phtml
+++ b/sizing.phtml
@@ -3,7 +3,7 @@ include("emulate_globals_on.php");
include("lang.php");
$title = T_("Sizing");
$description = T_("This is an ancient page about Gnucash's code size.");
-$page = $_SERVER['PHP_SELF'];
+$page = $_SERVER['SCRIPT_NAME'];
include("externals/header.phtml");
include("externals/menu.phtml");
?>
diff --git a/viewdoc.phtml b/viewdoc.phtml
index e184b8b..4962b86 100644
--- a/viewdoc.phtml
+++ b/viewdoc.phtml
@@ -8,7 +8,7 @@ include("emulate_globals_on.php");
include("lang.php");
// Fixme: It is not trivial to reorder the components to get proper metatags
$title = T_("View document");
-$page = $_SERVER['PHP_SELF'];
+$page = $_SERVER['SCRIPT_NAME'];
include("externals/header.phtml");
include("externals/menu.phtml");
Summary of changes:
2.6-release-tour.phtml | 2 +-
develdocs.phtml | 2 +-
docs.phtml | 2 +-
donate.phtml | 2 +-
download.phtml | 2 +-
features.phtml | 2 +-
index.phtml | 2 +-
new_features-4.0.phtml | 2 +-
news.phtml | 2 +-
oldnews.phtml | 2 +-
sizing.phtml | 2 +-
viewdoc.phtml | 2 +-
12 files changed, 12 insertions(+), 12 deletions(-)
More information about the gnucash-changes
mailing list