Files
neutrino/data/y-web/Y_Settings_Backup.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

73 lines
2.4 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.filename.value != "")
{
show_waitbox(true);
document.f.su.disabled=true;
window.setTimeout("document.f.submit()",1000);
document.f.su.disabled=false;
}
}
function do_backup()
{
show_waitbox(true);
obj_disable("btBackup", true);
window.setTimeout("do_backup2()",500);
}
function do_backup2()
{
var _url = loadSyncURL("/control/exec?Y_Tools&settings_backup_restore&backup");
var _down = document.getElementById("down");
_down.href = _url;
show_obj("down_box", true);
show_waitbox(false);
obj_disable("btBackup", false);
}
//]]>
</script>
</head>
<body>
{=var-set:wait_text=Settings=}{=include-block:Y_Blocks.txt;snip_wait=}
<div class="work_box">
<div class="work_box_head"><div class="work_box_head_h2">
{=var-set:help_url=Help-Settings-Backup_Restore=}{=var-set:menu={=L:set.menue.backup_restore=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
<div class="work_box_body">
<p><div style="border: 1px solid #cccccc; margin-top:20px; padding: 10px;">
<img src="/images/cross.png">
<span><font size="2" color="Red"><b>{=L:attention=}</b></font> {=L:set.settings.warning=}</span>
</div></p>
<table class="y_invisible_table" cellspacing="0" width="100%">
<tr><td class="y_form_header">{=L:set.settings.backup=}</td></tr>
<tr>
<td>
<input id="btBackup" type="button" value ="{=L:set.settings.backup=}" title="{=L:set.settings.backup_desc=}" onclick="do_backup()"/>
<div id="down_box" style="visibility: hidden;">
<br/><a id="down" href="" type="application/octet-stream"><u>Download</u></a>
</div>
</td>
</tr>
<tr><td class="y_form_header">{=L:set.settings.restore=}</td></tr>
<tr>
<td>
<form name="f" method="post" enctype="multipart/form-data" action="/control/exec?Y_Tools&amp;settings_backup_restore&amp;restore">
tar-File:&nbsp;<input type="file" name="filename" size="70"/>&nbsp;<br/>
<input type="button" name="su" value="{=L:set.settings.restore=}" title="{=L:set.settings.restore_desc=}" onclick="do_submit()"/>
<br/><br/>
</form>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
{=include-block:Y_Blocks.txt;management_check_bottom=}