Ciao a tutti, premetto di non essere un tecnico, anzi, di essere quasi totalmente all'asciutto in tema di PHP.
Utilizzo un gestionale per newsletter di nome "poMMo", che risiede sul mio spazio web.
Da qualche tempo, una volta aperta la pagina di poMMo, mi spunto la seguente scritta in alto:
"Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/inform14/public_html/pommo/bootstrap.php on line 56"
Ora, grazie a google mi sembra di aver capito che ciò avviene perchè, stando a quello che si legge qui, utilizzare questa funzione è altamente sconsigliato:
http://www.php.net/manual/en/functio...es-runtime.php
Ho individuato il file php su cui dovrei agire per risolvere questo problema: mi dite come dovrei modificarlo?
Di seguito il contenuto del file:
codice:
<?php
// Start Output buffering
ob_start();
// while poMMo is in development state, we'll attempt to display PHP notices, warnings, errors
ini_set('display_errors', '1');
// error_reporting(E_ALL); // [DEVELOPMENT]
error_reporting(E_ALL ^ E_NOTICE); // [RELEASE]
// Include core components
require(dirname(__FILE__) . '/inc/helpers/common.php'); // base helper functions
require(dirname(__FILE__) . '/inc/classes/api.php'); // base API
require(dirname(__FILE__) . '/inc/classes/pommo.php'); // base object
// Setup the core global. All utility is tucked away within this global to reduce namespace
// pollution and possible collissions when poMMo is embedded in another application.
$GLOBALS['pommo'] = new Pommo(dirname(__FILE__) . '/');
/*
* Disable session.use_trans_sid to mitigate performance-penalty
* (do it before any output is started) [from gallery2]
*/
if (!defined('SID')) {
@ini_set('session.use_trans_sid', 0);
}
// soft turn off magic quotes -- NOTE; this may break embedded scripts?
// clean user input of slashes added by magic quotes. TODO; optimize this.
if (get_magic_quotes_gpc()) {
$_REQUEST = PommoHelper::slashStrip($_REQUEST);
$_GET = PommoHelper::slashStrip($_GET);
$_POST = PommoHelper::slashStrip($_POST);
}
// disable escaping from DB
set_magic_quotes_runtime(0);
// Assign alias to the core global which can be used by the script calling bootstrap.php
$pommo =& $GLOBALS['pommo'];
$pommo->preinit();
?>
Grazie!