diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-12 07:21:19 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-12 07:21:19 +0000 |
commit | b1db92ee8c07a1aa7aef7bdb38b4e401aa608a96 (patch) | |
tree | aee0f33f1372d530900e8978b5c6064d31a05777 | |
parent | 2a8cbedade6d2d7e7e71e5dbb8c562a84cfe6c80 (diff) | |
download | ampache-b1db92ee8c07a1aa7aef7bdb38b4e401aa608a96.tar.gz ampache-b1db92ee8c07a1aa7aef7bdb38b4e401aa608a96.tar.bz2 ampache-b1db92ee8c07a1aa7aef7bdb38b4e401aa608a96.zip |
fixed now playing, needed to be updated to take account for new hotness
-rw-r--r-- | index.php | 3 | ||||
-rwxr-xr-x | modules/kajax/ajax.js | 6 | ||||
-rw-r--r-- | templates/javascript_refresh.inc.php | 2 |
3 files changed, 8 insertions, 3 deletions
@@ -38,8 +38,7 @@ $action = scrub_in($_REQUEST['action']); * going to let them break their servers */ if (conf('refresh_limit') > 5) { - $ajax_url = conf('web_path') . '/server/ajax.server.php?action=reloadnp&user_id=' . $GLOBALS['user']->id . - '&sessid=' . session_id(); + $ajax_url = conf('ajax_url') . '?action=reloadnp' . conf('ajax_info'); $ajax_object = 'np_refresh'; require_once(conf('prefix') . '/templates/javascript_refresh.inc.php'); } diff --git a/modules/kajax/ajax.js b/modules/kajax/ajax.js index 9a7bea50..439cda3c 100755 --- a/modules/kajax/ajax.js +++ b/modules/kajax/ajax.js @@ -1,3 +1,9 @@ +// Copyright Ampache.org 2001 - 2006
+// All Rights Reserved
+// Origional Author Kevin Riker
+// Updated to handle post and XML Get by Karl Vollmer
+// Published under the GNU GPL
+
//var xmlDoc = null;
var http_request = false;
var IE = true;
diff --git a/templates/javascript_refresh.inc.php b/templates/javascript_refresh.inc.php index 6fbdd9b6..cd51773b 100644 --- a/templates/javascript_refresh.inc.php +++ b/templates/javascript_refresh.inc.php @@ -15,7 +15,7 @@ function refresh() // entry in the visitor's history. It is provided for // those browsers that only support JavaScript 1.0. // - ajaxPut('<?php echo $ajax_url; ?>','<?php echo $ajax_object; ?>'); + ajaxPut('<?php echo $ajax_url; ?>',<?php echo $ajax_object; ?>); doLoad(); } |