Location: PHPKode > projects > Aratix > aratix/setup/pathes.inc.php
<?php
/*
** Aratix
** Version 0.2.2beta9 (Anubis)
**
** Autor: Manuel Burghammer
** E-Mail: hide@address.com
** Homepage: http://www.xitara.net
**
** File: pathes.inc.php - Version 0.2.2 build 3
** Position: /setup/
** Last Modified: 28.03.2006 - 18:28:23
*/

$root_path = $_SERVER['DOCUMENT_ROOT'] . "/";
$content->assign("root_path", $root_path);
$path = realpath(dirname(__FILE__) . "/../");
$content->assign("path", $path);

if(file_exists($root_path . "/cgi-bin"))
	$cgi_path = $root_path . "/cgi-bin";
if(file_exists($root_path . "../cgi-bin"))
	$cgi_path = $root_path . "../cgi-bin";
if(file_exists($root_path . "../../cgi-bin"))
	$cgi_path = realpath($root_path . "../../cgi-bin");

$content->assign("cgi_path", realpath($cgi_path));
$content->assign("domain", $_SERVER['SERVER_NAME']);
$folder = ereg_replace($_SERVER['DOCUMENT_ROOT'], "", realpath(dirname(__FILE__) . "/../"));
$content->assign("folder", $folder);
$content->assign("cgi_folder", "/cgi-bin");
?>
Return current item: Aratix