'0', 'o_links_captcha' => '0' ); $db->query("UPDATE ".$db->prefix."config SET conf_name = 'o_links_debug_info' WHERE conf_name = 'o_debug_info' ") or error('Unable to update column "'.$key.'" to config table', __FILE__, __LINE__, $db->error()); foreach($links_config AS $key => $value) { $db->query("INSERT INTO ".$db->prefix."config (conf_name, conf_value) VALUES ('$key', '".$db->escape($value)."') ") or error('Unable to add column "'.$key.'" to config table', __FILE__, __LINE__, $db->error()); } break; } } // This following function will be called when the user presses the "Restore" button (only if $mod_uninstall is true (see above)) /* function restore() { global $db, $db_type, $pun_config; DO DATABASE RESTORE HERE switch ($db_type) { default: $db->query("ALTER TABLE ".$db->prefix."forums DROP subscribed_groups") or error('Unable to drop column "$subscribed groups" from table "forums"', __FILE__, __LINE__, $db->error()); break; } }*/ /***********************************************************************/ // DO NOT EDIT ANYTHING BELOW THIS LINE! // Circumvent maintenance mode define('PUN_TURN_OFF_MAINT', 1); define('PUN_ROOT', './'); require PUN_ROOT.'include/common.php'; // We want the complete error message if the script fails if (!defined('PUN_DEBUG')) define('PUN_DEBUG', 1); // Make sure we are running a PunBB version that this mod works with $version_warning = false; if(!in_array($pun_config['o_cur_version'], $punbb_versions)) { foreach ($punbb_versions as $temp) { if (substr($temp, 0, 3) == substr($pun_config['o_cur_version'], 0, 3)) { $version_warning = true; break; } } if (!$version_warning) exit('You are running a version of PunBB ('.$pun_config['o_cur_version'].') that this mod does not support. This mod supports PunBB versions: '.implode(', ', $punbb_versions)); } $style = (isset($cur_user)) ? $cur_user['style'] : $pun_config['o_default_style']; ?>
Your database has been successfully prepared for . See readme.txt for further instructions.
Your database has been successfully restored.