1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

removed libglue in favor of brand new vauth session handler fixes remember me

This commit is contained in:
Karl 'vollmerk' Vollmer 2006-01-13 09:49:47 +00:00
parent f2bf44079e
commit 10c147aa5e
15 changed files with 594 additions and 1931 deletions

View file

@ -291,11 +291,15 @@ function error_results($param,$clobber=0)
} //error_results
/*!
@function dbh
@discussion retrieves the DBH
*/
function dbh() { return check_sess_db('local'); }
/**
* dbh
* Alias for the vauth_dbh function
*/
function dbh() {
return vauth_dbh();
} // dbh
/*!
@function fix_preferences
@ -927,5 +931,20 @@ function get_languages() {
} // get_languages
/**
* logout
* This is the function that is called to log a user out!
*/
function logout() {
/* First destory their session */
vauth_logout(session_id());
/* Redirect them to the login page */
header ('Location: ' . conf('web_path') . '/login.php');
return true;
} // logout
?>