' . t('ONE_TIME_DL') . ': | ';
- echo ' | ';
- }
- ?>
+ if ($cfg['one_time_download']) {
+ echo '' . t('ONE_TIME_DL') . ': | ';
+ echo ' |
';
+ }
+?>
|
|
@@ -192,80 +235,69 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
|
|
= 1024) {
- echo '' . t('FILE_LIM');
- echo " " . number_format($cfg['maximal_upload_size'] / 1024, 2) . " GB.
";
- } elseif ($cfg['maximal_upload_size'] > 0) {
- echo '' . t('FILE_LIM');
- echo " " . $cfg['maximal_upload_size'] . " MB.
";
- } else {
- echo '';
- }
- ?>
+if ($cfg['maximal_upload_size'] >= 1024) {
+ echo '' . t('FILE_LIM');
+ echo " " . number_format($cfg['maximal_upload_size'] / 1024, 2) . " GB.
";
+} elseif ($cfg['maximal_upload_size'] > 0) {
+ echo '' . t('FILE_LIM');
+ echo " " . $cfg['maximal_upload_size'] . " MB.
";
+} else {
+ echo '';
+}
+?>
-
-
-
-
-
@@ -286,7 +317,7 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
+?>
@@ -299,8 +330,11 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
document.getElementById('send').style.display = 'none';
if (!check_html5_file_api ())
document.getElementById('max_file_size').innerHTML = '';
+ $max_size = jirafeau_get_max_upload_size();
+if ($max_size > 0) {
+ echo t('NO_BROWSER_SUPPORT') . $max_size;
+}
+?>';
addCopyListener('upload_link_button', 'upload_link');
addCopyListener('preview_link_button', 'preview_link');