Files
neutrino/data/y-web/Y_Tools_Cmd.yhtm
Thilo Graf 4518361d3d Revert "yWeb: rework for basic functionality"
Your reaction to this commit were remarkable. You demanded with an
imperious kind to revert this commit. You spoke about any rules only,
and I didn't hear evidencing explanations from you.
Admittedly, my commit wasn't very pretty and not the best style because
everything was squashed in a single commit with some customizations,
but which is ultimately just a formality... that's about it, and was quite
compliant with license conditions. In additional, your name was noted on
the commit. I'm just reminding you, until a few years ago, you didn't care
about licenses. The general copyright mainly lies with yjogol and a lot of
changes of the origin yweb code has been coming in by several committers
since yweb exists. I won't judge, whether any unique selling points play a
role, but such restrictions are exactly what the license should prevent.
Especially as, many creeped in brandings in some code parts (not only yweb)
do suggest that. Besides neutralizing such things, mainly it was the
purpose to get more compatibility, even though some functionalities
were removed or switched off.

Related to yweb I have decided to take back this commit for the sake of
peace, and I hope you are happy with it. However, I still reserve to
continue using and adopting yweb.
2023-01-05 16:05:18 +01:00

90 lines
2.8 KiB
Plaintext

{=var-set:cancache=yPConf=}
{=include-block:Y_Blocks.txt;management_check_top=}
{=include-block:Y_Blocks.txt;head=}
<script type="text/javascript" src="/Y_Baselib.js"></script>
<script type="text/javascript">
//<![CDATA[
function do_submit()
{
if(document.f.cmd.value != "")
{
var app="false";
if(document.f.appendx.checked == true)
app="true";
_url="/control/exec?Y_Tools&cmd&"+document.f.pwd.value +"&"+app+"&'"+ document.f.cmd.value +"'";
out.location.href = _url;
document.f.cmd.value="";
}
}
function set_pwd(_pwd)
{
document.f.pwd.value = _pwd;
}
function do_clear()
{
document.co.cmds.value = "";
}
/* Cursor to end . works only with IE */
function setCaretToEnd(control)
{
if (control.createTextRange) {
var range = control.createTextRange();
range.collapse(false);
range.select();
}
else if (control.setSelectionRange) {
control.focus();
var l = control.value.length;
control.setSelectionRange(l, l);
}
}
function doUpload()
{
upload = window.open('Y_Tools_Cmd_Upload.yhtm?path='+document.f.pwd.value,'upload',"width=500,height=400,scrollbars=yes");
}
//]]>
</script>
</head>
<body>
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Tools-Command_Shell=}{=var-set:menu={=L:tools.command_shell=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<form name="co" action="">
<textarea name="cmds" cols="80" rows="18" title="shell output window"></textarea>
</form>
<form name="f" target="tmp" onsubmit="do_submit();return false;" action="">
<table>
<tr>
<td><input type="button" name="clear" value="{=L:clear=}" onclick="do_clear()"/></td>
<td><input type="checkbox" name="appendx" value="1" title="append output (only IE)"/>&nbsp;{=L:tools.cmd_shell.output_desc=}
<!--<input type="button" value="Upload" title="upload a file to current directory" onClick="doUpload()">-->
</td>
</tr><tr>
<td>{=L:tools.path=}:&nbsp;</td>
<td><input name="pwd" type="text" size="60" maxlength="255" value="/"/></td>
</tr><tr>
<td>{=L:tools.command=}:</td>
<td><input name="cmd" type="text" size="60" maxlength="255" title="{=L:tools.cmd.enter_command=}"/>
<input type="submit" name="submit" value="{=L:submit=}" title="{=L:tools.cmd.execute_command=}"/></td>
</tr>
</table>
</form>
</div>
</div>
<iframe height="0" width="0" scrolling="no" align="left" frameborder="0" name="out" id="out">Your Browser does not support IFrames.</iframe>
<iframe height="0" width="0" scrolling="no" align="left" frameborder="0" name="tmp" id="tmp">Your Browser does not support IFrames.</iframe>
<script language="JavaScript" type="text/javascript" >
//<![CDATA[
if(isIE)
document.f.appendx.checked = true;
window.document.f.cmd.focus();
//]]>
</script>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}