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 cSetupResults extends cSetupMask
23: {
24:
25: 26: 27: 28:
29: public function __construct($step) {
30: $this->setHeader(i18n("Results", "setup"));
31:
32: if (!isset($_SESSION["install_failedchunks"]) && !isset($_SESSION["install_failedupgradetable"]) && !isset($_SESSION["configsavefailed"])) {
33: cSetupMask::__construct("templates/setup/forms/setupresults.tpl", $step);
34: $this->_stepTemplateClass->set("s", "TITLE", i18n("Results", "setup"));
35: $this->_stepTemplateClass->set("s", "DESCRIPTION", i18n("CONTENIDO was installed and configured successfully on your server.", "setup"));
36: if ($_SESSION["setuptype"] == 'setup') {
37: $this->_stepTemplateClass->set("s", "LOGIN_INFO", '<p>'.i18n("Please use username <b>sysadmin</b> and the configured password to login into CONTENIDO Backend.", "setup").'</p>');
38: } else {
39: $this->_stepTemplateClass->set("s", "LOGIN_INFO", '');
40: }
41: $this->_stepTemplateClass->set("s", "CHOOSENEXTSTEP", i18n("Please choose an item to start working:", "setup"));
42: $this->_stepTemplateClass->set("s", "FINISHTEXT", i18n("You can now start using CONTENIDO. Please delete the folder named 'setup'!", "setup"));
43:
44: list($rootPath, $rootHttpPath) = getSystemDirectories();
45:
46: $cHTMLButtonLink = new cHTMLButtonLink($rootHttpPath . "/contenido/", "Backend - CMS");
47: $this->_stepTemplateClass->set("s", "BACKEND", $cHTMLButtonLink->render());
48:
49: if ($_SESSION["setuptype"] == "setup" && $_SESSION["clientmode"] == "CLIENTEXAMPLES") {
50: $cHTMLButtonLink = new cHTMLButtonLink($rootHttpPath . "/cms/", "Frontend - Web");
51: $this->_stepTemplateClass->set("s", "FRONTEND", $cHTMLButtonLink->render());
52: } else {
53: $this->_stepTemplateClass->set("s", "FRONTEND", "");
54: }
55:
56: $cHTMLButtonLink = new cHTMLButtonLink("http://www.contenido.org/", "CONTENIDO Website");
57: $this->_stepTemplateClass->set("s", "WEBSITE", $cHTMLButtonLink->render());
58:
59: $cHTMLButtonLink = new cHTMLButtonLink("http://forum.contenido.org/", "CONTENIDO Forum");
60: $this->_stepTemplateClass->set("s", "FORUM", $cHTMLButtonLink->render());
61:
62: $cHTMLButtonLink = new cHTMLButtonLink("http://faq.contenido.org/", "CONTENIDO FAQ");
63: $this->_stepTemplateClass->set("s", "FAQ", $cHTMLButtonLink->render());
64: } else {
65: cSetupMask::__construct("templates/setup/forms/setupresultsfail.tpl", $step);
66: $this->_stepTemplateClass->set("s", "TITLE", i18n("Setup Results", "setup"));
67:
68: $this->_stepTemplateClass->set("s", "DESCRIPTION", sprintf(i18n("An error occured during installation. Please take a look at the file %s (located in "data/logs/") for more information.", "setup"), 'setuplog.txt'));
69:
70: switch ($_SESSION["setuptype"]) {
71: case "setup":
72: $this->setNavigation("setup1", "");
73: break;
74: case "upgrade":
75: $this->setNavigation("upgrade1", "");
76: break;
77: }
78: }
79: }
80:
81: 82: 83: 84: 85:
86: public function cSetupResults($step) {
87: cDeprecated('This method is deprecated and is not needed any longer. Please use __construct() as constructor function.');
88: $this->__construct($step);
89: }
90: }
91:
92: ?>