2006-10-19 16:55:07 +02:00
|
|
|
<?php
|
|
|
|
/*------------------------------------------------------------------------------
|
|
|
|
* This script returns real dir of php scipts for debugging purposes
|
|
|
|
*----------------------------------------------------------------------------*/
|
|
|
|
|
2006-12-16 07:36:22 +01:00
|
|
|
header("Content-type: text/plain");
|
2010-09-10 16:48:08 +02:00
|
|
|
//var_dump($_SERVER);
|
|
|
|
if ( (isset($_SERVER["REMOTE_ADDR"]) && ($_SERVER["REMOTE_ADDR"] == "127.0.0.1"))
|
|
|
|
|| (isset($_SERVER["HTTP_HOST"]) && ($_SERVER["HTTP_HOST"] == "localhost"))
|
|
|
|
|| (isset($_SERVER["SHELL"])) ) {
|
2006-12-16 07:36:22 +01:00
|
|
|
echo `pwd`;
|
|
|
|
}
|
2006-10-19 16:55:07 +02:00
|
|
|
?>
|