Files
webgui/plugins/dynamix/FlashInfo.page
T
2017-07-14 01:51:39 +02:00

69 lines
2.0 KiB
Plaintext

Menu="Flash"
Title="Flash Device Settings"
---
<?PHP
/* Copyright 2005-2016, Lime Technology
* Copyright 2012-2016, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
* as published by the Free Software Foundation.
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*/
?>
<style>ul,li{margin:0;padding-top:0;padding-bottom:0;}</style>
<script>
function cleanUp(zip) {
if (document.hasFocus()) {
$('input[value="Creating USB backup..."]').val('USB backup').prop('disabled',false);
$('#pleaseWait').hide('slow');
$.post('/webGui/include/Download.php',{cmd:'unlink',file:zip});
} else {
setTimeout(function(){cleanUp(zip);},2000);
}
}
function backup() {
$('input[value="USB backup"]').val('Creating USB backup...').prop('disabled',true);
$('#pleaseWait').show('slow');
$.post('/webGui/include/Download.php',{cmd:'backup'},function(zip) {
if (zip) {
location = '/'+zip;
setTimeout(function(){cleanUp(zip);},4000);
} else {
$('input[value="Creating USB backup..."]').val('USB backup');
$('#pleaseWait').hide('slow');
swal('Creation error','Insufficient free disk space available','error');
}
});
}
</script>
Flash Vendor:
: <?=$var['flashVendor'];?>
Flash Product:
: <?=$var['flashProduct'];?>&nbsp;
Flash GUID:
: <?=$var['flashGUID'];?>&nbsp;
<?if (strstr($var['regTy'], "blacklisted")):?>
&nbsp;
: **Blacklisted** - <a href="http://lime-technology.com/contact" target="_blank">Contact Support</a>
<?else:?>
&nbsp;
: [Registration Key Manager](/Tools/Registration)
<?endif;?>
&nbsp;
: <input type="button" value="USB backup" onclick="backup()"><input type="button" value="Done" onclick="done()">
<br><div id="pleaseWait" style="display:none;font-weight:bold;color:red;text-align:center">Please wait... creating USB backup zip file (this may take several minutes)</div>