<%pre> #include #include #if VDRVERSNUM < 20300 #include // ReadLock #endif using namespace vdrlive; <%args> name = "channel"; selected; onchange; bool channelid = false; <%session scope="global"> bool logged_in(false); <{ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); }> <%cpp> #if VDRVERSNUM >= 20301 LOCK_CHANNELS_READ; #else ReadLock channelsLock( Channels ); if ( !channelsLock ) throw HtmlError( tr("Couldn't aquire access to channels, please try again later.") ); #endif