summaryrefslogtreecommitdiffstats
path: root/files/templates
diff options
context:
space:
mode:
Diffstat (limited to 'files/templates')
-rw-r--r--files/templates/admin.php15
-rw-r--r--files/templates/index.php74
-rw-r--r--files/templates/part.breadcrumb.php6
-rw-r--r--files/templates/part.list.php29
4 files changed, 0 insertions, 124 deletions
diff --git a/files/templates/admin.php b/files/templates/admin.php
deleted file mode 100644
index 9bcc40e9361..00000000000
--- a/files/templates/admin.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php OC_Util::addScript('files','admin'); ?>
-
-<form name="filesForm" action='#' method='post'>
- <fieldset class="personalblock">
- <legend><strong><?php echo $l->t('File handling');?></strong></legend>
- <?php if($_['htaccessWorking']):?>
- <label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label><input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/>(<?php echo $l->t('max. possible: '); echo $_['maxPossibleUploadSize'] ?>)<br/>
- <?php endif;?>
- <input type="checkbox" name="allowZipDownload" id="allowZipDownload" value="1" title="<?php echo $l->t( 'Needed for multi-file and folder downloads.' ); ?>"<?php if ($_['allowZipDownload']) echo ' checked="checked"'; ?> /> <label for="allowZipDownload"><?php echo $l->t( 'Enable ZIP-download' ); ?></label> <br/>
- <fieldset class="personalblock">
- <label for="maxZipInputSize"><?php echo $l->t( 'Maximum input size for ZIP files:' ); ?> </label><input name="maxZipInputSize" id="maxZipInputSize" value='<?php echo $_['maxZipInputSize'] ?>' title="<?php echo $l->t( '0 is unlimited' ); ?>"<?php if (!$_['allowZipDownload']) echo ' disabled="disabled"'; ?> /><br/>
- </fieldset>
- <input type="submit" name="submitFilesAdminSettings" id="submitFilesAdminSettings" value="Save"/>
- </fieldset>
-</form>
diff --git a/files/templates/index.php b/files/templates/index.php
deleted file mode 100644
index b21cf0aeb02..00000000000
--- a/files/templates/index.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}table td{position:static !important;}</style><![endif]-->
-<div id="controls">
- <?php echo($_['breadcrumb']); ?>
- <?php if (!isset($_['readonly']) || !$_['readonly']):?>
- <div class="actions <?php if (isset($_['files']) and ! $_['readonly'] and count($_['files'])==0):?>emptyfolder<?php endif; ?>">
- <div id='new' class='button'>
- <a><?php echo $l->t('New');?></a>
- <ul class="popup popupTop">
- <li style="background-image:url('<?php echo mimetype_icon('text/plain') ?>')" data-type='file'><p><?php echo $l->t('Text file');?></p></li>
- <li style="background-image:url('<?php echo mimetype_icon('dir') ?>')" data-type='folder'><p><?php echo $l->t('Folder');?></p></li>
- <li style="background-image:url('<?php echo image_path('core','actions/public.png') ?>')" data-type='web'><p><?php echo $l->t('From url');?></p></li>
- </ul>
- </div>
- <div class="file_upload_wrapper svg">
- <form data-upload-id='1' class="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1">
- <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
- <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
- <input type="hidden" name="dir" value="<?php echo htmlentities($_['dir']) ?>" id="dir">
- <button class="file_upload_filename">&nbsp;<img class='svg action' alt="Upload" src="<?php echo image_path("core", "actions/upload.svg"); ?>" /></button>
- <input class="file_upload_start" type="file" name='files[]'/>
- <a href="#" class="file_upload_button_wrapper" onclick="return false;" title="<?php echo $l->t('Upload'); echo ' max. '.$_['uploadMaxHumanFilesize'] ?>"></a>
- <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
- </form>
- </div>
- </div>
- <div id="file_action_panel"></div>
- <?php else:?>
- <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
- <?php endif;?>
-</div>
-<div id='notification'></div>
-
-<?php if (isset($_['files']) and ! $_['readonly'] and count($_['files'])==0):?>
- <div id="emptyfolder"><?php echo $l->t('Nothing in here. Upload something!')?></div>
-<?php endif; ?>
-
-<table>
- <thead>
- <tr>
- <th id='headerName'>
- <?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" id="select_all" /><?php } ?>
- <span class='name'><?php echo $l->t( 'Name' ); ?></span>
- <span class='selectedActions'>
- <a href="" class="share"><img class='svg' alt="Share" src="<?php echo image_path("core", "actions/share.svg"); ?>" /> <?php echo $l->t('Share')?></a>
- <?php if($_['allowZipDownload']) : ?>
- <a href="" class="download"><img class='svg' alt="Download" src="<?php echo image_path("core", "actions/download.svg"); ?>" /> <?php echo $l->t('Download')?></a>
- <?php endif; ?>
- </span>
- </th>
- <th id="headerSize"><?php echo $l->t( 'Size' ); ?></th>
- <th id="headerDate"><span id="modified"><?php echo $l->t( 'Modified' ); ?></span><span class="selectedActions"><a href="" class="delete"><?php echo $l->t('Delete all')?> <img class="svg" alt="<?php echo $l->t('Delete')?>" src="<?php echo image_path("core", "actions/delete.svg"); ?>" /></a></span></th>
- </tr>
- </thead>
- <tbody id="fileList" data-readonly="<?php echo $_['readonly'];?>">
- <?php echo($_['fileList']); ?>
- </tbody>
-</table>
-<div id="editor"></div>
-<div id="uploadsize-message" title="<?php echo $l->t('Upload too large')?>">
- <p>
- <?php echo $l->t('The files you are trying to upload exceed the maximum size for file uploads on this server.');?>
- </p>
-</div>
-<div id="scanning-message">
- <h3>
- <?php echo $l->t('Files are being scanned, please wait.');?> <span id='scan-count'></span>
- </h3>
- <p>
- <?php echo $l->t('Current scanning');?> <span id='scan-current'></span>
- </p>
-</div>
-
-<!-- config hints for javascript -->
-<input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php echo $_['allowZipDownload']; ?>" />
diff --git a/files/templates/part.breadcrumb.php b/files/templates/part.breadcrumb.php
deleted file mode 100644
index 16da6bb97b4..00000000000
--- a/files/templates/part.breadcrumb.php
+++ /dev/null
@@ -1,6 +0,0 @@
- <?php for($i=0; $i<count($_["breadcrumb"]); $i++):
- $crumb = $_["breadcrumb"][$i]; ?>
- <div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg" data-dir='<?php echo $crumb["dir"];?>' style='background-image:url("<?php echo image_path('core','breadcrumb.png');?>")'>
- <a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlentities($crumb["name"]); ?></a>
- </div>
- <?php endfor;?> \ No newline at end of file
diff --git a/files/templates/part.list.php b/files/templates/part.list.php
deleted file mode 100644
index 5a5941fc7ae..00000000000
--- a/files/templates/part.list.php
+++ /dev/null
@@ -1,29 +0,0 @@
- <?php foreach($_['files'] as $file):
- $write = ($file['writable']) ? 'true' : 'false';
- $simple_file_size = simple_file_size($file['size']);
- $simple_size_color = intval(200-$file['size']/(1024*1024)*2); // the bigger the file, the darker the shade of grey; megabytes*2
- if($simple_size_color<0) $simple_size_color = 0;
- $relative_modified_date = relative_modified_date($file['mtime']);
- $relative_date_color = round((time()-$file['mtime'])/60/60/24*14); // the older the file, the brighter the shade of grey; days*14
- if($relative_date_color>200) $relative_date_color = 200;
- $name = str_replace('+','%20',urlencode($file['name']));
- $name = str_replace('%2F','/', $name);
- $directory = str_replace('+','%20',urlencode($file['directory']));
- $directory = str_replace('%2F','/', $directory); ?>
- <tr data-file="<?php echo $name;?>" data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" data-mime="<?php echo $file['mimetype']?>" data-size='<?php echo $file['size'];?>' data-write='<?php echo $write;?>'>
- <td class="filename svg" style="background-image:url(<?php if($file['type'] == 'dir') echo mimetype_icon('dir'); else echo mimetype_icon($file['mimetype']); ?>)">
- <?php if(!isset($_['readonly']) || !$_['readonly']) { ?><input type="checkbox" /><?php } ?>
- <a class="name" href="<?php if($file['type'] == 'dir') echo $_['baseURL'].$directory.'/'.$name; else echo $_['downloadURL'].$directory.'/'.$name; ?>" title="">
- <span class="nametext">
- <?php if($file['type'] == 'dir'):?>
- <?php echo htmlspecialchars($file['name']);?>
- <?php else:?>
- <?php echo htmlspecialchars($file['basename']);?><span class='extension'><?php echo $file['extension'];?></span>
- <?php endif;?>
- </span>
- </a>
- </td>
- <td class="filesize" title="<?php echo human_file_size($file['size']); ?>" style="color:rgb(<?php echo $simple_size_color.','.$simple_size_color.','.$simple_size_color ?>)"><?php echo $simple_file_size; ?></td>
- <td class="date"><span class="modified" title="<?php echo $file['date']; ?>" style="color:rgb(<?php echo $relative_date_color.','.$relative_date_color.','.$relative_date_color ?>)"><?php echo $relative_modified_date; ?></span></td>
- </tr>
- <?php endforeach; ?>