把函数:

set_magic_quotes_runtime($new_setting);

替换成:
ini_set("magic_quotes_runtime", $new_setting);