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