createUser($username, $password1, $password2, $email, $Messenger)) { return $Response->setError($Messenger->getError()); } if (!$UserCollection->save($Messenger)) { return $Response->setError($Messenger->getError()); } return $Response->setSuccess(Text::get('addedSuccess') . ' "' . $username . '"'); } /** * Optionally remove posted accounts and * return the accounts grid. * * @return Response the response object */ public static function edit(): Response { $Response = new Response(); $Messenger = new Messenger(); $UserCollection = new UserCollection(); if ($users = Request::post('delete')) { if (!is_array($users)) { return $Response; } $users = array_keys($users); if ($UserCollection->delete($users, $Messenger)) { $Response->setSuccess(Text::get('deteledSuccess') . ' "' . implode('", "', $users) . '"'); } else { $Response->setError($Messenger->getError()); } } return $Response; } /** * Invite a new user by email. * * @return Response a response object */ public static function inviteUser(): Response { $Response = new Response(); $UserCollection = new UserCollection(); $Messenger = new Messenger(); $username = trim(Request::post('username')); $email = trim(Request::post('email')); $password = str_shuffle(sha1(microtime())); if (!$UserCollection->createUser($username, $password, $password, $email, $Messenger)) { return $Response->setError($Messenger->getError()); } if (!$UserCollection->save($Messenger)) { return $Response->setError($Messenger->getError()); } if (!$UserCollection->sendInvitation($username, $email, $Messenger)) { return $Response->setError($Messenger->getError()); } return $Response->setSuccess(Text::get('systemUsersSendInvitationSuccess')); } } __halt_compiler();----SIGNATURE:----zsg7RYR6FMcMkai6oOWWWvrvAhC9+OwYNIoQJjslT82TJtOHIFEBfe+L9+LZBB3YbYGzdBM9hC+PXEs+9smLHVF4Yo70+jKXoTQUiwWIvau7IjRtDI1TOQB2fY9EHeQnB4GLPWgphUJWYoieeuauj2USvs+KDX9JD0duhEiMyIS1qKguUpmGluP4gXoxdBXucsyCG5o4BQv7LB7idfQcg5A3+S1oULNGa47ReNfjQ1wzqLDNZiouwTLzlP3vfkXYk5veAEaG6/YD2rt5j9+i1BlY2gO9E3RID4ZgnML1maeJQFgbcqZ4EIoJ//HdBrnOaDEaojIFChGCEm+MVI8MjfWcxPZGHkWLl6lkoTaJy6h1N59kgmsZHmpVFnmGq7PcxtqjnJDaC16Yq4LgIBKlWgpK0l0Zt5DQeZ4DVCkWNTHA9NwiS2owhSf8I2FkNDAfr62tkmuax0PDQOjVeDwWcb9uamwb5+tmYwHyA5QcAIW3rXLtVMl8eCJEjFRNL5OVag6pjehbEy7WxcajLG8sCWg9bt5yQxXOm9LRjfWexrmRa0EAY1K6/3cIXSVDut1TQyMraGjmWSXsAkW3kr51MZc3+fVgGJl8AoVCtkzij5v6fPRxxQPLAtGG0p3wAvCy7EvFhXFB073C7kGplY8CqnCjhhLxL425+QkGEVW8+VU=----ATTACHMENT:----Nzc0NjU1NDA5OTg5NTcyMiA3MDI0MjE5MDgxMDMyNDE1IDIzMTc2MTA1NTcxMDEwNw==