. * */ require_once 'lib/init.php'; UI::show_header(); $action = isset($_REQUEST['action']) ? scrub_in($_REQUEST['action']) : null; if (!Core::is_session_started()) { session_start(); } $_SESSION['catalog'] = 0; /** * 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 (AmpConfig::get('refresh_limit') > 5 && AmpConfig::get('home_now_playing')) { $refresh_limit = AmpConfig::get('refresh_limit'); $ajax_url = '?page=index&action=reloadnp'; require_once AmpConfig::get('prefix') . UI::find_template('javascript_refresh.inc.php'); } require_once AmpConfig::get('prefix') . UI::find_template('show_index.inc.php'); UI::show_footer();