summaryrefslogtreecommitdiffstats
path: root/apps/files/templates/index.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-01-15 14:36:18 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-01-15 14:36:18 +0100
commit807b885a0e83841b51b694afbb4b377e39215b0f (patch)
treedad2aeaddaf49d23dc82d0b47e17584db7ff5cd2 /apps/files/templates/index.php
parent072ef7f010ca9f48119bc2397a82fdd0aac76beb (diff)
downloadnextcloud-server-807b885a0e83841b51b694afbb4b377e39215b0f.tar.gz
nextcloud-server-807b885a0e83841b51b694afbb4b377e39215b0f.zip
reuse file upload as used within files app - remove public upload button
Diffstat (limited to 'apps/files/templates/index.php')
-rw-r--r--apps/files/templates/index.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php
index 00ec109621f..d7f479b504f 100644
--- a/apps/files/templates/index.php
+++ b/apps/files/templates/index.php
@@ -18,6 +18,10 @@
<input type="hidden" name="MAX_FILE_SIZE" id="max_upload"
value="<?php p($_['uploadMaxFilesize']) ?>">
<?php endif;?>
+ <?php if(isset($_['dirToken'])):?>
+ <input type="hidden" id="publicUploadRequestToken" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
+ <input type="hidden" id="dirToken" name="dirToken" value="<?php p($_['dirToken']) ?>" />
+ <?php endif;?>
<input type="hidden" class="max_human_file_size"
value="(max <?php p($_['uploadMaxHumanFilesize']); ?>)">
<input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir">
@@ -26,7 +30,7 @@
<a href="#" class="svg"></a>
</div>
<?php if ($_['trash']): ?>
- <input id="trash" type="button" value="<?php p($l->t('Deleted files'));?>" class="button" <?php $_['trashEmpty'] ? p('disabled') : '' ?>></input>
+ <input id="trash" type="button" value="<?php p($l->t('Deleted files'));?>" class="button" <?php $_['trashEmpty'] ? p('disabled') : '' ?>>
<?php endif; ?>
<div id="uploadprogresswrapper">
<div id="uploadprogressbar"></div>
@@ -44,7 +48,7 @@
<div id="emptycontent" <?php if (!$_['emptyContent']):?>class="hidden"<?php endif; ?>><?php p($l->t('Nothing in here. Upload something!'))?></div>
-<input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"></input>
+<input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>">
<table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>" data-preview-x="36" data-preview-y="36">
<thead>