Overview

Packages

  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Datatype
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
  • 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:  * @version    SVN Revision $Rev:$
 8:  *
 9:  * @author     Unknown
10:  * @copyright  four for business AG <www.4fb.de>
11:  * @license    http://www.contenido.org/license/LIZENZ.txt
12:  * @link       http://www.4fb.de
13:  * @link       http://www.contenido.org
14:  */
15: 
16: defined('CON_FRAMEWORK') || die('Illegal call: Missing framework initialization - request aborted.');
17: 
18: define('CON_IMAGERESIZE_GD', 1);
19: 
20: define('CON_IMAGERESIZE_IMAGEMAGICK', 2);
21: 
22: define('CON_IMAGERESIZE_CANTCHECK', 3);
23: 
24: define('CON_IMAGERESIZE_NOTHINGAVAILABLE', 4);
25: 
26: function checkImageResizer() {
27:     global $cfg;
28: 
29:     $iGDStatus = isPHPExtensionLoaded('gd');
30: 
31:     if ($iGDStatus == CON_EXTENSION_AVAILABLE) {
32:         return CON_IMAGERESIZE_GD;
33:     }
34: 
35:     if (function_exists('imagecreate')) {
36:         return CON_IMAGERESIZE_GD;
37:     }
38: 
39:     checkAndInclude($cfg['path']['contenido'] . 'includes/functions.api.images.php');
40:     if (capiIsImageMagickAvailable()) {
41:         return CON_IMAGERESIZE_IMAGEMAGICK;
42:     }
43: 
44:     if ($iGDStatus === CON_EXTENSION_CANTCHECK) {
45:         return CON_IMAGERESIZE_CANTCHECK;
46:     } else {
47:         return CON_IMAGERESIZE_NOTHINGAVAILABLE;
48:     }
49: }
50: 
51: ?>
CMS CONTENIDO 4.9.3 API documentation generated by ApiGen 2.8.0