summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-13 09:49:47 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-01-13 09:49:47 +0000
commit10c147aa5e2e1be5a3d4eddebff1cdf1df0b604a (patch)
tree8433a42e47a5583b0f298a96cacc7f6f6689ae9a /lib
parentf2bf44079e365e8ff78cd48d901d5a86020bf13f (diff)
downloadampache-10c147aa5e2e1be5a3d4eddebff1cdf1df0b604a.tar.gz
ampache-10c147aa5e2e1be5a3d4eddebff1cdf1df0b604a.tar.bz2
ampache-10c147aa5e2e1be5a3d4eddebff1cdf1df0b604a.zip
removed libglue in favor of brand new vauth session handler fixes remember me
Diffstat (limited to 'lib')
-rw-r--r--lib/general.lib.php29
1 files changed, 24 insertions, 5 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index 83df9235..a6f100bc 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -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
?>