<?php
/**
 * Project: 
 * Contenido Content Management System
 * 
 * Description: 
 * 
 * Requirements: 
 * @con_php_req 5
 *
 * @package    Contenido Backend <Area>
 * @version    0.2
 * @author     unknown
 * @copyright  four for business AG <www.4fb.de>
 * @license    http://www.contenido.org/license/LIZENZ.txt
 * @link       http://www.4fb.de
 * @link       http://www.contenido.org
 * @since      file available since contenido release <Contenido Version>
 * @deprecated file deprecated in contenido release <Contenido Version>
 * 
 * {@internal 
 *   created  unknown
 *   modified 2008-07-07, bilal arslan, added security fix
 *
 *   $Id: pathinfo.php 740 2008-08-27 10:45:04Z timo.trautmann $:
 * }}
 * 
 */
 if(!defined('CON_FRAMEWORK')) {
                die('Illegal call');
}



class cSetupPath extends cSetupMask
{
	function cSetupPath ($step, $previous, $next)
	{
		cSetupMask::cSetupMask("templates/setup/forms/pathinfo.tpl", $step);
		$this->setHeader(i18n("System Directories"));
		$this->_oStepTemplate->set("s", "TITLE", i18n("System Directories"));
		$this->_oStepTemplate->set("s", "DESCRIPTION", i18n("Please check the directories identified by the system. If you need to change a path, click on the name and enter the new path in the available input box."));
		
		list($root_path, $root_http_path) = getSystemDirectories(true);
		
		$cHTMLErrorMessageList = new cHTMLErrorMessageList;
		$cHTMLErrorMessageList->setStyle("width: 580px; height: 200px; overflow: auto; border: 1px solid black;");
		$cHTMLFoldableErrorMessages = array();
		
		list($a_root_path, $a_root_http_path) = getSystemDirectories();
		$oRootPath = new cHTMLTextbox("override_root_path", $a_root_path);
		$oRootPath->setWidth(100);
		$oRootPath->setClass("small");
		$oWebPath = new cHTMLTextbox("override_root_http_path", $a_root_http_path);
		$oWebPath->setWidth(100);
		$oWebPath->setClass("small");
		
		$cHTMLFoldableErrorMessages[0] = new cHTMLFoldableErrorMessage(i18n("Contenido Root Path").":<br>".$root_path, $oRootPath);
		$cHTMLFoldableErrorMessages[0]->_oContent->setStyle("padding-bottom: 8px;");
		$cHTMLFoldableErrorMessages[1] = new cHTMLFoldableErrorMessage(i18n("Contenido Web Path").":<br>".$root_http_path, $oWebPath);
		$cHTMLFoldableErrorMessages[1]->_oContent->setStyle("padding-bottom: 8px;");
		
		$cHTMLErrorMessageList->setContent($cHTMLFoldableErrorMessages);
		
		
		$this->_oStepTemplate->set("s", "CONTROL_PATHINFO", $cHTMLErrorMessageList->render());

		$this->setNavigation($previous, $next);		
	}
}
?>