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: session_unset();
17:
18: 19: 20: 21: 22: 23:
24: class cSetupNotInstallable extends cSetupMask
25: {
26: public function __construct($reason) {
27: cSetupMask::__construct("templates/notinstallable.tpl");
28: $this->setHeader("CONTENIDO Version " . CON_SETUP_VERSION);
29: $this->_stepTemplateClass->set("s", "TITLE", "Willkommen zu dem Setup von CONTENIDO / Welcome to the CONTENIDO Setup");
30: $this->_stepTemplateClass->set("s", "ERRORTEXT", "Setup nicht ausführbar / Setup not runnable");
31: if ($reason === 'session_use_cookies') {
32: $this->_stepTemplateClass->set("s", "REASONTEXT", "You need to set the PHP configuration directive 'session.use_cookies' to 1 and enable cookies in your browser. This setup won't work without that.");
33: } elseif ($reason === 'database_extension') {
34: $this->_stepTemplateClass->set("s", "REASONTEXT", "Couldn't detect neither MySQLi extension nor MySQL extension. You need to enable one of them in the PHP configuration (see dynamic extensions section in your php.ini). CONTENIDO won't work without that.");
35: } elseif ($reason === 'php_version') {
36: $this->_stepTemplateClass->set("s", "REASONTEXT", "Leider erfüllt Ihr Webserver nicht die Mindestvoraussetzung von PHP " . CON_SETUP_MIN_PHP_VERSION . " oder höher. Bitte installieren Sie PHP " . CON_SETUP_MIN_PHP_VERSION . " oder höher, um mit dem Setup fortzufahren.<br><br>Unfortunately your webserver doesn't match the minimum requirement of PHP " . CON_SETUP_MIN_PHP_VERSION . " or higher. Please install PHP " . CON_SETUP_MIN_PHP_VERSION . " or higher and then run the setup again.");
37: } else {
38:
39: $this->_stepTemplateClass->set("s", "REASONTEXT", "Reason unknown");
40: }
41: }
42:
43:
44: 45: 46: 47: 48:
49: public function cSetupNotInstallable($reason) {
50: cDeprecated('This method is deprecated and is not needed any longer. Please use __construct() as constructor function.');
51: $this->__construct($reason);
52: }
53: }
54:
55: global $sNotInstallableReason;
56:
57: $cNotInstallable = new cSetupNotInstallable($sNotInstallableReason);
58: $cNotInstallable->render();
59:
60: die();
61:
62: ?>