| VNC resetter, not very secure; only use because you have/want to
|
| Change VNCPASSWORD and PASSWORD to your required VNC and web passwords
| Also change the port number if you want. HTTP request should be of the
| form http://host/cgi-bin2/VNC?PASSWORD (WebJames default install)
|
| Tested with RISC OS 4.03 only; written on 2002-1-25


Echo Content-Type: text/html
Echo
Echo |<html>|<head>|<title>VNC resetter|</title>|</head>|<body>|<h1>


If "<QUERY_STRING>" <> "PASSWORD" Then Echo Invalid Password Specified|</h1>|</body>|</html>
If "<QUERY_STRING>" <> "PASSWORD" Then Obey


X RMKill vncserver
RMEnsure vncserver 0.00 RMLoad <VNCServer$Dir>.vncserver
RMEnsure vncserver 0.00 Echo VNCServer failed to reload
RMEnsure vncserver 0.00 Obey
vncserv_start 5902 VNCPASSWORD
vncserv_mouse_kbd
vncserv_swap_adjust_menu 1

Echo VNC server reset
Echo |</h1>|</body>|</html>
