add_field('users', 'use_pm', 'TINYINT(1)', false, '1', 'activate_key') or error('Unable to add column "use_pm" to table "users"', __FILE__, __LINE__, $db->error()); $db->add_field('users', 'notify_pm', 'TINYINT(1)', false, '1', 'use_pm') or error('Unable to add column "notify_pm" to table "users"', __FILE__, __LINE__, $db->error()); $db->add_field('users', 'num_pms', 'INT(10) UNSIGNED', false, '0', 'num_posts') or error('Unable to add column "num_pms" to table "users"', __FILE__, __LINE__, $db->error()); // Regenerate the config cache if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) require PUN_ROOT.'include/cache.php'; generate_config_cache(); } // This following function will be called when the user presses the "Restore" button (only if $mod_restore is true (see above)) function restore() { global $db, $db_type, $pun_config; // Regenerate the config cache if (!defined('FORUM_CACHE_FUNCTIONS_LOADED')) require PUN_ROOT.'include/cache.php'; generate_config_cache(); } // Make sure we are running a FluxBB version that this mod works with $version_warning = !in_array($pun_config['o_cur_version'], $fluxbb_versions); $style = (isset($pun_user)) ? $pun_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.