<link rel="stylesheet" type="text/css" href="admin.css" /> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff"> <tr class="top-bar"> <td class="links"> [ <a href="upgrade_list.php">Back to Upgrade List</a> ] [ <a href="upgrade_escaping.php">Refresh view</a> ] </td> <td class="title"> String Escaping Database Fixes </td> </tr> </table> <br /><br /> <?php if (!db_table_exists(config_get('mantis_upgrade_table'))) { # Create the upgrade table if it does not exist $query = "CREATE TABLE " . config_get('mantis_upgrade_table') . "(upgrade_id char(20) NOT NULL,\n\t\t\t\t description char(255) NOT NULL,\n\t\t\t\t PRIMARY KEY (upgrade_id))"; $result = db_query($query); } # link the data structures and upgrade list require_once 'upgrade_inc.php'; # drop the database upgrades and load the escaping ones $upgrade_set = new UpgradeSet(); $upgrade_set->add_items(include 'upgrades/0_17_escaping_fixes_inc.php'); $upgrade_set->process_post_data(); ?> </body> </html>
# the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # # Mantis is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Mantis. If not, see <http://www.gnu.org/licenses/>. # -------------------------------------------------------- # $Id: upgrade_advanced.php,v 1.7.2.1 2007-10-13 22:34:58 giallu Exp $ # -------------------------------------------------------- require_once 'upgrade_inc.php'; $upgrade_set = new UpgradeSet(); $upgrade_set->add_items(include 'upgrades/0_13_inc.php'); $upgrade_set->add_items(include 'upgrades/0_14_inc.php'); $upgrade_set->add_items(include 'upgrades/0_15_inc.php'); $upgrade_set->add_items(include 'upgrades/0_16_inc.php'); $upgrade_set->add_items(include 'upgrades/0_17_inc.php'); $upgrade_set->add_items(include 'upgrades/0_18_inc.php'); $upgrade_set->add_items(include 'upgrades/0_19_inc.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title> Mantis Administration - Database Upgrade </title> <link rel="stylesheet" type="text/css" href="admin.css" /> </head> <body>