function urllogin_passphrase in urllogin 7
Same name and namespace in other branches
- 8 urllogin.module \urllogin_passphrase()
- 6 urllogin.module \urllogin_passphrase()
- 2.x urllogin.module \urllogin_passphrase()
Returns the current passphrase.
If the variable $GLOBALS['urllogin_passphrase'] has been set in settings.php then use it as the passphrase. Otherwise use the string set in the admin interface and if urllogin_add_dbpass is set, then append the database access string.
Return value
full passphrase for encryption
5 calls to urllogin_passphrase()
- urllogin_link_page in ./
urllogin.inc - This is the function that actually performs the login.
- urllogin_status_page in ./
urllogin.inc - Displays status page and allows a URL string to be generated for test purposes.
- urllogin_test_page in ./
urllogin.inc - Diagnostic test page for setting up urllogin urls.
- urllogin_userlist_page in ./
urllogin.inc - Link to download of user access URL's as a csv. A theme template file is needed of the page-urllogin-userlist.csv.tpl containing the single line: < ?php print $content; ? >
- _urllogin_retrieve in ./
urllogin.module - Callback for retrieving URL access details.
3 string references to 'urllogin_passphrase'
- urllogin_admin_settings in ./
urllogin.inc - Administration form.
- urllogin_status_page in ./
urllogin.inc - Displays status page and allows a URL string to be generated for test purposes.
- urllogin_uninstall in ./
urllogin.install - Implements hook_uninstall().
File
- ./
urllogin.module, line 24 - Allows login using link from URL.
Code
function urllogin_passphrase() {
if (isset($GLOBALS['urllogin_passphrase'])) {
// first see if it is in settings.php
$passphrase = $GLOBALS['urllogin_passphrase'];
}
else {
$passphrase = variable_get('urllogin_passphrase', 'passphrase');
if (variable_get('urllogin_add_dbpass', '0') != 0) {
global $db_url;
$passphrase .= $db_url;
}
}
return $passphrase;
}