function urllogin_encode in urllogin 8
Same name and namespace in other branches
- 6 urllogin_security.inc \urllogin_encode()
- 7 urllogin_security.inc \urllogin_encode()
- 2.x urllogin_security.inc \urllogin_encode()
Encodes a user ID into an encoded url string.
Parameters
int $uid: user ID to be encoded.
int $codekey: Integer containing current active code.
string $passkey: String containing encryption key phrase.
Return value
string encoded url string
3 calls to urllogin_encode()
- UrlloginController::status in src/
Controller/ UrlloginController.php - Displays status page.
- UrlloginController::userList in src/
Controller/ UrlloginController.php - Link to download of user access URL's as a csv.
- urllogin_retrieve in ./
urllogin.module - Callback for retrieving URL access details.
File
- ./
urllogin_security.inc, line 173 - Include file for urllogin security functions.
Code
function urllogin_encode($uid, $codekey, $passkey) {
// First encrypt the two values.
urllogin_encrypt($uid, $codekey, $x, $passkey);
// Then encode them into a string suitable for embedding into a URL.
return urllogin_base64enc($uid, $codekey, $x);
}