XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
phpThumb.config.php File Reference

Go to the source code of this file.

Functions

 phpThumbURL ($ParameterString)
 

Variables

 $PHPTHUMB_CONFIG ['document_root'] = XOOPS_ROOT_PATH
 
 $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
 
 $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'] = dirname(__FILE__).'/fonts'
 
 $PHPTHUMB_CONFIG ['mysql_query'] = ''
 
 $PHPTHUMB_CONFIG ['mysql_hostname'] = 'localhost'
 
 $PHPTHUMB_CONFIG ['mysql_username'] = ''
 
 $PHPTHUMB_CONFIG ['mysql_password'] = ''
 
 $PHPTHUMB_CONFIG ['mysql_database'] = ''
 
 $PHPTHUMB_CONFIG ['high_security_enabled'] = false
 
 $PHPTHUMB_CONFIG ['high_security_password'] = ''
 
 $PHPTHUMB_CONFIG ['disable_debug'] = true
 
 $PHPTHUMB_CONFIG ['allow_src_above_docroot'] = true
 
 $PHPTHUMB_CONFIG ['allow_src_above_phpthumb'] = true
 
 $PHPTHUMB_CONFIG ['allow_parameter_file'] = false
 
 $PHPTHUMB_CONFIG ['allow_parameter_goto'] = false
 
 $PHPTHUMB_CONFIG ['http_user_agent'] = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7'
 
 $PHPTHUMB_CONFIG ['disable_pathinfo_parsing'] = false
 
 $PHPTHUMB_CONFIG ['disable_imagecopyresampled'] = false
 
 $PHPTHUMB_CONFIG ['disable_onlycreateable_passthru'] = true
 
 $PHPTHUMB_CONFIG ['http_fopen_timeout'] = 10
 
 $PHPTHUMB_CONFIG ['http_follow_redirect'] = true
 
 $PHPTHUMB_CONFIG ['use_exif_thumbnail_for_speed'] = true
 
 $PHPTHUMB_CONFIG ['allow_local_http_src'] = true
 
 $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
 

Function Documentation

phpThumbURL (   $ParameterString)

Definition at line 249 of file phpThumb.config.php.

References $PHPTHUMB_CONFIG.

Variable Documentation

$PHPTHUMB_CONFIG['document_root'] = XOOPS_ROOT_PATH

Definition at line 30 of file phpThumb.config.php.

Referenced by phpThumbURL(), and RedirectToCachedFile().

$PHPTHUMB_CONFIG['cache_directory'] = XOOPS_CACHE_PATH

Definition at line 35 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_disable_warning'] = false

Definition at line 45 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_directory_depth'] = 4

Definition at line 47 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_maxage'] = 86400 * 30

Definition at line 54 of file phpThumb.config.php.

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

Definition at line 57 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_maxfiles'] = 200

Definition at line 60 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_source_enabled'] = true

Definition at line 64 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_source_directory'] = XOOPS_CACHE_PATH

Definition at line 65 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_source_filemtime_ignore_local'] = false

Definition at line 68 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_source_filemtime_ignore_remote'] = true

Definition at line 69 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_default_only_suffix'] = ''

Definition at line 77 of file phpThumb.config.php.

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

Definition at line 81 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['cache_force_passthru'] = true

Definition at line 84 of file phpThumb.config.php.

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

Definition at line 94 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['prefer_imagemagick'] = true

Definition at line 124 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['imagemagick_use_thumbnail'] = true

Definition at line 125 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['output_format'] = 'png'

Definition at line 138 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['output_maxwidth'] = 0

Definition at line 139 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['output_maxheight'] = 0

Definition at line 140 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['output_interlace'] = true

Definition at line 141 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_image_width'] = 300

Definition at line 144 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_image_height'] = 100

Definition at line 145 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_message_image_default'] = ''

Definition at line 146 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_bgcolor'] = 'CCCCFF'

Definition at line 147 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_textcolor'] = 'FF0000'

Definition at line 148 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_fontsize'] = 1

Definition at line 149 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_die_on_error'] = true

Definition at line 150 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_silent_die_on_error'] = false

Definition at line 151 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['error_die_on_source_failure'] = true

Definition at line 152 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['nohotlink_enabled'] = false

Definition at line 155 of file phpThumb.config.php.

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

Definition at line 156 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['nohotlink_erase_image'] = true

Definition at line 157 of file phpThumb.config.php.

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

Definition at line 158 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['nooffsitelink_enabled'] = false

Definition at line 161 of file phpThumb.config.php.

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

Definition at line 162 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['nooffsitelink_require_refer'] = false

Definition at line 163 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['nooffsitelink_erase_image'] = false

Definition at line 164 of file phpThumb.config.php.

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

Definition at line 165 of file phpThumb.config.php.

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

Definition at line 166 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['border_hexcolor'] = '000000'

Definition at line 170 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['background_hexcolor'] = 'FFFFFF'

Definition at line 171 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['ttf_directory'] = dirname(__FILE__).'/fonts'

Definition at line 174 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['mysql_query'] = ''

Definition at line 183 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['mysql_hostname'] = 'localhost'

Definition at line 187 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['mysql_username'] = ''

Definition at line 188 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['mysql_password'] = ''

Definition at line 189 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['mysql_database'] = ''

Definition at line 190 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['high_security_enabled'] = false

Definition at line 194 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['high_security_password'] = ''

Definition at line 195 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['disable_debug'] = true

Definition at line 196 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['allow_src_above_docroot'] = true

Definition at line 197 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['allow_src_above_phpthumb'] = true

Definition at line 198 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['allow_parameter_file'] = false

Definition at line 199 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['allow_parameter_goto'] = false

Definition at line 200 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['http_user_agent'] = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7'

Definition at line 206 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['disable_pathinfo_parsing'] = false

Definition at line 210 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['disable_imagecopyresampled'] = false

Definition at line 211 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['disable_onlycreateable_passthru'] = true

Definition at line 212 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['http_fopen_timeout'] = 10

Definition at line 216 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['http_follow_redirect'] = true

Definition at line 217 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['use_exif_thumbnail_for_speed'] = true

Definition at line 221 of file phpThumb.config.php.

$PHPTHUMB_CONFIG['allow_local_http_src'] = true

Definition at line 222 of file phpThumb.config.php.

$PHPTHUMB_DEFAULTS_DISABLEGETPARAMS = false

Definition at line 232 of file phpThumb.config.php.

$PHPTHUMB_DEFAULTS_GETSTRINGOVERRIDE = true

Definition at line 231 of file phpThumb.config.php.

if (strtoupper(substr(PHP_OS, 0, 3))== 'WIN') else
Initial value:
{
$PHPTHUMB_CONFIG['max_source_pixels'] = round(max(intval(ini_get('memory_limit')), intval(get_cfg_var('memory_limit'))) * 1048576 / 6)

Definition at line 113 of file phpThumb.config.php.