$smartpl->name = $_POST['name']; $smartpl->type = $_POST['pl_type']; $smartpl->update(); $smartpl->format(); } break; case 'live_stream_row': $key = 'live_stream_' . $_POST['id']; Radio::update($_POST); $radio = new Radio($_POST['id']); $radio->format(); break; case 'channel_row': $key = 'channel_row_' . $_POST['id']; $channel = new Channel($_POST['id']); $channel->update($_POST); break; case 'broadcast_row': $key = 'broadcast_row_' . $_POST['id']; $broadcast = new Broadcast($_POST['id']); $broadcast->update($_POST); break; case 'tag_row': $tag = new Tag($_POST['id']); $tag->update($_POST['name']); break; default: $key = 'rfc3514'; echo xoutput_from_array(array($key => '0x1')); exit; }