Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cCLISetup
  • cSetupLanguageChooser
  • cSetupNotInstallable
  • cSetupTypeChooser

Functions

  • checkAndInclude
  • checkExistingPlugin
  • checkInstallationSettings
  • findSimilarText
  • getArgs
  • getContenidoVersion
  • getSystemDirectories
  • initializeVariables
  • listClients
  • passwordPrompt
  • printHelpText
  • prnt
  • prntln
  • prntst
  • progressBar
  • stripLastSlash
  • updateClientPath
  • updateContenidoVersion
  • updateSysadminPassword
  • updateSystemProperties
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains the setup not installable class.
 4:  *
 5:  * @package    Setup
 6:  * @subpackage Setup
 7:  * @author     Unknown
 8:  * @copyright  four for business AG <www.4fb.de>
 9:  * @license    http://www.contenido.org/license/LIZENZ.txt
10:  * @link       http://www.4fb.de
11:  * @link       http://www.contenido.org
12:  */
13: 
14: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
15: 
16: session_unset();
17: 
18: /**
19:  * Setup not installable class
20:  *
21:  * @package Setup
22:  * @subpackage Setup
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&uuml;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&uuml;llt Ihr Webserver nicht die Mindestvoraussetzung von PHP " . CON_SETUP_MIN_PHP_VERSION . " oder h&ouml;her. Bitte installieren Sie PHP " . CON_SETUP_MIN_PHP_VERSION . " oder h&ouml;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:             // this should not happen
39:             $this->_stepTemplateClass->set("s", "REASONTEXT", "Reason unknown");
40:         }
41:     }
42: 
43: 
44:     /**
45:      * Old constructor
46:      * @deprecated [2016-04-14] This method is deprecated and is not needed any longer. Please use __construct() as constructor function.
47:      * @param $reason
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: ?>
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0