summaryrefslogtreecommitdiffstats
path: root/lib/general.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-23 09:01:09 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-23 09:01:09 +0000
commitea8f3e685b85074d55b88a3c2ef9d6a536c173ca (patch)
tree801d4289a88dbe92d7c9bb27e038fad9242cf71e /lib/general.lib.php
parentbe699cab75c8993175a4994316b9665105c86696 (diff)
downloadampache-ea8f3e685b85074d55b88a3c2ef9d6a536c173ca.tar.gz
ampache-ea8f3e685b85074d55b88a3c2ef9d6a536c173ca.tar.bz2
ampache-ea8f3e685b85074d55b88a3c2ef9d6a536c173ca.zip
fixed API calls, cleaned up old functions that are no longer needed
Diffstat (limited to 'lib/general.lib.php')
-rw-r--r--lib/general.lib.php38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index 417ca483..fcf69e32 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -456,44 +456,6 @@ function get_languages() {
} // get_languages
/**
- * logout
- * This is the function that is called to log a user out!
- */
-function logout() {
-
- // Do a quick check to see if this is an AJAX'd logout request
- // if so use the iframe to redirect
- if (AJAX_INCLUDE == '1') {
- ob_end_clean();
- ob_start();
-
- /* Set the correct headers */
- header("Content-type: text/xml; charset=" . Config::get('site_charset'));
- header("Content-Disposition: attachment; filename=ajax.xml");
- header("Expires: Tuesday, 27 Mar 1984 05:00:00 GMT");
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header("Cache-Control: no-store, no-cache, must-revalidate");
- header("Pragma: no-cache");
-
- $target = Config::get('web_path') . '/login.php';
- $results['rfc3514'] = '<script type="text/javascript">reload_logout("'.$target.'")</script>';
- echo xml_from_array($results);
- }
-
- /* First destory their session */
- vauth_logout(session_id());
-
-
- /* Redirect them to the login page */
- if (AJAX_INCLUDE != '1') {
- header ('Location: ' . Config::get('web_path') . '/login.php');
- }
-
- return true;
-
-} // logout
-
-/**
* format_time
* This formats seconds into minutes:seconds
*/