1: <?php
 2:  3:  4:  5:  6:  7:  8:  9: 10: 11: 12: 13: 14: 
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: 19: 20: 21: 22: 23: 
24: class cSetupPath extends cSetupMask
25: {
26:     function cSetupPath($step, $previous, $next)
27:     {
28:         cSetupMask::cSetupMask("templates/setup/forms/pathinfo.tpl", $step);
29:         $this->setHeader(i18n("System Directories", "setup"));
30:         $this->_oStepTemplate->set("s", "TITLE", i18n("System Directories", "setup"));
31:         $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.", "setup"));
32: 
33:         list($rootPath, $rootHttpPath) = getSystemDirectories(true);
34: 
35:         $cHTMLErrorMessageList = new cHTMLErrorMessageList();
36:         $cHTMLFoldableErrorMessages = array();
37: 
38:         list($rootPath2, $rootHttpPath2) = getSystemDirectories();
39:         $oRootPath = new cHTMLTextbox("override_root_path", $rootPath2);
40:         $oRootPath->setWidth(100);
41:         $oRootPath->setClass("small");
42:         $oWebPath = new cHTMLTextbox("override_root_http_path", $rootHttpPath2);
43:         $oWebPath->setWidth(100);
44:         $oWebPath->setClass("small");
45: 
46:         $cHTMLFoldableErrorMessages[0] = new cHTMLFoldableErrorMessage(i18n("CONTENIDO Root Path", "setup").":<br>".$rootPath, $oRootPath);
47:         $cHTMLFoldableErrorMessages[0]->_oContent->setStyle("padding-bottom: 8px;");
48:         $cHTMLFoldableErrorMessages[1] = new cHTMLFoldableErrorMessage(i18n("CONTENIDO Web Path", "setup").":<br>".$rootHttpPath, $oWebPath);
49:         $cHTMLFoldableErrorMessages[1]->_oContent->setStyle("padding-bottom: 8px;");
50: 
51:         $cHTMLErrorMessageList->setContent($cHTMLFoldableErrorMessages);
52: 
53:         $this->_oStepTemplate->set("s", "CONTROL_PATHINFO", $cHTMLErrorMessageList->render());
54: 
55:         $this->setNavigation($previous, $next);
56:     }
57: }
58: ?>