Files
webgui/plugins/dynamix/TerminalButton.page
bergware b18cef0219 Replace openWindow() for openTerminal()
Use ttyd for logging windows
2021-11-11 02:44:35 +01:00

28 lines
871 B
Plaintext

Menu="Buttons:3"
Title="Terminal"
Icon="icon-u-terminal"
Href="/webterminal/"
Code="e93f"
---
<?PHP
/* Copyright 2005-2021, Lime Technology
* Copyright 2012-2021, 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.
*/
?>
<script>
function TerminalButton() {
if (/MSIE|Edge/.test(navigator.userAgent)) {
swal({title:"_(Unsupported Feature)_",text:"_(Sorry, this feature is not supported by MSIE/Edge)_.<br>_(Please try a different browser)_",html:true,type:'error',confirmButtonText:"_(Ok)_"});
return;
}
openTerminal('ttyd','ttyd','',600,900);
}
</script>