<%pre>

#include <setup.h>

#include <vdr/remote.h>

using namespace vdrlive;

</%pre>
<%args>
	int keycode = kNone;
</%args>
<%session scope="global">
bool logged_in(false);
</%session>
<%cpp>
	if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html");
	reply.setContentType("application/xml");
</%cpp>
<?xml version="1.0"?>
<service>
<request name="keypress">
<param name="keycode"><$ keycode $></param>
</request>
<response><$ cRemote::Put( (eKeys)keycode ) ? "1" : "0" $></response>
</service>
