mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__
1/n - Update / and /include/ only.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'ChangeLog-4.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/changelogs.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/changelogs.inc';
|
||||
site_header("PHP 4 ChangeLog", array("current" => "docs", "css" => array("changelog.css"), "layout_span" => 12));
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'ChangeLog-5.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/changelogs.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/changelogs.inc';
|
||||
site_header("PHP 5 ChangeLog", array("current" => "docs", "css" => array("changelog.css"), "layout_span" => 12));
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'ChangeLog-7.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/changelogs.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/changelogs.inc';
|
||||
site_header("PHP 7 ChangeLog", array("current" => "docs", "css" => array("changelog.css"), "layout_span" => 12));
|
||||
?>
|
||||
<h1>PHP 7 ChangeLog</h1>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'get-involved.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
|
||||
$SIDEBAR_DATA ='
|
||||
<div class="panel">
|
||||
|
||||
2
cal.php
2
cal.php
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'cal.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
|
||||
$site_header_config = array(
|
||||
"current" => "community",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'contact.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
site_header("Contact", array("current" => "community"));
|
||||
?>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'copyright.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
$SIDEBAR_DATA = '
|
||||
<a name="license"></a>
|
||||
<h3>PHP License</h3>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'credits.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
|
||||
// Put credits information to $credits
|
||||
ob_start();
|
||||
|
||||
2
docs.php
2
docs.php
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'docs.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
|
||||
site_header("Documentation", array("current" => "docs"));
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'download-docs.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
|
||||
if (!empty($_GET['active_langs'])) {
|
||||
echo serialize($ACTIVE_ONLINE_LANGUAGES);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'download-logos.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
$SIDEBAR_DATA = '
|
||||
<h3>More PHP artwork</h3>
|
||||
<p>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php // vim: et
|
||||
$_SERVER['BASE_PAGE'] = 'downloads.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/gpg-keys.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/gpg-keys.inc';
|
||||
include_once __DIR__ . '/include/version.inc';
|
||||
|
||||
// Try to make this page non-cached
|
||||
header_nocache();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'elephpant.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
$SIDEBAR_DATA = '
|
||||
<a name="license"></a>
|
||||
<h3>PHP License</h3>
|
||||
|
||||
4
eol.php
4
eol.php
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'eol.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';
|
||||
|
||||
// Notes for specific branches can be added here, and will appear in the table.
|
||||
$BRANCH_NOTES = array(
|
||||
|
||||
24
error.php
24
error.php
@@ -10,10 +10,10 @@
|
||||
*/
|
||||
|
||||
// Ensure that our environment is set up
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/languages.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/languages.inc';
|
||||
include_once __DIR__ . '/include/loadavg.inc';
|
||||
include_once __DIR__ . '/include/errors.inc';
|
||||
|
||||
// Get URI for this request, strip leading slash
|
||||
// See langchooser.inc for more info on STRIPPED_URI
|
||||
@@ -24,13 +24,13 @@ $URI = substr($_SERVER['STRIPPED_URI'], 1);
|
||||
// dependent, so the search results will show up in the sidebar)
|
||||
if ($URI == 'phpnetsearch.src') {
|
||||
status_header(200);
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/mozsearch.inc';
|
||||
include_once __DIR__ . '/include/mozsearch.inc';
|
||||
exit;
|
||||
}
|
||||
// FIXME: Nuke the old firefox search plugin
|
||||
if ($URI == 'phpnetimprovedsearch.src') {
|
||||
status_header(200);
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/mozopensearch.inc';
|
||||
include_once __DIR__ . '/include/mozopensearch.inc';
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ if (preg_match("!^bugs.php\\?(.+)$!", $URI, $array)) {
|
||||
if (preg_match("!^security/advisories/PHPSA-(\\d+)\\.php$!", $URI, $array)) {
|
||||
status_header(200);
|
||||
$_GET["id"] = $array[1];
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/security/index.php';
|
||||
include_once __DIR__ . '/security/index.php';
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ if (preg_match("!^manual/(\\w+)/(print|printwn|html)((/.+)|$)!", $URI, $array))
|
||||
// send them to the /releases page since that is likely to be most helpful.
|
||||
if (preg_match("!^distributions/.*!", $URI, $array)) {
|
||||
status_header(404);
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . "/releases/index.php";
|
||||
include_once __DIR__ . "/releases/index.php";
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
@@ -136,7 +136,7 @@ if (preg_match("!^get/([^/]+)/from/([^/]+)(/mirror)?$!", $URI, $dlinfo)) {
|
||||
|
||||
$df = $dlinfo[1];
|
||||
if(strpos($df, "7-LATEST") !== false) {
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . "/include/version.inc";
|
||||
include_once __DIR__ . "/include/version.inc";
|
||||
$df = str_replace("7-LATEST", $PHP_7_VERSION, $df);
|
||||
}
|
||||
|
||||
@@ -596,17 +596,17 @@ if (isset($external_redirects[$URI])) {
|
||||
// will be capable of being included from anywhere
|
||||
if ($URI=='mirror-info') {
|
||||
status_header(200);
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . "/$URI.php";
|
||||
include_once __DIR__ . "/$URI.php";
|
||||
exit;
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
// Try to find the page using the preferred language as a manual page
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . "/include/manual-lookup.inc";
|
||||
include_once __DIR__ . "/include/manual-lookup.inc";
|
||||
$try = find_manual_page($LANG, $URI);
|
||||
if ($try) {
|
||||
status_header(200);
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . $try;
|
||||
include_once __DIR__ . $try;
|
||||
exit;
|
||||
}
|
||||
// BC. The class methods are now classname.methodname
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'get-involved.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
|
||||
site_header("Get Involved", array("current" => "community"));
|
||||
?>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'git-php.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/email-validation.inc';
|
||||
include_once __DIR__ . '/include/posttohost.inc';
|
||||
|
||||
// Force the account requests to php.net
|
||||
if (!is_primary_site()) {
|
||||
|
||||
2
git.php
2
git.php
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'git.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
$SIDEBAR_DATA = '
|
||||
<h3>What is Git?</h3>
|
||||
<p>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php // vim: et
|
||||
$_SERVER['BASE_PAGE'] = 'gpg-keys.php';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/gpg-keys.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/gpg-keys.inc';
|
||||
include_once __DIR__ . '/include/version.inc';
|
||||
|
||||
site_header('GPG Keys');
|
||||
?>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/releases.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
|
||||
include_once __DIR__ . '/releases.inc';
|
||||
include_once __DIR__ . '/version.inc';
|
||||
|
||||
/* Branch overrides. For situations where we've changed the exact dates for a
|
||||
* branch's active support and security fix EOLs, these can be reflected here.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// Simulate a /include shortcut call (which will lead to a manual page)
|
||||
$_SERVER['REQUEST_URI'] = '/include';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/error.php';
|
||||
include_once __DIR__ . '/prepend.inc';
|
||||
include_once __DIR__ . '/../error.php';
|
||||
|
||||
@@ -88,7 +88,7 @@ function i2c_search_in_index($ip)
|
||||
|
||||
// Open the index file for reading
|
||||
$dbidx = fopen(
|
||||
$_SERVER['DOCUMENT_ROOT'] . "/backend/ip-to-country.idx",
|
||||
__DIR__ . "/../backend/ip-to-country.idx",
|
||||
"r"
|
||||
);
|
||||
if (!$dbidx) { return FALSE; }
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php // -*- C++ -*-
|
||||
|
||||
// We need this for error reporting
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/errors.inc';
|
||||
include_once __DIR__ . '/errors.inc';
|
||||
|
||||
// Try to find some variations of keyword with $prefix in the $lang manual
|
||||
function tryprefix($lang, $keyword, $prefix)
|
||||
|
||||
@@ -73,21 +73,21 @@ if (get_magic_quotes_runtime()) {
|
||||
}
|
||||
|
||||
// Site details (mirror site information)
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/site.inc';
|
||||
include __DIR__ . '/site.inc';
|
||||
|
||||
// Choose language used for translated parts
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/langchooser.inc';
|
||||
include __DIR__ . '/langchooser.inc';
|
||||
|
||||
// Get country of the user and set it in a cookie
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/ip-to-country.inc';
|
||||
include __DIR__ . '/ip-to-country.inc';
|
||||
|
||||
// Common layout functions
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/layout.inc';
|
||||
include __DIR__ . '/layout.inc';
|
||||
|
||||
// This file is generated on rsync.php.net and propagated
|
||||
// from there. It just defines $LAST_UPDATED, which is the
|
||||
// mirror's last updated time.
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/last_updated.inc';
|
||||
include __DIR__ . '/last_updated.inc';
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
*/
|
||||
|
||||
// Ensure that our environment is set up
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/prepend.inc';
|
||||
|
||||
// Set variable defaults
|
||||
$PGI = array(); $SIDEBAR_DATA = '';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php // -*- C++ -*-
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/prepend.inc';
|
||||
|
||||
function commonStatHeader($title) {
|
||||
site_header($title);
|
||||
|
||||
@@ -21,16 +21,16 @@ $MIRRORS = array(
|
||||
);
|
||||
|
||||
// Define $COUNTRIES array
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/countries.inc';
|
||||
include __DIR__ . '/countries.inc';
|
||||
|
||||
// Define $COUNTRIES_ALPHA2 array
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/countries-alpha2.inc';
|
||||
include __DIR__ . '/countries-alpha2.inc';
|
||||
|
||||
// Define $COUNTRY_ALPHA_2_TO_3 array
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/countries_alpha_mapping.inc';
|
||||
include __DIR__ . '/countries_alpha_mapping.inc';
|
||||
|
||||
// Define $LANGUAGES array
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/languages.inc';
|
||||
include __DIR__ . '/languages.inc';
|
||||
|
||||
// Returns true if the current (or specified)
|
||||
// site is the primary mirror site
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'mailing-lists.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';
|
||||
|
||||
$SIDEBAR_DATA = '
|
||||
<h3>Would like to unsubscribe yourself?</h3>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
$_SERVER['BASE_PAGE'] = 'manual-lookup.php';
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/loadavg.inc';
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/include/manual-lookup.inc';
|
||||
include __DIR__ . '/include/prepend.inc';
|
||||
include __DIR__ . '/include/loadavg.inc';
|
||||
include __DIR__ . '/include/manual-lookup.inc';
|
||||
|
||||
// BC code, so pattern and function can both be used as
|
||||
// parameters to specify the function name
|
||||
@@ -35,6 +35,6 @@ if ($function) {
|
||||
|
||||
// Fall back to a quick reference search
|
||||
$notfound = $function;
|
||||
include $_SERVER['DOCUMENT_ROOT'] . '/quickref.php';
|
||||
include __DIR__ . '/quickref.php';
|
||||
|
||||
?>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?php
|
||||
// Define $MYSITE and $LAST_UPDATED variables
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
|
||||
include_once __DIR__ . '/include/prepend.inc';
|
||||
|
||||
// Define $PHP_7_3_VERSION, $PHP_7_3_SHA256 & $RELEASES variables
|
||||
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
|
||||
include_once __DIR__ . '/include/version.inc';
|
||||
|
||||
// Text/plain content type for better readability in browsers
|
||||
header("Content-type: text/plain; charset=utf-8");
|
||||
|
||||
@@ -151,7 +151,7 @@ PageType php
|
||||
|
||||
#HTMLPre <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
|
||||
HTMLPre <?php $_SERVER['BASE_PAGE'] = 'stats/index.php'; include_once $_SERVER['DOCUMENT_ROOT'] . "/include/prepend.inc"; ?>
|
||||
HTMLPre <?php $_SERVER['BASE_PAGE'] = 'stats/index.php'; include_once __DIR__ . "/include/prepend.inc"; ?>
|
||||
|
||||
# HTMLHead defines HTML code to insert within the <HEAD></HEAD>
|
||||
# block, immediately after the <TITLE> line. Maximum line length
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"));
|
||||
?>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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: /");
|
||||
|
||||
2
mod.php
2
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"));
|
||||
|
||||
|
||||
2
my.php
2
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();
|
||||
|
||||
@@ -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"));
|
||||
?>
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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';
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -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"));
|
||||
?>
|
||||
|
||||
|
||||
@@ -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"));
|
||||
?>
|
||||
|
||||
|
||||
@@ -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"));
|
||||
?>
|
||||
|
||||
|
||||
@@ -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"));
|
||||
?>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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"));
|
||||
?>
|
||||
|
||||
|
||||
2
ug.php
2
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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user