* @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'; show_header(); switch ($_REQUEST['action']) { case 'get_advanced': $object_ids = Random::advanced($_POST); // We need to add them to the active playlist foreach ($object_ids as $object_id) { $GLOBALS['user']->playlist->add_object($object_id,'song'); } case 'advanced': default: require_once Config::get('prefix') . '/templates/show_random.inc.php'; /* require_once Config::get('prefix') . '/templates/show_random_rules.inc.php';*/ break; } // end switch show_footer(); ?>