summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-21 16:38:27 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-06-21 16:38:27 +0000
commitfbab0ebea531927baf98e6144599057db464c49b (patch)
tree94d18a10ad3f4cb2b6a7f5416524191f0bb378a5 /index.php
parent280ee86ed799fbc39139c46b49d43cfc150ddae4 (diff)
downloadampache-fbab0ebea531927baf98e6144599057db464c49b.tar.gz
ampache-fbab0ebea531927baf98e6144599057db464c49b.tar.bz2
ampache-fbab0ebea531927baf98e6144599057db464c49b.zip
fixed nowplaying refresh issues and switched it to div layout
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/index.php b/index.php
index 3ea40c23..6e0c0f56 100644
--- a/index.php
+++ b/index.php
@@ -31,6 +31,18 @@ require_once('lib/init.php');
show_template('header');
$action = scrub_in($_REQUEST['action']);
+
+/**
+ * Check for the refresh mojo, if it's there then require the
+ * refresh_javascript include. Must be greater then 5, I'm not
+ * 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_object = 'nowplaying';
+ require_once(conf('prefix') . '/templates/javascript_refresh.inc.php');
+}
?>
<!-- Big Daddy Table -->