/** * videos * This returns video objects! * @param array $input */ public static function videos($input) { self::$browse->reset_filters(); self::$browse->set_type('video'); self::$browse->set_sort('title', 'ASC'); $method = $input['exact'] ? 'exact_match' : 'alpha_match'; Api::set_filter($method, $input['filter']); $video_ids = self::$browse->get_objects(); XML_Data::set_offset($input['offset']); XML_Data::set_limit($input['limit']); echo XML_Data::videos($video_ids); }
$history = $working_user->get_ip_history(0, 1); } else { $history = $working_user->get_ip_history(); } require AmpConfig::get('prefix') . '/templates/show_ip_history.inc.php'; break; case 'show_add_user': if (AmpConfig::get('demo_mode')) { break; } require_once AmpConfig::get('prefix') . '/templates/show_add_user.inc.php'; break; case 'show_preferences': $client = new User($_REQUEST['user_id']); $preferences = Preference::get_all($client->id); require_once AmpConfig::get('prefix') . '/templates/show_user_preferences.inc.php'; break; default: $browse = new Browse(); $browse->reset_filters(); $browse->set_type('user'); $browse->set_simple_browse(true); $browse->set_sort('name', 'ASC'); $user_ids = $browse->get_objects(); $browse->show_objects($user_ids); $browse->store(); break; } // end switch on action /* Show the footer */ UI::show_footer();