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']; ?> <?php echo pun_htmlspecialchars($mod_title) ?> installation

Installation successful

Your database has been successfully prepared for . See readme.txt for further instructions.

Restore successful

Your database has been successfully restored.

Mod installation

This script will update your database to work with the following modification:

Mod title:

Author: ()

Disclaimer: Mods are not officially supported by FluxBB. Mods generally can't be uninstalled without running SQL queries manually against the database. Make backups of all data you deem necessary before installing.

If you've previously installed this mod and would like to uninstall it, you can click the Restore button below to restore the database.

Warning: The mod you are about to install was not made specifically to support your current version of FluxBB (). This mod supports FluxBB versions: . If you are uncertain about installing the mod due to this potential version conflict, contact the mod author.