diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-06-21 16:38:27 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-06-21 16:38:27 +0000 |
commit | fbab0ebea531927baf98e6144599057db464c49b (patch) | |
tree | 94d18a10ad3f4cb2b6a7f5416524191f0bb378a5 /index.php | |
parent | 280ee86ed799fbc39139c46b49d43cfc150ddae4 (diff) | |
download | ampache-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.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 --> |