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 cSetupInstaller extends cSetupMask
23: {
24:
25: public function __construct($step) {
26: cSetupMask::__construct("templates/setup/forms/installer.tpl", $step);
27:
28: $this->_stepTemplateClass->set("s", "IFRAMEVISIBILITY", (CON_SETUP_DEBUG) ? 'visible' : 'hidden');
29: $this->_stepTemplateClass->set("s", "DBUPDATESCRIPT", "index.php?c=db");
30:
31: switch ($_SESSION["setuptype"]) {
32: case "setup":
33: $this->setHeader(i18n("System Installation", "setup"));
34: $this->_stepTemplateClass->set("s", "TITLE", i18n("System Installation", "setup"));
35: $this->_stepTemplateClass->set("s", "DESCRIPTION", i18n("CONTENIDO will be installed, please wait. This process may take several moments!", "setup"));
36: $this->_stepTemplateClass->set("s", "DONEINSTALLATION", i18n("Setup completed installing. Click on next to continue.", "setup"));
37: $this->_stepTemplateClass->set("s", "DESCRIPTION", i18n("Setup is installing, please wait...", "setup"));
38: $_SESSION["upgrade_nextstep"] = "setup8";
39: $this->setNavigation("", "setup8");
40: break;
41: case "upgrade":
42: $this->setHeader(i18n("System Upgrade", "setup"));
43: $this->_stepTemplateClass->set("s", "TITLE", i18n("System Upgrade", "setup"));
44: $this->_stepTemplateClass->set("s", "DESCRIPTION", i18n("CONTENIDO will be upgraded, please wait. This process may take several moments!", "setup"));
45: $this->_stepTemplateClass->set("s", "DONEINSTALLATION", i18n("Setup completed upgrading. Click on next to continue.", "setup"));
46: $this->_stepTemplateClass->set("s", "DESCRIPTION", i18n("Setup is upgrading, please wait...", "setup"));
47: $_SESSION["upgrade_nextstep"] = "ugprade6";
48: $this->setNavigation("", "upgrade6");
49: break;
50: }
51: }
52:
53: 54: 55: 56: 57:
58: public function cSetupInstaller($step) {
59: cDeprecated('This method is deprecated and is not needed any longer. Please use __construct() as constructor function.');
60: $this->__construct($step);
61: }
62: }
63:
64: ?>