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