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:
@@ -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'));
|
||||
|
||||
|
||||
@@ -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"=>""));
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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");
|
||||
?>
|
||||
|
||||
|
||||
@@ -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");
|
||||
?>
|
||||
|
||||
@@ -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');
|
||||
?>
|
||||
|
||||
|
||||
@@ -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');
|
||||
?>
|
||||
|
||||
|
||||
@@ -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');
|
||||
?>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user