* @copyright 2008-2010 Alexander Schneider * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 * @version SVN: $Id$ * @link http://wordpress.org/extend/plugins/user-access-manager/ */ global $userAccessManager; if (isset($_POST['action'])) { $postAction = $_POST['action']; } else { $postAction = null; } if ($postAction == 'update_db') { if (empty($_POST) || !wp_verify_nonce($_POST['uamSetupUpdateNonce'], 'uamSetupUpdate') ) { wp_die(TXT_UAM_NONCE_FAILURE); } if (isset($_POST['uam_update_db'])) { $update = $_POST['uam_update_db']; } else { $update = null; } if ($update == 'true' || $update == 'network' ) { $network = false; if ($update == 'network') { $network = true; } $userAccessManager->update($network); ?>