* @copyright 2001 - 2011 Ampache.org * @license http://opensource.org/licenses/gpl-2.0 GPLv2 * @version PHP 5.2 * @link http://www.ampache.org/ * @since File available since Release 1.0 */ require_once '../lib/init.php'; if (!Access::check('interface','100')) { access_denied(); exit; } show_header(); // Switch on the incomming action switch ($_REQUEST['action']) { case 'edit_shout': $shout_id = $_POST['shout_id']; $update = shoutBox::update($_POST); show_confirmation(_('Shoutbox Post Updated'),'',Config::get('web_path').'/admin/shout.php'); break; case 'show_edit': $shout = new shoutBox($_REQUEST['shout_id']); $object = shoutBox::get_object($shout->object_type,$shout->object_id); $object->format(); $client = new User($shout->user); $client->format(); require_once Config::get('prefix') . '/templates/show_edit_shout.inc.php'; break; case 'delete': $shout_id = shoutBox::delete($_REQUEST['shout_id']); show_confirmation(_('Shoutbox Post Deleted'),'',Config::get('web_path').'/admin/shout.php'); break; default: $browse = new Browse(); $browse->set_type('shoutbox'); $browse->set_simple_browse(true); $shoutbox_ids = $browse->get_objects(); $browse->show_objects($shoutbox_ids); $browse->store(); break; } // end switch on action show_footer(); ?>