Dotclear

Changeset 599


Ignore:
Timestamp:
12/16/08 18:48:03 (14 years ago)
Author:
Moe
google:author:
appears
Message:

DL Manager 1.0.1 :

  • fixed bug with text files greater than 1 Mb
Location:
plugins/dlManager
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/dlManager/_define.php

    r563 r599  
    2828     /* Description*/                "Download manager with a public page and a widget", 
    2929     /* Author */                    "Moe (http://gniark.net/), Osku and Tomtom (http://blog.zenstyle.fr)", 
    30      /* Version */                   '1.0', 
     30     /* Version */                   '1.0.1', 
    3131     /* Permissions */               'admin' 
    3232); 
  • plugins/dlManager/_public.php

    r560 r599  
    313313                    http::cache(array_merge(array($file->file),get_included_files())); 
    314314                    header('Content-type: '.$file->type); 
    315                     header('Content-Length: '.filesize($file->file)); 
     315                    header('Content-Length: '.$file->size); 
    316316                    header('Content-Disposition: attachment; filename="'.$file->basename.'"'); 
    317317                    readfile($file->file); 
     
    10491049     public static function itemFileContent($attr) 
    10501050     {     
    1051           return('<?php if (is_readable($_ctx->items->file)) : '. 
     1051          return('<?php if ((is_readable($_ctx->items->file)) '. 
     1052          '&& ($_ctx->items->size < 1000000)) : '. 
    10521053          'echo html::escapeHTML(file_get_contents($_ctx->items->file));'. 
    10531054          'endif; ?>'); 
  • plugins/dlManager/default-templates/media.html

    r560 r599  
    8989          </p> 
    9090           
    91           <!--#<h3>{{tpl:lang Directories}}</h3> 
     91          <!-- #<h3>{{tpl:lang Directories}}</h3> 
    9292           
    9393          <tpl:DLMIfNoItem type="dirs"> 
     
    107107          </tpl:DLMItems> 
    108108 
    109           <!--#<h3>{{tpl:lang Files}}</h3> 
     109          <!-- #<h3>{{tpl:lang Files}}</h3> 
    110110           
    111111          <tpl:DLMIfSortIsEnabled> 
  • plugins/dlManager/index.php

    r558 r599  
    185185                    __('Download manager'),'<strong>media_exclusion</strong>','<strong>about:config</strong>'); 
    186186                    echo ' '; 
    187                     printf(__('For example, to exclude %1$s and %2$s files : <code>%3$s</code>'), 
    188                     'PNG','JPG','/\.(png|jpg)/i'); ?> 
     187                    printf(__('For example, to exclude %1$s and %2$s files : %3$s'), 
     188                    'PNG','JPG','<code>/\.(png|jpg)/i</code>'); ?> 
    189189               </p> 
    190190               <p> 
  • plugins/dlManager/locales/fr/main.po

    r564 r599  
    33"Project-Id-Version: DL Manager\n" 
    44"Report-Msgid-Bugs-To: \n" 
    5 "POT-Creation-Date: 2008-11-11 12:27+0100\n" 
    6 "PO-Revision-Date: 2008-11-18 14:53+0100\n" 
     5"POT-Creation-Date: 2008-11-18 16:14+0100\n" 
     6"PO-Revision-Date: 2008-11-18 16:14+0100\n" 
    77"Last-Translator: Moe <poedit@gniark.net>\n" 
    88"Language-Team: Moe <poedit@gniark.net>\n" 
     
    3434msgstr "suivante" 
    3535 
    36 #: _public.php:1197 
    37 #: public_l10n.php:21 
    38 msgid "Preview:" 
    39 msgstr "" 
    40  
    41 #: _public.php:1199 
    42 #: public_l10n.php:22 
    43 msgid "Preview" 
    44 msgstr "" 
    45  
    4636#: lib.dlManager.php:90 
    4737msgid "By names, ascendant" 
     
    6656msgstr "Gestionnaire de téléchargements" 
    6757 
    68 #: _admin.php:50 
    69 #: _admin.php:54 
    70 #: _admin.php:80 
    71 #: _admin.php:81 
     58#: public_l10n.php:2 
     59msgid "Archives" 
     60msgstr "" 
     61 
     62#: public_l10n.php:3 
     63msgid "Basename" 
     64msgstr "Nom du fichier" 
     65 
     66#: public_l10n.php:4 
     67#: _widget.php:61 
     68msgid "Directories" 
     69msgstr "Répertoires" 
     70 
    7271#: public_l10n.php:5 
    7372#: index.php:90 
     
    8281#: index.php:191 
    8382#: index.php:197 
     83#: _widget.php:45 
     84#: _widget.php:49 
     85#: _widget.php:75 
     86#: _widget.php:76 
    8487msgid "Download manager" 
    8588msgstr "Gestionnaire de téléchargements" 
    86  
    87 #: _admin.php:53 
    88 msgid "Title:" 
    89 msgstr "Titre :" 
    90  
    91 #: _admin.php:53 
    92 #: _admin.php:66 
    93 #: _admin.php:72 
    94 #: _admin.php:81 
    95 msgid "optional" 
    96 msgstr "facultatif" 
    97  
    98 #: _admin.php:56 
    99 #: public_l10n.php:24 
    100 #: index.php:158 
    101 msgid "Sort files:" 
    102 msgstr "Trier les fichiers&nbsp;:" 
    103  
    104 #: _admin.php:59 
    105 msgid "root directory:" 
    106 msgstr "répertoire de base :" 
    107  
    108 #: _admin.php:62 
    109 msgid "Display subdirectories" 
    110 msgstr "Afficher les sous-répertoires" 
    111  
    112 #: _admin.php:65 
    113 msgid "Subdirectories title:" 
    114 msgstr "Titre des sous-répertoires&nbsp;:" 
    115  
    116 #: _admin.php:66 
    117 #: public_l10n.php:4 
    118 msgid "Directories" 
    119 msgstr "Répertoires" 
    120  
    121 #: _admin.php:68 
    122 msgid "Display files" 
    123 msgstr "Afficher les fichiers" 
    124  
    125 #: _admin.php:71 
    126 msgid "Files title:" 
    127 msgstr "Titre des fichiers&nbsp;:" 
    128  
    129 #: _admin.php:72 
    130 #: public_l10n.php:11 
    131 msgid "Files" 
    132 msgstr "Fichiers" 
    133  
    134 #: _admin.php:74 
    135 msgid "Block display:" 
    136 msgstr "Affichage du bloc&nbsp;:" 
    137  
    138 #: _admin.php:76 
    139 msgid "Item display:" 
    140 msgstr "Affichage d'un élément&nbsp;:" 
    141  
    142 #: _admin.php:80 
    143 #, php-format 
    144 msgid "Add a link to %s in the widget:" 
    145 msgstr "Ajouter un lien vers %s dans le widget&nbsp;:" 
    146  
    147 #: _admin.php:83 
    148 msgid "Home page only" 
    149 msgstr "" 
    150  
    151 #: public_l10n.php:2 
    152 msgid "Archives" 
    153 msgstr "" 
    154  
    155 #: public_l10n.php:3 
    156 msgid "Basename" 
    157 msgstr "Nom du fichier" 
    15889 
    15990#: public_l10n.php:6 
     
    177108msgstr "Fichier" 
    178109 
     110#: public_l10n.php:11 
     111#: _widget.php:67 
     112msgid "Files" 
     113msgstr "Fichiers" 
     114 
    179115#: public_l10n.php:12 
    180116msgid "Get back to the directory" 
     
    209145msgstr "Page(s) :" 
    210146 
     147#: public_l10n.php:21 
     148#: _widget.php:184 
     149msgid "Preview:" 
     150msgstr "" 
     151 
     152#: public_l10n.php:22 
     153#: _widget.php:186 
     154msgid "Preview" 
     155msgstr "" 
     156 
    211157#: public_l10n.php:23 
    212158msgid "Size" 
    213159msgstr "Taille" 
    214160 
     161#: public_l10n.php:24 
     162#: index.php:158 
     163#: _widget.php:51 
     164msgid "Sort files:" 
     165msgstr "Trier les fichiers&nbsp;:" 
     166 
    215167#: public_l10n.php:25 
    216168msgid "Type" 
     
    307259#: index.php:187 
    308260#, php-format 
    309 msgid "For example, to exclude %1$s and %2$s files : <code>%3$s</code>" 
    310 msgstr "Par exemple, pour exclure les fichiers %1$s et %2$s : <code>%3$s</code>" 
     261msgid "For example, to exclude %1$s and %2$s files : %3$s" 
     262msgstr "Par exemple, pour exclure les fichiers %1$s et %2$s : %3$s" 
    311263 
    312264#: index.php:191 
     
    324276msgstr "Enregistrer la configuration" 
    325277 
     278#: _widget.php:48 
     279msgid "Title:" 
     280msgstr "Titre :" 
     281 
     282#: _widget.php:48 
     283#: _widget.php:61 
     284#: _widget.php:67 
     285#: _widget.php:76 
     286msgid "optional" 
     287msgstr "facultatif" 
     288 
     289#: _widget.php:54 
     290msgid "root directory:" 
     291msgstr "répertoire de base :" 
     292 
     293#: _widget.php:57 
     294msgid "Display subdirectories" 
     295msgstr "Afficher les sous-répertoires" 
     296 
     297#: _widget.php:60 
     298msgid "Subdirectories title:" 
     299msgstr "Titre des sous-répertoires&nbsp;:" 
     300 
     301#: _widget.php:63 
     302msgid "Display files" 
     303msgstr "Afficher les fichiers" 
     304 
     305#: _widget.php:66 
     306msgid "Files title:" 
     307msgstr "Titre des fichiers&nbsp;:" 
     308 
     309#: _widget.php:69 
     310msgid "Block display:" 
     311msgstr "Affichage du bloc&nbsp;:" 
     312 
     313#: _widget.php:71 
     314msgid "Item display:" 
     315msgstr "Affichage d'un élément&nbsp;:" 
     316 
     317#: _widget.php:75 
     318#, php-format 
     319msgid "Add a link to %s in the widget:" 
     320msgstr "Ajouter un lien vers %s dans le widget&nbsp;:" 
     321 
     322#: _widget.php:78 
     323msgid "Home page only" 
     324msgstr "" 
     325 
Note: See TracChangeset for help on using the changeset viewer.

Sites map