diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2013-02-27 21:46:37 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2013-02-27 21:46:37 +0100 |
commit | 3ba8881bacedf4c1950c6198fca28577814cf807 (patch) | |
tree | 5d4fdea7fbf3ae031a1bdc096e4583a594f9405f /apps/files_trashbin/templates/part.list.php | |
parent | c9415e65299e8588eb4e7fb52838eebcc0cae16f (diff) | |
download | nextcloud-server-3ba8881bacedf4c1950c6198fca28577814cf807.tar.gz nextcloud-server-3ba8881bacedf4c1950c6198fca28577814cf807.zip |
[files_trashbin] From echo to p
Diffstat (limited to 'apps/files_trashbin/templates/part.list.php')
-rw-r--r-- | apps/files_trashbin/templates/part.list.php | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/apps/files_trashbin/templates/part.list.php b/apps/files_trashbin/templates/part.list.php index dea0a43cd4c..176ed6f03b3 100644 --- a/apps/files_trashbin/templates/part.list.php +++ b/apps/files_trashbin/templates/part.list.php @@ -1,4 +1,4 @@ -<input type="hidden" id="disableSharing" data-status="<?php echo $_['disableSharing']; ?>"> +<input type="hidden" id="disableSharing" data-status="<?php p($_['disableSharing']); ?>"> <?php foreach($_['files'] as $file): $relative_deleted_date = OCP\relative_modified_date($file['timestamp']); // the older the file, the brighter the shade of grey; days*14 @@ -8,48 +8,48 @@ $name = str_replace('%2F', '/', $name); $directory = str_replace('+', '%20', urlencode($file['directory'])); $directory = str_replace('%2F', '/', $directory); ?> - <tr data-filename="<?php echo $file['name'];?>" - data-type="<?php echo ($file['type'] == 'dir')?'dir':'file'?>" - data-mime="<?php echo $file['mimetype']?>" - data-permissions='<?php echo $file['permissions']; ?>' + <tr data-filename="<?php p($file['name']);?>" + data-type="<?php p(($file['type'] == 'dir')?'dir':'file')?>" + data-mime="<?php p($file['mimetype'])?>" + data-permissions='<?php p($file['permissions']); ?>' <?php if ( $_['dirlisting'] ): ?> - id="<?php echo $file['directory'].'/'.$file['name'];?>" - data-file="<?php echo $file['directory'].'/'.$file['name'];?>" + id="<?php p($file['directory'].'/'.$file['name']);?>" + data-file="<?php p($file['directory'].'/'.$file['name']);?>" data-timestamp='' data-dirlisting=1 <?php else: ?> - id="<?php echo $file['name'].'.d'.$file['timestamp'];?>" - data-file="<?php echo $file['name'].'.d'.$file['timestamp'];?>" - data-timestamp='<?php echo $file['timestamp'];?>' + id="<?php p($file['name'].'.d'.$file['timestamp']);?>" + data-file="<?php p($file['name'].'.d'.$file['timestamp']);?>" + data-timestamp='<?php p($file['timestamp']);?>' data-dirlisting=0 <?php endif; ?>> <td class="filename svg" <?php if($file['type'] == 'dir'): ?> - style="background-image:url(<?php echo OCP\mimetype_icon('dir'); ?>)" + style="background-image:url(<?php print_unescaped(OCP\mimetype_icon('dir')); ?>)" <?php else: ?> - style="background-image:url(<?php echo OCP\mimetype_icon($file['mimetype']); ?>)" + style="background-image:url(<?php print_unescaped(OCP\mimetype_icon($file['mimetype'])); ?>)" <?php endif; ?> > <?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?> <?php if($file['type'] == 'dir'): ?> <?php if( $_['dirlisting'] ): ?> - <a class="name" href="<?php echo $_['baseURL'].'/'.$name; ?>" title=""> + <a class="name" href="<?php p($_['baseURL'].'/'.$name); ?>" title=""> <?php else: ?> - <a class="name" href="<?php echo $_['baseURL'].'/'.$name.'.d'.$file['timestamp']; ?>" title=""> + <a class="name" href="<?php p($_['baseURL'].'/'.$name.'.d'.$file['timestamp']); ?>" title=""> <?php endif; ?> <?php else: ?> <?php if( $_['dirlisting'] ): ?> - <a class="name" href="<?php echo $_['downloadURL'].'/'.$name; ?>" title=""> + <a class="name" href="<?php p($_['downloadURL'].'/'.$name); ?>" title=""> <?php else: ?> - <a class="name" href="<?php echo $_['downloadURL'].'/'.$name.'.d'.$file['timestamp'];?>" title=""> + <a class="name" href="<?php p($_['downloadURL'].'/'.$name.'.d'.$file['timestamp']);?>" title=""> <?php endif; ?> <?php endif; ?> <span class="nametext"> <?php if($file['type'] == 'dir'):?> - <?php echo htmlspecialchars($file['name']);?> + <?php print_unescaped(htmlspecialchars($file['name']));?> <?php else:?> - <?php echo htmlspecialchars($file['basename']);?><span - class='extension'><?php echo $file['extension'];?></span> + <?php print_unescaped(htmlspecialchars($file['basename']));?><span + class='extension'><?php p($file['extension']);?></span> <?php endif;?> </span> <?php if($file['type'] == 'dir'):?> @@ -60,11 +60,11 @@ </td> <td class="date"> <span class="modified" - title="<?php echo $file['date']; ?>" - style="color:rgb(<?php echo $relative_date_color.',' + title="<?php p($file['date']); ?>" + style="color:rgb(<?php p($relative_date_color.',' .$relative_date_color.',' - .$relative_date_color ?>)"> - <?php echo $relative_deleted_date; ?> + .$relative_date_color) ?>)"> + <?php p($relative_deleted_date); ?> </span> </td> </tr> |