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 cSetupSetupSummary extends cSetupMask
23: {
24:
25: 26: 27: 28: 29: 30:
31: public function __construct($step, $previuous, $next) {
32: cSetupMask::__construct("templates/setup/forms/setupsummary.tpl", $step);
33: $this->setHeader(i18n("Summary", "setup"));
34: $this->_stepTemplateClass->set("s", "TITLE", i18n("Summary", "setup"));
35: $this->_stepTemplateClass->set("s", "DESCRIPTION", i18n("Please check your settings and click on the next button to start the installation", "setup"));
36:
37: $cHTMLErrorMessageList = new cHTMLErrorMessageList();
38:
39: switch ($_SESSION["setuptype"]) {
40: case "setup":
41: $sType = i18n("Setup", "setup");
42: break;
43: case "upgrade":
44: $sType = i18n("Upgrade", "setup");
45: break;
46: }
47:
48: $messages = array(
49: i18n("Installation type", "setup") . ":" => $sType,
50: i18n("Database parameters", "setup") . ":" => i18n("Database host", "setup") . ": " . $_SESSION["dbhost"] . "<br>" .
51: i18n("Database name", "setup") . ": " . $_SESSION["dbname"] . "<br>" .
52: i18n("Database username", "setup") . ": " . $_SESSION["dbuser"] . "<br>" .
53: i18n("Table prefix", "setup") . ": " . $_SESSION["dbprefix"] . "<br>" .
54: i18n("Database character set", "setup") . ": " . $_SESSION["dbcharset"]
55: );
56:
57: if ($_SESSION["setuptype"] == "setup") {
58: $aChoices = array(
59: "CLIENTEXAMPLES" => i18n("Client with example modules and example content", "setup"),
60: "CLIENTMODULES" => i18n("Client with example modules but without example content", "setup"),
61: "NOCLIENT" => i18n("Don't create a client", "setup")
62: );
63: $messages[i18n("Client installation", "setup").":"] = $aChoices[$_SESSION["clientmode"]];
64: }
65:
66: $cHTMLFoldableErrorMessages = array();
67:
68: foreach ($messages as $key => $message) {
69: $cHTMLFoldableErrorMessages[] = new cHTMLInfoMessage($key, $message);
70: }
71:
72: $cHTMLErrorMessageList->setContent($cHTMLFoldableErrorMessages);
73:
74: $this->_stepTemplateClass->set("s", "CONTROL_SETUPSUMMARY", $cHTMLErrorMessageList->render());
75:
76: $this->setNavigation($previous, $next);
77: }
78:
79: 80: 81: 82: 83: 84: 85:
86: public function cSetupSetupSummary($step, $previous, $next) {
87: cDeprecated('This method is deprecated and is not needed any longer. Please use __construct() as constructor function.');
88: $this->__construct($step, $previous, $next);
89: }
90: }
91:
92: ?>