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: unset($_SESSION["setuptype"]);
19:
20: 21: 22: 23: 24: 25:
26: class cSetupTypeChooser extends cSetupMask
27: {
28: function cSetupTypeChooser()
29: {
30: cSetupMask::cSetupMask("templates/setuptype.tpl");
31: $this->setHeader(i18n("Please choose your setup type", "setup"));
32: $this->_oStepTemplate->set("s", "TITLE_SETUP", i18n("Install new CONTENIDO version", "setup"));
33: $this->_oStepTemplate->set("s", "VERSION_SETUP", sprintf(i18n("Version %s", "setup"), CON_SETUP_VERSION));
34: $this->_oStepTemplate->set("s", "DESCRIPTION_SETUP", sprintf(i18n("This setup type will install CONTENIDO %s.", "setup"), CON_SETUP_VERSION)."<br><br>".i18n("Please choose this type if you want to start with an empty or an example installation.", "setup")."<br><br>".i18n("Recommended for new projects.", "setup"));
35:
36: $this->_oStepTemplate->set("s", "TITLE_UPGRADE", i18n("Upgrade existing installation", "setup"));
37: $this->_oStepTemplate->set("s", "VERSION_UPGRADE", sprintf(i18n("Upgrade to %s", "setup"), CON_SETUP_VERSION));
38: $this->_oStepTemplate->set("s", "DESCRIPTION_UPGRADE", i18n("This setup type will upgrade your existing installation (CONTENIDO 4.6.x or later required).", "setup")."<br><br>".i18n("Recommended for existing projects.", "setup"));
39:
40: $link = new cHTMLLink("#");
41: $link->setClass("nav");
42: $link->setContent("<span>»</span>");
43: $link->attachEventDefinition("stepAttach", "onclick", "document.setupform.step.value = 'setup1';");
44: $link->attachEventDefinition("setuptypeAttach", "onclick", "document.setupform.setuptype.value = 'setup';");
45: $link->attachEventDefinition("submitAttach", "onclick", "document.setupform.submit();");
46:
47: $this->_oStepTemplate->set("s", "NEXT_SETUP", $link->render());
48:
49: $link = new cHTMLLink("#");
50: $link->setClass("nav");
51: $link->setContent("<span>»</span>");
52: $link->attachEventDefinition("stepAttach", "onclick", "document.setupform.step.value = 'upgrade1';");
53: $link->attachEventDefinition("setuptypeAttach", "onclick", "document.setupform.setuptype.value = 'upgrade';");
54: $link->attachEventDefinition("submitAttach", "onclick", "document.setupform.submit();");
55: $this->_oStepTemplate->set("s", "NEXT_UPGRADE", $link->render());
56: }
57:
58: }
59:
60: $cSetupStep1 = new cSetupTypeChooser;
61: $cSetupStep1->render();
62: ?>