diff --git a/ChangeLog-4.php b/ChangeLog-4.php index 8b46cd717..f422cd179 100644 --- a/ChangeLog-4.php +++ b/ChangeLog-4.php @@ -1,7 +1,7 @@ "docs", "css" => array("changelog.css"), "layout_span" => 12)); ?> diff --git a/ChangeLog-5.php b/ChangeLog-5.php index 64273ed88..86e296355 100644 --- a/ChangeLog-5.php +++ b/ChangeLog-5.php @@ -1,7 +1,7 @@ "docs", "css" => array("changelog.css"), "layout_span" => 12)); ?> diff --git a/ChangeLog-7.php b/ChangeLog-7.php index 753af3126..b0f4b6d7a 100644 --- a/ChangeLog-7.php +++ b/ChangeLog-7.php @@ -1,7 +1,7 @@ "docs", "css" => array("changelog.css"), "layout_span" => 12)); ?>

PHP 7 ChangeLog

diff --git a/build-setup.php b/build-setup.php index 43d01f601..0ee8567b6 100644 --- a/build-setup.php +++ b/build-setup.php @@ -1,6 +1,6 @@ diff --git a/cal.php b/cal.php index 74ed304a3..8d27de4c7 100644 --- a/cal.php +++ b/cal.php @@ -1,6 +1,6 @@ "community", diff --git a/contact.php b/contact.php index fd160a66a..e1d390751 100644 --- a/contact.php +++ b/contact.php @@ -1,6 +1,6 @@ "community")); ?> diff --git a/copyright.php b/copyright.php index 92b0e4a1a..c7b5b030d 100644 --- a/copyright.php +++ b/copyright.php @@ -1,6 +1,6 @@

PHP License

diff --git a/credits.php b/credits.php index 0be3eeb48..540919c05 100644 --- a/credits.php +++ b/credits.php @@ -1,6 +1,6 @@ "docs")); diff --git a/download-docs.php b/download-docs.php index 1dfec33ff..69eb66afa 100644 --- a/download-docs.php +++ b/download-docs.php @@ -1,6 +1,6 @@ More PHP artwork

diff --git a/downloads.php b/downloads.php index 51ce178bf..01de834c9 100644 --- a/downloads.php +++ b/downloads.php @@ -1,8 +1,8 @@

PHP License

diff --git a/eol.php b/eol.php index a470f329f..75800824c 100644 --- a/eol.php +++ b/eol.php @@ -1,8 +1,8 @@ "community")); ?> diff --git a/git-php.php b/git-php.php index 06ec5e60a..a0e5e5e91 100644 --- a/git-php.php +++ b/git-php.php @@ -1,8 +1,8 @@ What is Git?

diff --git a/gpg-keys.php b/gpg-keys.php index ea8467355..a0729a4d2 100644 --- a/gpg-keys.php +++ b/gpg-keys.php @@ -1,8 +1,8 @@ diff --git a/include/branches.inc b/include/branches.inc index 4e7437019..361cb0076 100644 --- a/include/branches.inc +++ b/include/branches.inc @@ -1,6 +1,6 @@ Would like to unsubscribe yourself? diff --git a/manual-lookup.php b/manual-lookup.php index 369b6ef14..1048a1fce 100644 --- a/manual-lookup.php +++ b/manual-lookup.php @@ -1,8 +1,8 @@ diff --git a/mirror-info.php b/mirror-info.php index 72e773369..d9fb5c42f 100644 --- a/mirror-info.php +++ b/mirror-info.php @@ -1,9 +1,9 @@ -HTMLPre +HTMLPre # HTMLHead defines HTML code to insert within the # block, immediately after the line. Maximum line length diff --git a/mirror.php b/mirror.php index 64e45e60e..29a8ebe31 100644 --- a/mirror.php +++ b/mirror.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'mirror.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; $SIDEBAR_DATA = ' <h3>More mirror sites</h3> <p> diff --git a/mirroring-stats.php b/mirroring-stats.php index 573ee0236..c16d3a1c8 100644 --- a/mirroring-stats.php +++ b/mirroring-stats.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'mirroring-stats.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; site_header("Setting Up Local Stats", array("current" => "community")); ?> diff --git a/mirroring-troubles.php b/mirroring-troubles.php index 2555fbe74..ea79e1825 100644 --- a/mirroring-troubles.php +++ b/mirroring-troubles.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'mirroring-troubles.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; $SIDEBAR_DATA = ' <h3>Other mirror information</h3> diff --git a/mirroring.php b/mirroring.php index 974fd53cf..475419c80 100644 --- a/mirroring.php +++ b/mirroring.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'mirroring.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; $SIDEBAR_DATA = ' <h3>Existing mirror sites</h3> <p> diff --git a/mirrors.php b/mirrors.php index ad3f17120..61c8b25fe 100644 --- a/mirrors.php +++ b/mirrors.php @@ -1,5 +1,5 @@ <?php -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; header("HTTP/1.1 301 Moved Permanently"); header("Location: /"); diff --git a/mod.php b/mod.php index bb12b8fe1..4cbbff4cd 100644 --- a/mod.php +++ b/mod.php @@ -6,7 +6,7 @@ */ $_SERVER['BASE_PAGE'] = 'mod.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; site_header("Email confirmation", array("current" => "community")); diff --git a/my.php b/my.php index dfe35f81d..428a8846d 100644 --- a/my.php +++ b/my.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'my.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; // Try to make this page non-cached header_nocache(); diff --git a/privacy.php b/privacy.php index 5751b19d8..0e2e69f3f 100644 --- a/privacy.php +++ b/privacy.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'privacy.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; site_header("Privacy Policy", array("current" => "footer")); ?> diff --git a/quickref.php b/quickref.php index 745634a0f..da786b9ca 100644 --- a/quickref.php +++ b/quickref.php @@ -14,9 +14,9 @@ // Ensure that our environment is set up $_SERVER['BASE_PAGE'] = 'quickref.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc'; -include $_SERVER['DOCUMENT_ROOT'] . '/include/results.inc'; +include_once __DIR__ . '/include/prepend.inc'; +include_once __DIR__ . '/include/errors.inc'; +include __DIR__ . '/include/results.inc'; if (empty($notfound)) { mirror_redirect("/search.php"); diff --git a/results.php b/results.php index 280002123..273e488ed 100644 --- a/results.php +++ b/results.php @@ -1,7 +1,7 @@ <?php $_SERVER['BASE_PAGE'] = 'results.php'; -include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include $_SERVER['DOCUMENT_ROOT'] . '/include/results.inc'; +include __DIR__ . '/include/prepend.inc'; +include __DIR__ . '/include/results.inc'; if (!isset($_GET['l']) || !is_string($_GET['l'])) { $_GET['l'] = null; diff --git a/search.php b/search.php index 9f3d3f1ef..c2dee3b26 100644 --- a/search.php +++ b/search.php @@ -1,6 +1,6 @@ <?php // vim: et $_SERVER['BASE_PAGE'] = 'search.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; // --------------------------------------------------------------------------- diff --git a/security-note.php b/security-note.php index c96493873..264ebcf1d 100644 --- a/security-note.php +++ b/security-note.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'security-note.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; site_header("A Note on Security in PHP", array("current" => "docs")); ?> diff --git a/sitemap.php b/sitemap.php index c7e9edcee..bbb654224 100644 --- a/sitemap.php +++ b/sitemap.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'sitemap.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; site_header("Sitemap", array("current" => "help")); ?> diff --git a/sites.php b/sites.php index 1393ec4aa..a27971aa7 100644 --- a/sites.php +++ b/sites.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'sites.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; site_header("A Tourist's Guide", array("current" => "help")); ?> diff --git a/software.php b/software.php index 0044d8049..4b805c8b9 100644 --- a/software.php +++ b/software.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'software.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; site_header("PHP Software", array("current" => "help")); ?> diff --git a/submit-event.php b/submit-event.php index 26dbd4719..5f4cef55a 100644 --- a/submit-event.php +++ b/submit-event.php @@ -1,8 +1,8 @@ <?php $_SERVER['BASE_PAGE'] = 'submit-event.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc'; +include_once __DIR__ . '/include/prepend.inc'; +include_once __DIR__ . '/include/posttohost.inc'; +include_once __DIR__ . '/include/email-validation.inc'; site_header("Submit an Event", array("current" => "community")); // No errors, processing depends on POST data diff --git a/support.php b/support.php index e28cb7e59..89ab7a0e1 100644 --- a/support.php +++ b/support.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'support.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; $SIDEBAR_DATA =' <div class="panel" style="position:fixed"> diff --git a/supported-versions.php b/supported-versions.php index d081ee710..8608886d2 100644 --- a/supported-versions.php +++ b/supported-versions.php @@ -1,8 +1,8 @@ <?php $_SERVER['BASE_PAGE'] = 'supported-versions.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/branches.inc'; +include_once __DIR__ . '/include/prepend.inc'; +include_once __DIR__ . '/include/branches.inc'; site_header('Supported Versions', array('css' => array('supported-versions.css'))); @@ -85,7 +85,7 @@ $VERSION_NOTES = array( * ensuring that we have the same text formatting as the rest of the page. */ $non_standalone = true; -include $_SERVER['DOCUMENT_ROOT'] . '/images/supported-versions.php'; +include __DIR__ . '/images/supported-versions.php'; ?> <h4>Key</h4> diff --git a/thanks.php b/thanks.php index 65855e3d6..f5308e6cd 100644 --- a/thanks.php +++ b/thanks.php @@ -1,7 +1,7 @@ <?php $_SERVER['BASE_PAGE'] = 'thanks.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/historical_mirrors.inc'; +include_once __DIR__ . '/include/prepend.inc'; +include_once __DIR__ . '/include/historical_mirrors.inc'; site_header("Thanks", array("current" => "community")); ?> diff --git a/ug.php b/ug.php index 53efd11da..c55c52ad3 100644 --- a/ug.php +++ b/ug.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'ug.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; mirror_setcookie("LAST_UG", $_SERVER["REQUEST_TIME"]+60*60*24, 60*60*24); site_header("Hypertext Preprocessor", diff --git a/unsub.php b/unsub.php index a5e0189d6..e89c1dafa 100644 --- a/unsub.php +++ b/unsub.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'unsub.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; $SIDEBAR_DATA = ' <h3>Other PHP related mailing lists</h3> diff --git a/urlhowto.php b/urlhowto.php index bdbdcb068..196be2bec 100644 --- a/urlhowto.php +++ b/urlhowto.php @@ -1,6 +1,6 @@ <?php $_SERVER['BASE_PAGE'] = 'urlhowto.php'; -include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; +include_once __DIR__ . '/include/prepend.inc'; $SIDEBAR_DATA=' <h3>URL examples</h3>