* @copyright 2008-2016 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 $oUserAccessManager; $sPostAction = (isset($_POST['action'])) ? $_POST['action'] : null; if ($sPostAction === 'update_db') { if (empty($_POST) || !wp_verify_nonce($_POST['uamSetupUpdateNonce'], 'uamSetupUpdate')) { wp_die(TXT_UAM_NONCE_FAILURE); } $sUpdate = isset($_POST['uam_update_db']) ? $_POST['uam_update_db'] : null; if ($sUpdate === 'blog' || $sUpdate === 'network' ) { $blNetwork = ($sUpdate == 'network') ? true : false; $oUserAccessManager->update($blNetwork); ?>