ini_set ("register_globals", "On"); $CGI_VARS = ( $HTTP_SERVER_VARS ? $HTTP_SERVER_VARS : $_SERVER ); //$documentRoot = str_replace("\\\\","/",$CGI_VARS["PATH_TRANSLATED"]); $documentRoot = str_replace("\\\\","/",$CGI_VARS["DOCUMENT_ROOT"]); $serverId = $CGI_VARS["HTTP_HOST"]; $requestURI = str_replace("\\\\","/",( $CGI_VARS["REQUEST_URI"] ? $CGI_VARS["REQUEST_URI"] : $CGI_VARS["PATH_INFO"] )); if ( strstr($requestURI,"?") != false ) { $requestURI = substr($requestURI,0,strrpos($requestURI,'?')); } $pos = strpos($documentRoot,$requestURI); if ( $pos != false ) { $documentRoot = substr($documentRoot,0,$pos); } if ( substr($documentRoot,1,1) == ":" ) { $documentRoot = substr($documentRoot,2); } $documentRootLength = strlen($documentRoot); if ( substr($documentRoot,$documentRootLength-1,1) == "/" ) { $documentRoot = substr($documentRoot,0,$documentRootLength-1); } if ( strstr($documentRoot,"/") != false ) { $serverRoot = substr($documentRoot,0,strrpos($documentRoot,'/')); } $pathData = str_replace("install/setup.php", "",$requestURI); if (!$lang) $lang = "es"; include("setup.inc"); $message = $messageArray[$lang]; $pathDbase = $serverRoot . "/bases" . $pathData; $pathCgi = $serverRoot . "/cgi-bin" . $pathData; ?>