mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
Merge pull request #5310 from rubencm/ticket/15738
[ticket/15738] Remove code related with safe_mode
This commit is contained in:
@@ -605,12 +605,6 @@ function create_thumbnail($source, $destination, $mimetype)
|
||||
imagecopyresampled($new_image, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
|
||||
}
|
||||
|
||||
// If we are in safe mode create the destination file prior to using the gd functions to circumvent a PHP bug
|
||||
if (@ini_get('safe_mode') || @strtolower(ini_get('safe_mode')) == 'on')
|
||||
{
|
||||
@touch($destination);
|
||||
}
|
||||
|
||||
switch ($type['format'])
|
||||
{
|
||||
case IMG_GIF:
|
||||
|
@@ -110,7 +110,6 @@ class phpbb_questionnaire_php_data_provider
|
||||
'version' => PHP_VERSION,
|
||||
'sapi' => PHP_SAPI,
|
||||
'int_size' => defined('PHP_INT_SIZE') ? PHP_INT_SIZE : '',
|
||||
'safe_mode' => (int) @ini_get('safe_mode'),
|
||||
'open_basedir' => (int) @ini_get('open_basedir'),
|
||||
'memory_limit' => @ini_get('memory_limit'),
|
||||
'allow_url_fopen' => (int) @ini_get('allow_url_fopen'),
|
||||
@@ -121,8 +120,6 @@ class phpbb_questionnaire_php_data_provider
|
||||
'disable_functions' => @ini_get('disable_functions'),
|
||||
'disable_classes' => @ini_get('disable_classes'),
|
||||
'enable_dl' => (int) @ini_get('enable_dl'),
|
||||
'magic_quotes_gpc' => (int) @ini_get('magic_quotes_gpc'),
|
||||
'register_globals' => (int) @ini_get('register_globals'),
|
||||
'filter.default' => @ini_get('filter.default'),
|
||||
'zend.ze1_compatibility_mode' => (int) @ini_get('zend.ze1_compatibility_mode'),
|
||||
'unicode.semantics' => (int) @ini_get('unicode.semantics'),
|
||||
|
Reference in New Issue
Block a user