diff options
-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(); } |