XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
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 | |
phpThumbURL | ( | $ParameterString, | |
$path_to_phpThumb = 'phpThumb.php' |
|||
) |
$GLOBALS[ 'PHPTHUMB_CONFIG'] = $PHPTHUMB_CONFIG |
$PHPTHUMB_CONFIG[ 'additional_allowed_dirs'] = array() |
$PHPTHUMB_CONFIG[ 'allow_local_http_src'] = true |
$PHPTHUMB_CONFIG[ 'allow_src_above_docroot'] = false |
$PHPTHUMB_CONFIG[ 'allow_src_above_phpthumb'] = true |
$PHPTHUMB_CONFIG[ 'auto_allow_symlinks'] = true |
$PHPTHUMB_CONFIG[ 'background_hexcolor'] = 'FFFFFF' |
$PHPTHUMB_CONFIG[ 'border_hexcolor'] = '000000' |
$PHPTHUMB_CONFIG[ 'cache_default_only_suffix'] = '' |
$PHPTHUMB_CONFIG[ 'cache_directory'] = XOOPS_CACHE_PATH |
$PHPTHUMB_CONFIG[ 'cache_directory_depth'] = 4 |
$PHPTHUMB_CONFIG[ 'cache_disable_warning'] = false |
$PHPTHUMB_CONFIG[ 'cache_force_passthru'] = true |
$PHPTHUMB_CONFIG[ 'cache_maxage'] = 86400 * 30 |
$PHPTHUMB_CONFIG[ 'cache_maxfiles'] = 200 |
$PHPTHUMB_CONFIG[ 'cache_maxsize'] = 10 * 1024 * 1024 |
$PHPTHUMB_CONFIG[ 'cache_prefix'] = 'phpThumb_cache_' . (isset($_SERVER['SERVER_NAME']) ? str_replace('www.', '', $_SERVER['SERVER_NAME']) . '_' : '') |
$PHPTHUMB_CONFIG[ 'cache_source_directory'] = XOOPS_CACHE_PATH |
$PHPTHUMB_CONFIG[ 'cache_source_enabled'] = true |
$PHPTHUMB_CONFIG[ 'cache_source_filemtime_ignore_local'] = false |
$PHPTHUMB_CONFIG[ 'cache_source_filemtime_ignore_remote'] = true |
$PHPTHUMB_CONFIG[ 'disable_debug'] = true |
$PHPTHUMB_CONFIG[ 'disable_imagecopyresampled'] = false |
$PHPTHUMB_CONFIG[ 'disable_onlycreateable_passthru'] = true |
$PHPTHUMB_CONFIG[ 'disable_pathinfo_parsing'] = false |
$PHPTHUMB_CONFIG[ 'disable_realpath'] = false |
$PHPTHUMB_CONFIG[ 'document_root'] = XOOPS_ROOT_PATH |
$PHPTHUMB_CONFIG[ 'error_bgcolor'] = 'CCCCFF' |
$PHPTHUMB_CONFIG[ 'error_die_on_error'] = true |
$PHPTHUMB_CONFIG[ 'error_die_on_source_failure'] = true |
$PHPTHUMB_CONFIG[ 'error_fontsize'] = 1 |
$PHPTHUMB_CONFIG[ 'error_image_height'] = 100 |
$PHPTHUMB_CONFIG[ 'error_image_width'] = 300 |
$PHPTHUMB_CONFIG[ 'error_message_image_default'] = '' |
$PHPTHUMB_CONFIG[ 'error_silent_die_on_error'] = false |
$PHPTHUMB_CONFIG[ 'error_textcolor'] = 'FF0000' |
$PHPTHUMB_CONFIG[ 'high_security_enabled'] = true |
$PHPTHUMB_CONFIG[ 'high_security_password'] = '' |
$PHPTHUMB_CONFIG[ 'high_security_url_separator'] = '&' |
$PHPTHUMB_CONFIG[ 'http_follow_redirect'] = true |
$PHPTHUMB_CONFIG[ 'http_fopen_timeout'] = 10 |
$PHPTHUMB_CONFIG[ 'http_user_agent'] = @$_SERVER['HTTP_USER_AGENT'] |
$PHPTHUMB_CONFIG[ 'imagemagick_use_thumbnail'] = true |
$PHPTHUMB_CONFIG[ 'mysql_database'] = '' |
$PHPTHUMB_CONFIG[ 'mysql_extension'] = 'mysqli' |
$PHPTHUMB_CONFIG[ 'mysql_hostname'] = 'localhost' |
$PHPTHUMB_CONFIG[ 'mysql_password'] = '' |
$PHPTHUMB_CONFIG[ 'mysql_query'] = '' |
$PHPTHUMB_CONFIG[ 'mysql_username'] = '' |
$PHPTHUMB_CONFIG[ 'nohotlink_enabled'] = false |
$PHPTHUMB_CONFIG[ 'nohotlink_erase_image'] = true |
$PHPTHUMB_CONFIG[ 'nohotlink_text_message'] = 'Off-server thumbnailing is not allowed' |
$PHPTHUMB_CONFIG[ 'nohotlink_valid_domains'] = array(@$_SERVER['HTTP_HOST']) |
$PHPTHUMB_CONFIG[ 'nooffsitelink_enabled'] = false |
$PHPTHUMB_CONFIG[ 'nooffsitelink_erase_image'] = false |
$PHPTHUMB_CONFIG[ 'nooffsitelink_require_refer'] = false |
$PHPTHUMB_CONFIG[ 'nooffsitelink_text_message'] = 'Image taken from ' . @$_SERVER['HTTP_HOST'] |
$PHPTHUMB_CONFIG[ 'nooffsitelink_valid_domains'] = array(@$_SERVER['HTTP_HOST']) |
$PHPTHUMB_CONFIG[ 'nooffsitelink_watermark_src'] = '/demo/images/watermark.png' |
$PHPTHUMB_CONFIG[ 'output_format'] = 'png' |
$PHPTHUMB_CONFIG[ 'output_interlace'] = true |
$PHPTHUMB_CONFIG[ 'output_maxheight'] = 0 |
$PHPTHUMB_CONFIG[ 'output_maxwidth'] = 0 |
$PHPTHUMB_CONFIG[ 'prefer_imagemagick'] = true |
$PHPTHUMB_CONFIG[ 'temp_directory'] = $PHPTHUMB_CONFIG['cache_directory'] |
$PHPTHUMB_CONFIG[ 'ttf_directory'] = __DIR__ . '/fonts' |
$PHPTHUMB_CONFIG[ 'use_exif_thumbnail_for_speed'] = true |
$PHPTHUMB_CONFIG = array() |
$PHPTHUMB_DEFAULTS_DISABLEGETPARAMS = false |
$PHPTHUMB_DEFAULTS_GETSTRINGOVERRIDE = true |
if (phpthumb_functions::version_compare_replacement(phpversion(), '4.3.2', '>=') &&!defined( 'memory_get_usage') &&! @ini_get( 'memory_limit')) else |
const phpThumbConfigFileVersion '1.7.15' |
//