1
0
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__

2/4 - Update remaining except archives/ and release/.
This commit is contained in:
Sara Golemon
2019-05-31 12:22:58 -04:00
parent 2735e5f03f
commit c0afd74bf7
32 changed files with 47 additions and 47 deletions

View File

@@ -2,10 +2,10 @@
$ip_spam_lookup_url = 'http://www.dnsbl.info/dnsbl-database-check.php?IP=';
$_SERVER['BASE_PAGE'] = 'manual/add-note.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include $_SERVER['DOCUMENT_ROOT'] . '/manual/spam_challenge.php';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/posttohost.inc';
include_once __DIR__ . '/../include/shared-manual.inc';
include __DIR__ . '/spam_challenge.php';
site_header("Add Manual Note", array( 'css' => 'add-note.css'));

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
$page = isset($_GET['page']) ? htmlspecialchars($_GET['page'], ENT_QUOTES, 'UTF-8') : '';
$page = strtr($page, array("\r"=>"","\n"=>""));

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once __DIR__ ."/toc/refs.basic.vartype.inc";

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once __DIR__ ."/toc/reserved.exceptions.inc";

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once __DIR__ ."/toc/context.inc";

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once __DIR__ ."/toc/index.inc";

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once __DIR__ ."/toc/ref.strings.inc";

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once __DIR__ ."/toc/langref.inc";

View File

@@ -1,5 +1,5 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../../include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once __DIR__ ."/toc/funcref.inc";

View File

@@ -1,7 +1,7 @@
<?php
$_SERVER['BASE_PAGE'] = 'manual/help-translate.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/shared-manual.inc';
site_header("Help translate the PHP Manual");
?>

View File

@@ -1,4 +1,4 @@
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
mirror_redirect("/manual/$LANG/index.php");
?>

View File

@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'manual/php3.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
site_header('PHP Version 3 Documentation');
?>

View File

@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'manual/php4.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
site_header('PHP Version 4 Documentation');
?>

View File

@@ -1,6 +1,6 @@
<?php
$_SERVER['BASE_PAGE'] = 'manual/phpfi2.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once __DIR__ . '/../include/prepend.inc';
site_header('PHP/FI Version 2.0 Documentation');
?>

View File

@@ -1,9 +1,9 @@
<?php
$_SERVER['BASE_PAGE'] = 'manual/vote-note.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/posttohost.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
include $_SERVER['DOCUMENT_ROOT'] . '/manual/spam_challenge.php';
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/posttohost.inc';
include_once __DIR__ . '/../include/shared-manual.inc';
include __DIR__ . '/spam_challenge.php';
// Initialize global variables
$error = false;