$browse->set_static_content(true); $browse->save_objects($objects); $browse->show_objects($objects); $browse->store(); $results[$browse->get_content_div()] = ob_get_contents(); ob_end_clean(); break; case 'delete_instance': // Make sure that you have access to do this... if (!Access::check('localplay', '75')) { debug_event('DENIED', 'Attempted to delete instance without access', '1'); exit; } // Scrub it in $localplay = new Localplay(AmpConfig::get('localplay_controller')); $localplay->delete_instance($_REQUEST['instance']); $key = 'localplay_instance_' . $_REQUEST['instance']; $results[$key] = ''; break; case 'repeat': // Make sure that they have access to do this again no clue if (!Access::check('localplay', '50')) { debug_event('DENIED', 'Attempted to set repeat without access', '1'); exit; } // Scrub her in $localplay = new Localplay(AmpConfig::get('localplay_controller')); $localplay->connect(); $localplay->repeat(make_bool($_REQUEST['value'])); ob_start(); $objects = $localplay->get();