From c55dbbc995e152af3f2c88662101b0643d2e171a Mon Sep 17 00:00:00 2001 From: vdigital Date: Fri, 23 May 2008 22:38:14 +0000 Subject: Removed file/folder git-svn-id: http://piwigo.org/svn/trunk@2358 68402e56-0260-453c-a942-63ccdbb3a9ee --- BSF/install/upgrade_1.6.2.php | 346 ------------------------------------------ 1 file changed, 346 deletions(-) delete mode 100644 BSF/install/upgrade_1.6.2.php (limited to 'BSF/install/upgrade_1.6.2.php') diff --git a/BSF/install/upgrade_1.6.2.php b/BSF/install/upgrade_1.6.2.php deleted file mode 100644 index af5789b1c..000000000 --- a/BSF/install/upgrade_1.6.2.php +++ /dev/null @@ -1,346 +0,0 @@ -'), - 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'); -?> -- cgit v1.2.3