summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-12 07:21:19 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-10-12 07:21:19 +0000
commitb1db92ee8c07a1aa7aef7bdb38b4e401aa608a96 (patch)
treeaee0f33f1372d530900e8978b5c6064d31a05777
parent2a8cbedade6d2d7e7e71e5dbb8c562a84cfe6c80 (diff)
downloadampache-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.php3
-rwxr-xr-xmodules/kajax/ajax.js6
-rw-r--r--templates/javascript_refresh.inc.php2
3 files changed, 8 insertions, 3 deletions
diff --git a/index.php b/index.php
index 4a3cb667..d31efcec 100644
--- a/index.php
+++ b/index.php
@@ -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();
}