// http://smart.open-publisher.net/ // ---------------------------------------------------------------------- // LICENSE GPL // To read the license please visit http://www.gnu.org/copyleft/gpl.html // ---------------------------------------------------------------------- /** * edit user data script * */ // Check if this file is included in the Smart environement // if (!defined('SF_SECURE_INCLUDE')) { die('No Permission on ' . __FILE__); } // check if the user of this request have rights to modify this user data if (FALSE == rights::ask_access_to_modify_user((int) $_REQUEST['uid'])) { @header('Location: ' . SF_BASE_LOCATION . '/admin/index.php?m=USER'); exit; } // init $B->form_error = FALSE; // delete user if ($_POST['deluser'] == 1) { // check if the user of this request try to delete the own account // This shouldnt be possible // if (FALSE == rights::is_login_user((int) $_POST['uid'])) { $B->user->delete_user((int) $_POST['uid']); @header('Location: ' . SF_BASE_LOCATION . '/admin/index.php?m=USER'); exit; } else {