XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier phpThumb.config.php

Fonctions

 phpThumbURL ($ParameterString, $path_to_phpThumb='phpThumb.php')
 

Variables

const phpThumbConfigFileVersion '1.7.15'
 // Plus de détails...
 
global $PHPTHUMB_CONFIG = array()
 
 $PHPTHUMB_CONFIG ['document_root'] = XOOPS_ROOT_PATH
 
 $PHPTHUMB_CONFIG ['disable_debug'] = true
 
 $PHPTHUMB_CONFIG ['high_security_enabled'] = true
 
 $PHPTHUMB_CONFIG ['high_security_password'] = ''
 
 $PHPTHUMB_CONFIG ['high_security_url_separator'] = '&'
 
 $PHPTHUMB_CONFIG ['allow_src_above_docroot'] = false
 
 $PHPTHUMB_CONFIG ['allow_src_above_phpthumb'] = true
 
 $PHPTHUMB_CONFIG ['auto_allow_symlinks'] = true
 
 $PHPTHUMB_CONFIG ['additional_allowed_dirs'] = array()
 
 $PHPTHUMB_CONFIG ['cache_directory'] = XOOPS_CACHE_PATH
 
 $PHPTHUMB_CONFIG ['cache_disable_warning'] = false
 
 $PHPTHUMB_CONFIG ['cache_directory_depth'] = 4
 
 $PHPTHUMB_CONFIG ['cache_maxage'] = 86400 * 30
 
 $PHPTHUMB_CONFIG ['cache_maxsize'] = 10 * 1024 * 1024
 
 $PHPTHUMB_CONFIG ['cache_maxfiles'] = 200
 
 $PHPTHUMB_CONFIG ['cache_source_enabled'] = true
 
 $PHPTHUMB_CONFIG ['cache_source_directory'] = XOOPS_CACHE_PATH
 
 $PHPTHUMB_CONFIG ['cache_source_filemtime_ignore_local'] = false
 
 $PHPTHUMB_CONFIG ['cache_source_filemtime_ignore_remote'] = true
 
 $PHPTHUMB_CONFIG ['cache_default_only_suffix'] = ''
 
 $PHPTHUMB_CONFIG ['cache_prefix'] = 'phpThumb_cache_' . (isset($_SERVER['SERVER_NAME']) ? str_replace('www.', '', $_SERVER['SERVER_NAME']) . '_' : '')
 
 $PHPTHUMB_CONFIG ['cache_force_passthru'] = true
 
 $PHPTHUMB_CONFIG ['temp_directory'] = $PHPTHUMB_CONFIG['cache_directory']
 
 $PHPTHUMB_CONFIG ['prefer_imagemagick'] = true
 
 $PHPTHUMB_CONFIG ['imagemagick_use_thumbnail'] = true
 
if(strtoupper(substr(PHP_OS, 0, 3))=='WIN') else
 
 $PHPTHUMB_CONFIG ['output_format'] = 'png'
 
 $PHPTHUMB_CONFIG ['output_maxwidth'] = 0
 
 $PHPTHUMB_CONFIG ['output_maxheight'] = 0
 
 $PHPTHUMB_CONFIG ['output_interlace'] = true
 
 $PHPTHUMB_CONFIG ['error_image_width'] = 300
 
 $PHPTHUMB_CONFIG ['error_image_height'] = 100
 
 $PHPTHUMB_CONFIG ['error_message_image_default'] = ''
 
 $PHPTHUMB_CONFIG ['error_bgcolor'] = 'CCCCFF'
 
 $PHPTHUMB_CONFIG ['error_textcolor'] = 'FF0000'
 
 $PHPTHUMB_CONFIG ['error_fontsize'] = 1
 
 $PHPTHUMB_CONFIG ['error_die_on_error'] = true
 
 $PHPTHUMB_CONFIG ['error_silent_die_on_error'] = false
 
 $PHPTHUMB_CONFIG ['error_die_on_source_failure'] = true
 
 $PHPTHUMB_CONFIG ['nohotlink_enabled'] = false
 
 $PHPTHUMB_CONFIG ['nohotlink_valid_domains'] = array(@$_SERVER['HTTP_HOST'])
 
 $PHPTHUMB_CONFIG ['nohotlink_erase_image'] = true
 
 $PHPTHUMB_CONFIG ['nohotlink_text_message'] = 'Off-server thumbnailing is not allowed'
 
 $PHPTHUMB_CONFIG ['nooffsitelink_enabled'] = false
 
 $PHPTHUMB_CONFIG ['nooffsitelink_valid_domains'] = array(@$_SERVER['HTTP_HOST'])
 
 $PHPTHUMB_CONFIG ['nooffsitelink_require_refer'] = false
 
 $PHPTHUMB_CONFIG ['nooffsitelink_erase_image'] = false
 
 $PHPTHUMB_CONFIG ['nooffsitelink_watermark_src'] = '/demo/images/watermark.png'
 
 $PHPTHUMB_CONFIG ['nooffsitelink_text_message'] = 'Image taken from ' . @$_SERVER['HTTP_HOST']
 
 $PHPTHUMB_CONFIG ['border_hexcolor'] = '000000'
 
 $PHPTHUMB_CONFIG ['background_hexcolor'] = 'FFFFFF'
 
 $PHPTHUMB_CONFIG ['ttf_directory'] = __DIR__ . '/fonts'
 
 $PHPTHUMB_CONFIG ['mysql_extension'] = 'mysqli'
 
 $PHPTHUMB_CONFIG ['mysql_query'] = ''
 
 $PHPTHUMB_CONFIG ['mysql_hostname'] = 'localhost'
 
 $PHPTHUMB_CONFIG ['mysql_username'] = ''
 
 $PHPTHUMB_CONFIG ['mysql_password'] = ''
 
 $PHPTHUMB_CONFIG ['mysql_database'] = ''
 
 $PHPTHUMB_CONFIG ['http_user_agent'] = @$_SERVER['HTTP_USER_AGENT']
 
 $PHPTHUMB_CONFIG ['disable_pathinfo_parsing'] = false
 
 $PHPTHUMB_CONFIG ['disable_imagecopyresampled'] = false
 
 $PHPTHUMB_CONFIG ['disable_onlycreateable_passthru'] = true
 
 $PHPTHUMB_CONFIG ['disable_realpath'] = false
 
 $PHPTHUMB_CONFIG ['http_fopen_timeout'] = 10
 
 $PHPTHUMB_CONFIG ['http_follow_redirect'] = true
 
 $PHPTHUMB_CONFIG ['allow_local_http_src'] = true
 
 $PHPTHUMB_CONFIG ['use_exif_thumbnail_for_speed'] = true
 
 $PHPTHUMB_DEFAULTS_GETSTRINGOVERRIDE = true
 
 $PHPTHUMB_DEFAULTS_DISABLEGETPARAMS = false
 
 $GLOBALS ['PHPTHUMB_CONFIG'] = $PHPTHUMB_CONFIG
 

Documentation des fonctions

◆ phpThumbURL()

phpThumbURL (   $ParameterString,
  $path_to_phpThumb = 'phpThumb.php' 
)

Documentation des variables

◆ $GLOBALS

$GLOBALS[ 'PHPTHUMB_CONFIG'] = $PHPTHUMB_CONFIG

◆ $PHPTHUMB_CONFIG [1/67]

$PHPTHUMB_CONFIG[ 'additional_allowed_dirs'] = array()

◆ $PHPTHUMB_CONFIG [2/67]

$PHPTHUMB_CONFIG[ 'allow_local_http_src'] = true

◆ $PHPTHUMB_CONFIG [3/67]

$PHPTHUMB_CONFIG[ 'allow_src_above_docroot'] = false

◆ $PHPTHUMB_CONFIG [4/67]

$PHPTHUMB_CONFIG[ 'allow_src_above_phpthumb'] = true

◆ $PHPTHUMB_CONFIG [5/67]

$PHPTHUMB_CONFIG[ 'auto_allow_symlinks'] = true

◆ $PHPTHUMB_CONFIG [6/67]

$PHPTHUMB_CONFIG[ 'background_hexcolor'] = 'FFFFFF'

◆ $PHPTHUMB_CONFIG [7/67]

$PHPTHUMB_CONFIG[ 'border_hexcolor'] = '000000'

◆ $PHPTHUMB_CONFIG [8/67]

$PHPTHUMB_CONFIG[ 'cache_default_only_suffix'] = ''

◆ $PHPTHUMB_CONFIG [9/67]

$PHPTHUMB_CONFIG[ 'cache_directory'] = XOOPS_CACHE_PATH

◆ $PHPTHUMB_CONFIG [10/67]

$PHPTHUMB_CONFIG[ 'cache_directory_depth'] = 4

◆ $PHPTHUMB_CONFIG [11/67]

$PHPTHUMB_CONFIG[ 'cache_disable_warning'] = false

◆ $PHPTHUMB_CONFIG [12/67]

$PHPTHUMB_CONFIG[ 'cache_force_passthru'] = true

◆ $PHPTHUMB_CONFIG [13/67]

$PHPTHUMB_CONFIG[ 'cache_maxage'] = 86400 * 30

◆ $PHPTHUMB_CONFIG [14/67]

$PHPTHUMB_CONFIG[ 'cache_maxfiles'] = 200

◆ $PHPTHUMB_CONFIG [15/67]

$PHPTHUMB_CONFIG[ 'cache_maxsize'] = 10 * 1024 * 1024

◆ $PHPTHUMB_CONFIG [16/67]

$PHPTHUMB_CONFIG[ 'cache_prefix'] = 'phpThumb_cache_' . (isset($_SERVER['SERVER_NAME']) ? str_replace('www.', '', $_SERVER['SERVER_NAME']) . '_' : '')

◆ $PHPTHUMB_CONFIG [17/67]

$PHPTHUMB_CONFIG[ 'cache_source_directory'] = XOOPS_CACHE_PATH

◆ $PHPTHUMB_CONFIG [18/67]

$PHPTHUMB_CONFIG[ 'cache_source_enabled'] = true

◆ $PHPTHUMB_CONFIG [19/67]

$PHPTHUMB_CONFIG[ 'cache_source_filemtime_ignore_local'] = false

◆ $PHPTHUMB_CONFIG [20/67]

$PHPTHUMB_CONFIG[ 'cache_source_filemtime_ignore_remote'] = true

◆ $PHPTHUMB_CONFIG [21/67]

$PHPTHUMB_CONFIG[ 'disable_debug'] = true

◆ $PHPTHUMB_CONFIG [22/67]

$PHPTHUMB_CONFIG[ 'disable_imagecopyresampled'] = false

◆ $PHPTHUMB_CONFIG [23/67]

$PHPTHUMB_CONFIG[ 'disable_onlycreateable_passthru'] = true

◆ $PHPTHUMB_CONFIG [24/67]

$PHPTHUMB_CONFIG[ 'disable_pathinfo_parsing'] = false

◆ $PHPTHUMB_CONFIG [25/67]

$PHPTHUMB_CONFIG[ 'disable_realpath'] = false

◆ $PHPTHUMB_CONFIG [26/67]

$PHPTHUMB_CONFIG[ 'document_root'] = XOOPS_ROOT_PATH

◆ $PHPTHUMB_CONFIG [27/67]

$PHPTHUMB_CONFIG[ 'error_bgcolor'] = 'CCCCFF'

◆ $PHPTHUMB_CONFIG [28/67]

$PHPTHUMB_CONFIG[ 'error_die_on_error'] = true

◆ $PHPTHUMB_CONFIG [29/67]

$PHPTHUMB_CONFIG[ 'error_die_on_source_failure'] = true

◆ $PHPTHUMB_CONFIG [30/67]

$PHPTHUMB_CONFIG[ 'error_fontsize'] = 1

◆ $PHPTHUMB_CONFIG [31/67]

$PHPTHUMB_CONFIG[ 'error_image_height'] = 100

◆ $PHPTHUMB_CONFIG [32/67]

$PHPTHUMB_CONFIG[ 'error_image_width'] = 300

◆ $PHPTHUMB_CONFIG [33/67]

$PHPTHUMB_CONFIG[ 'error_message_image_default'] = ''

◆ $PHPTHUMB_CONFIG [34/67]

$PHPTHUMB_CONFIG[ 'error_silent_die_on_error'] = false

◆ $PHPTHUMB_CONFIG [35/67]

$PHPTHUMB_CONFIG[ 'error_textcolor'] = 'FF0000'

◆ $PHPTHUMB_CONFIG [36/67]

$PHPTHUMB_CONFIG[ 'high_security_enabled'] = true

◆ $PHPTHUMB_CONFIG [37/67]

$PHPTHUMB_CONFIG[ 'high_security_password'] = ''

◆ $PHPTHUMB_CONFIG [38/67]

$PHPTHUMB_CONFIG[ 'high_security_url_separator'] = '&'

◆ $PHPTHUMB_CONFIG [39/67]

$PHPTHUMB_CONFIG[ 'http_follow_redirect'] = true

◆ $PHPTHUMB_CONFIG [40/67]

$PHPTHUMB_CONFIG[ 'http_fopen_timeout'] = 10

◆ $PHPTHUMB_CONFIG [41/67]

$PHPTHUMB_CONFIG[ 'http_user_agent'] = @$_SERVER['HTTP_USER_AGENT']

◆ $PHPTHUMB_CONFIG [42/67]

$PHPTHUMB_CONFIG[ 'imagemagick_use_thumbnail'] = true

◆ $PHPTHUMB_CONFIG [43/67]

$PHPTHUMB_CONFIG[ 'mysql_database'] = ''

◆ $PHPTHUMB_CONFIG [44/67]

$PHPTHUMB_CONFIG[ 'mysql_extension'] = 'mysqli'

◆ $PHPTHUMB_CONFIG [45/67]

$PHPTHUMB_CONFIG[ 'mysql_hostname'] = 'localhost'

◆ $PHPTHUMB_CONFIG [46/67]

$PHPTHUMB_CONFIG[ 'mysql_password'] = ''

◆ $PHPTHUMB_CONFIG [47/67]

$PHPTHUMB_CONFIG[ 'mysql_query'] = ''

◆ $PHPTHUMB_CONFIG [48/67]

$PHPTHUMB_CONFIG[ 'mysql_username'] = ''

◆ $PHPTHUMB_CONFIG [49/67]

$PHPTHUMB_CONFIG[ 'nohotlink_enabled'] = false

◆ $PHPTHUMB_CONFIG [50/67]

$PHPTHUMB_CONFIG[ 'nohotlink_erase_image'] = true

◆ $PHPTHUMB_CONFIG [51/67]

$PHPTHUMB_CONFIG[ 'nohotlink_text_message'] = 'Off-server thumbnailing is not allowed'

◆ $PHPTHUMB_CONFIG [52/67]

$PHPTHUMB_CONFIG[ 'nohotlink_valid_domains'] = array(@$_SERVER['HTTP_HOST'])

◆ $PHPTHUMB_CONFIG [53/67]

$PHPTHUMB_CONFIG[ 'nooffsitelink_enabled'] = false

◆ $PHPTHUMB_CONFIG [54/67]

$PHPTHUMB_CONFIG[ 'nooffsitelink_erase_image'] = false

◆ $PHPTHUMB_CONFIG [55/67]

$PHPTHUMB_CONFIG[ 'nooffsitelink_require_refer'] = false

◆ $PHPTHUMB_CONFIG [56/67]

$PHPTHUMB_CONFIG[ 'nooffsitelink_text_message'] = 'Image taken from ' . @$_SERVER['HTTP_HOST']

◆ $PHPTHUMB_CONFIG [57/67]

$PHPTHUMB_CONFIG[ 'nooffsitelink_valid_domains'] = array(@$_SERVER['HTTP_HOST'])

◆ $PHPTHUMB_CONFIG [58/67]

$PHPTHUMB_CONFIG[ 'nooffsitelink_watermark_src'] = '/demo/images/watermark.png'

◆ $PHPTHUMB_CONFIG [59/67]

$PHPTHUMB_CONFIG[ 'output_format'] = 'png'

◆ $PHPTHUMB_CONFIG [60/67]

$PHPTHUMB_CONFIG[ 'output_interlace'] = true

◆ $PHPTHUMB_CONFIG [61/67]

$PHPTHUMB_CONFIG[ 'output_maxheight'] = 0

◆ $PHPTHUMB_CONFIG [62/67]

$PHPTHUMB_CONFIG[ 'output_maxwidth'] = 0

◆ $PHPTHUMB_CONFIG [63/67]

$PHPTHUMB_CONFIG[ 'prefer_imagemagick'] = true

◆ $PHPTHUMB_CONFIG [64/67]

$PHPTHUMB_CONFIG[ 'temp_directory'] = $PHPTHUMB_CONFIG['cache_directory']

◆ $PHPTHUMB_CONFIG [65/67]

$PHPTHUMB_CONFIG[ 'ttf_directory'] = __DIR__ . '/fonts'

◆ $PHPTHUMB_CONFIG [66/67]

$PHPTHUMB_CONFIG[ 'use_exif_thumbnail_for_speed'] = true

◆ $PHPTHUMB_CONFIG [67/67]

$PHPTHUMB_CONFIG = array()

◆ $PHPTHUMB_DEFAULTS_DISABLEGETPARAMS

$PHPTHUMB_DEFAULTS_DISABLEGETPARAMS = false

◆ $PHPTHUMB_DEFAULTS_GETSTRINGOVERRIDE

$PHPTHUMB_DEFAULTS_GETSTRINGOVERRIDE = true

◆ else

if (phpthumb_functions::version_compare_replacement(phpversion(), '4.3.2', '>=') &&!defined( 'memory_get_usage') &&! @ini_get( 'memory_limit')) else
Valeur initiale :
{
$PHPTHUMB_CONFIG['imagemagick_path'] = null

◆ phpThumbConfigFileVersion

const phpThumbConfigFileVersion '1.7.15'

//

$PHPTHUMB_CONFIG
global $PHPTHUMB_CONFIG
Definition: phpThumb.config.php:28