diff --git a/htaccess-denyall b/htaccess-denyall new file mode 100644 index 00000000..dbc7e668 --- /dev/null +++ b/htaccess-denyall @@ -0,0 +1,8 @@ + + Order deny,allow + Deny from all + + + + Require all denied + \ No newline at end of file diff --git a/js/mlinvoice.js b/js/mlinvoice.js index 66ba45ba..7b267426 100644 --- a/js/mlinvoice.js +++ b/js/mlinvoice.js @@ -364,7 +364,14 @@ var MLInvoice = (function CreateMLInvoice() { '{date}': formatDate(data.date) } ); - var $span = $('').attr('title', title).text(translate('UpdateAvailable') + ' '); + var text = translate( + 'UpdateAvailable', + { + '{version}': data.version, + '{date}': formatDate(data.date) + } + ); + var $span = $('').attr('title', title).text(text + ' '); $('
').appendTo($span); $('').attr('href', data.url).attr('target', '_blank').text(translate('UpdateInformation')).appendTo($span); $('
').appendTo($span); diff --git a/js/mlinvoice.min.js b/js/mlinvoice.min.js index 8a12b38f..536adeec 100644 --- a/js/mlinvoice.min.js +++ b/js/mlinvoice.min.js @@ -1,3 +1,3 @@ -/*! mlinvoice 2023-10-29 */ -var MLInvoice=function(){var a=[],n=!1,o={},t="none",i=[],r=!0,c=2,d={},s="DD.MM.YYYY";function l(e,t){o[e]=t}function p(e,t,a){var n=o[e]||e;return n===e&&void 0!==a&&(n=a),"object"==typeof t&&$.each(t,function(e,t){n=n.replace(new RegExp(e,"g"),t)}),n}function u(e,t){var t=void 0===t?c:t,a=p("DecimalSeparator"),n=p("ThousandSeparator",[],""),e=parseFloat(e).toFixed(t).replace(".",a);if(n){for(var o=e.split(a),i=new RegExp("(\\d+)(\\d{3})"+a+"?");i.test(o[0]);)o[0]=o[0].replace(i,"$1"+n+"$2");e=o[0],1'),a=(void 0!==a?n.addClass(a):n.addClass("text-white bg-success"),$('
').appendTo(n)),e=($('
').text(e).appendTo(a),$(' + +
+EOT; + } + /** * Redirect to next stage * * @param string $message Message + * @param array $params Extra params + * @param string $stage Next stage * * @return void */ - protected function nextStage($message) + protected function nextStage($message, array $params, string $stage) { - $target = 'index.php'; - if ($this->stage !== 4) { - $target .= '?func=system&operation=update&stage=' . ($this->stage + 1); + $target = "index.php?func=system&operation=update&stage=$stage"; + if ($params) { + $target .= '&' . http_build_query($params); } $this->message($message); echo <<getBackupDir() . DIRECTORY_SEPARATOR . 'backup.zip'; + } }