} $channel->start_channel(); sleep(1); echo $channel->get_channel_state(); } $results['channel_state_' . $_REQUEST['id']] = ob_get_clean(); } break; case 'stop_channel': if (Access::check('interface', '75')) { ob_start(); $channel = new Channel($_REQUEST['id']); if ($channel->id) { $channel->stop_channel(); sleep(1); echo $channel->get_channel_state(); } $results['channel_state_' . $_REQUEST['id']] = ob_get_clean(); } break; case 'slideshow': ob_start(); $images = Slideshow::get_current_slideshow(); if (count($images) > 0) { $fsname = 'fslider_' . time(); echo "<div id='" . $fsname . "'>"; foreach ($images as $image) { echo "<img src='" . $image['url'] . "' alt='' onclick='update_action();' />"; } echo "</div>"; $results['fslider'] = ob_get_clean();