Updated copyright notices to show "2004"
[Packages/TYPO3.CMS.git] / typo3 / dev / phpinfo.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2004 Kasper Skaarhoj (kasper@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Dev-script: Display of phpinfo()
29 *
30 * $Id$
31 *
32 * @author Kasper Skaarhoj <kasper@typo3.com>
33 * @package TYPO3
34 * @subpackage core
35 */
36
37
38 die("<strong>This script is for typo3 development and maintenance only. You'll probably find it useless for what you do.</strong><br><br>MUST remove this line in this script before it'll work for you. This is a security precaution. Anyways, you must be logged in as admin as well.");
39
40
41
42
43 $BACK_PATH='../';
44 if (isset($HTTP_GET_VARS['noInit']) && $HTTP_GET_VARS['noInit']) {
45 include_once($BACK_PATH.'t3lib/class.t3lib_div.php');
46 } else {
47 define('TYPO3_PROCEED_IF_NO_USER', 1);
48 define('TYPO3_MOD_PATH', 'dev/');
49 require ($BACK_PATH.'init.php');
50 require ($BACK_PATH.'template.php');
51 }
52
53
54 phpinfo();
55
56
57
58 $getEnvArray = array();
59 $gE_keys = explode(',','QUERY_STRING,HTTP_ACCEPT,HTTP_ACCEPT_ENCODING,HTTP_ACCEPT_LANGUAGE,HTTP_CONNECTION,HTTP_COOKIE,HTTP_HOST,HTTP_USER_AGENT,REMOTE_ADDR,REMOTE_HOST,REMOTE_PORT,SERVER_ADDR,SERVER_ADMIN,SERVER_NAME,SERVER_PORT,SERVER_SIGNATURE,SERVER_SOFTWARE,GATEWAY_INTERFACE,SERVER_PROTOCOL,REQUEST_METHOD,SCRIPT_NAME,PATH_TRANSLATED,HTTP_REFERER,PATH_INFO');
60 while(list(,$k)=each($gE_keys)) {
61 $getEnvArray[$k] = getenv($k);
62 }
63 echo '<h3>getenv()</h3>';
64 t3lib_div::print_array($getEnvArray);
65
66 echo '<h3>$GLOBALS["HTTP_ENV_VARS"]</h3>';
67 t3lib_div::print_array($GLOBALS['HTTP_ENV_VARS']);
68
69 echo '<h3>$GLOBALS["HTTP_SERVER_VARS"]</h3>';
70 t3lib_div::print_array($GLOBALS['HTTP_SERVER_VARS']);
71
72 echo '<h3>$GLOBALS["HTTP_COOKIE_VARS"]</h3>';
73 t3lib_div::print_array($GLOBALS['HTTP_COOKIE_VARS']);
74
75 echo '<h3>$GLOBALS["HTTP_GET_VARS"]</h3>';
76 t3lib_div::print_array($GLOBALS['HTTP_GET_VARS']);
77
78
79 $constants=array();
80 $constants['TYPO3_OS'] = array(TYPO3_OS,defined('TYPO3_OS')?'':'NOT DEFINED!');
81 $constants['PATH_thisScript'] = array(PATH_thisScript,defined('PATH_thisScript')?'':'NOT DEFINED!');
82 $constants['TYPO3_mainDir'] = array(TYPO3_mainDir,defined('TYPO3_mainDir')?'':'NOT DEFINED!');
83 $constants['PATH_typo3'] = array(PATH_typo3,defined('PATH_typo3')?'':'NOT DEFINED!');
84 $constants['PATH_typo3_mod'] = array(PATH_typo3_mod,defined('PATH_typo3_mod')?'':'NOT DEFINED!');
85 $constants['PATH_site'] = array(PATH_site,defined('PATH_site')?'':'NOT DEFINED!');
86 $constants['PATH_t3lib'] = array(PATH_t3lib,defined('PATH_t3lib')?'':'NOT DEFINED!');
87 $constants['PATH_typo3conf'] = array(PATH_typo3conf,defined('PATH_typo3conf')?'':'NOT DEFINED!');
88
89 echo '<h3>Constants</h3>';
90 t3lib_div::print_array($constants);
91
92 ?>