It's better to change the error_reporting line because there are a few other deprecated functions.
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
You need to wrap this in a test for PHP version 5.3 because E_DEPRECATED only became available as of 5.3.
Another method is
find:
set_magic_quotes_runtime(0);
and replace:
ini_set("magic_quotes_runtime", 0);