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

Functions

  • cGenerateSetupStepsDisplay
  • checkImageResizer
  • logSetupFailure
  • setupInitializeCfgClient
  • Overview
  • Package
  • Function
  • Tree
  • Deprecated
  • Todo
 1: <?php
 2: /**
 3:  * This file contains various helper functions to read specific values needed for setup checks.
 4:  *
 5:  * @package    Setup
 6:  * @subpackage Helper
 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: define('CON_IMAGERESIZE_GD', 1);
17: 
18: define('CON_IMAGERESIZE_IMAGEMAGICK', 2);
19: 
20: define('CON_IMAGERESIZE_CANTCHECK', 3);
21: 
22: define('CON_IMAGERESIZE_NOTHINGAVAILABLE', 4);
23: 
24: function checkImageResizer() {
25:     global $cfg;
26: 
27:     $iGDStatus = isPHPExtensionLoaded('gd');
28: 
29:     if ($iGDStatus == CON_EXTENSION_AVAILABLE) {
30:         return CON_IMAGERESIZE_GD;
31:     }
32: 
33:     if (function_exists('imagecreate')) {
34:         return CON_IMAGERESIZE_GD;
35:     }
36: 
37:     checkAndInclude($cfg['path']['contenido'] . 'includes/functions.api.images.php');
38:     if (cApiIsImageMagickAvailable()) {
39:         return CON_IMAGERESIZE_IMAGEMAGICK;
40:     }
41: 
42:     if ($iGDStatus === CON_EXTENSION_CANTCHECK) {
43:         return CON_IMAGERESIZE_CANTCHECK;
44:     } else {
45:         return CON_IMAGERESIZE_NOTHINGAVAILABLE;
46:     }
47: }
48: 
49: ?>
CMS CONTENIDO 4.9.11 API documentation generated by ApiGen 2.8.0