#!/usr/bin/haserl -u -U /var/tmp Content-Type: text/html; charset=ISO-8859-1 <html> <head> <title>Rudi(mentär)-Shell</title> <script type=text/javascript> hist = Array() function setShellOutput(txt) { var parent = document.getElementById("shell_output") parent.replaceChild(document.createTextNode(txt), parent.firstChild) hist.push(new Array(document.getElementById("script_code").value, txt)) var opt = new Option("#" + (hist.length - 1)); document.getElementById("history")[hist.length - 1] = opt; document.getElementById("history").selectedIndex = 0 } function historySelected(index) { document.getElementById("script_code").value = hist[hist.length - 1 - index][0] var parent = document.getElementById("shell_output") parent.replaceChild(document.createTextNode(hist[hist.length - 1 - index][1]), parent.firstChild) } function cleanHistory() { hist=Array() var list = document.getElementById("history") while (list.length > 0) list.remove(0) } </script> </head> <body> <!--h1>Rudi(mentär)-Shell</h1--> <form action="/cgi-bin/rudi_shellcmd.cgi" target="shellcmd" method=POST enctype="multipart/form-data"> <textarea id="script_code" name="script" rows="10" cols="80"></textarea><p> <input type=submit value="Skript ausführen"> Historie <select id="history" onChange="historySelected(this.selectedIndex)"></select> <input type=button value="Hist. löschen" onClick="cleanHistory()"> <input type="checkbox" name="display_mode" value="binary">Download (<input type="checkbox" name="tar" value="true">.tar <input type="checkbox" name="gz" value="true">.gz ) </form> <form action="/cgi-bin/rudi_upload.cgi" target="shellcmd" method=POST enctype="multipart/form-data"> <table> <tr><td>Quelldatei</td><td><input type=file name="source" size=50></td></tr> <tr><td>Zieldatei</td><td><input name="target" value="/var/tmp/rudi_upload" size=50> <input type=submit value="Hochladen"></td></tr> </table> </form> <iframe name="shellcmd" style="width: 0; height: 0; border: 0"></iframe> <pre id="shell_output">---</pre> </body> </html>