echo '&k=' . urlencode($crypt_key);
?>';
document.getElementById('submit_download').submit ();"/><?php
- if ($cfg['download_page'] && $cfg['preview'] && jirafeau_is_viewable($link['mime_type']))
+ if ($cfg['preview'] && jirafeau_is_viewable($link['mime_type']))
{
?><input type="submit" id = "submit_preview" value="<?php echo t('Preview'); ?>"
onclick="document.getElementById('submit_post').action='
}
}
-if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_preview)
+if (!$password_challenged && !$do_download && !$do_preview)
{
require (JIRAFEAU_ROOT.'lib/template/header.php');
echo '<div>' .
?>';
document.getElementById('submit_post').submit ();"/><?php
- if ($cfg['download_page'] && $cfg['preview'] && jirafeau_is_viewable($link['mime_type']))
+ if ($cfg['preview'] && jirafeau_is_viewable($link['mime_type']))
{
?><input type="submit" id = "submit_preview" value="<?php echo t('Preview'); ?>"
onclick="document.getElementById('submit_post').action='
<p><?php echo t('File uploaded !') ?></p>
<br />
- <?php if ($cfg['download_page'] == true) { ?>
<div id="upload_finished_download_page">
<?php echo t('Download page') ?>
<p><a id="upload_link" href=""></a></p>
<br />
</div>
- <?php } ?>
<div id="upload_password_page">
<p><?php echo t('Download page') ?>:</p>
$cfg['style'] = 'courgette';
/* Propose a preview link if file type is previewable is set to true. */
$cfg['preview'] = true;
-/* Download page: propose a link to a download page is set to true. */
-$cfg['download_page'] = true;
/* Encryption feature. disable it by default.
* By enabling it, file-level deduplication won't work.
*/