diff --git a/html/securimage/securimage.php b/html/securimage/securimage.php index 43c5b8391..2621a715a 100644 --- a/html/securimage/securimage.php +++ b/html/securimage/securimage.php @@ -1570,7 +1570,7 @@ class Securimage_Color { * @param $green Green component 0-255 * @param $blue Blue component 0-255 */ - function Securimage_Color($red, $green = null, $blue = null) + function __construct($red, $green = null, $blue = null) { if ($green == null && $blue == null && preg_match('/^#[a-f0-9]{3,6}$/i', $red)) { $col = substr($red, 1); diff --git a/include/constant.php b/include/constant.php index 48584f3e1..5ee720e1e 100644 --- a/include/constant.php +++ b/include/constant.php @@ -67,6 +67,7 @@ if (strpos($inc_path, ";") != 0) { set_include_path($new_path); @ini_set('default_charset', "UTF-8"); @ini_set('session.use_cookies', 1); +// deprecated @ini_set('magic_quotes_gpc', 'off'); if (!defined('OVERRIDE_PARAM')) {