<%pre> #include #include "setup.h" #include "grab.h" using namespace vdrlive; <%args> int quality = 80; int width = 320; int height = 240; <%session scope="global"> bool logged_in(false); <%cpp> if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); reply.setContentType("image/jpg"); GrabImageInfo image = LiveGrabImageManager().GetImage(); if ( image.second > 0 ) reply.out().write( image.first.get(), image.second );