'), array('&', '&') // <- this must be the last one ); foreach ($replacements as $replacement) { $query = ' UPDATE '.PREFIX_TABLE.'comments SET content = REPLACE(content, "'. addslashes($replacement[0]). '", "'. addslashes($replacement[1]). '") ;'; pwg_query($query); } load_conf_from_db(); $query = " UPDATE ".USER_INFOS_TABLE." SET template = '".$conf['default_template']."', nb_image_line = ".$conf['nb_image_line'].", nb_line_page = ".$conf['nb_line_page'].", language = '".$conf['default_language']."', maxwidth = ". (empty($conf['default_maxwidth']) ? "NULL" : $conf['default_maxwidth']). ", maxheight = ". (empty($conf['default_maxheight']) ? "NULL" : $conf['default_maxheight']). ", recent_period = ".$conf['recent_period'].", expand = '".boolean_to_string($conf['auto_expand'])."', show_nb_comments = '".boolean_to_string($conf['show_nb_comments'])."', show_nb_hits = '".boolean_to_string($conf['show_nb_hits'])."', enabled_high = '".boolean_to_string( (isset($conf['newuser_default_enabled_high']) ? $conf['newuser_default_enabled_high'] : true) ). "' WHERE user_id = ".$conf['default_user_id'].";"; pwg_query($query); $query = " DELETE FROM ".CONFIG_TABLE." WHERE param IN ( 'default_template', 'nb_image_line', 'nb_line_page', 'default_language', 'default_maxwidth', 'default_maxheight', 'recent_period', 'auto_expand', 'show_nb_comments', 'show_nb_hits' ) ;"; pwg_query($query); // now we upgrade from 1.7.0 include_once(PHPWG_ROOT_PATH.'install/upgrade_1.7.0.php'); ?>