]> git.nbdom.net Git - nb.git/commitdiff
lib/php/mime.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jan 2018 05:23:56 +0000 (05:23 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jan 2018 05:23:56 +0000 (05:23 +0000)
etc/vim/source/vars.vim
lib/php/mime.php

index 41dee9cd48d18c620da8bf58812b37efe15cdc5a..eb55ddd8a90c572b97bdd4163f458ec41a128ec5 100644 (file)
@@ -3,6 +3,7 @@
 "
 " Command to check files per file types
 "
+" rows.fields=id,cmd_check
 ">SHELL_REPLACE echo "let mimeCheck = {"; dbq db=$NB_DB t=mime -cut 1,3 | sort -k 1 | sed -E -e "s/'/''/g" -e "s/^(.*?)\t(.*)$/  \\\,'\1' : '\2'/" -e "0,/,/s/,//" ; echo "\}"
 let mimeCheck = {
   \'bash' : 'bash -c'
index 56c066d8eca0d5b80e8db14e4448f5c96deb2987..10ee5f1c3884bb8dc75ea4eb57b546a970e4b77f 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 class Mime {
        const Types = [
-#>_SHELL_REPLACE dbq db=$NB_DB t=mime_type -cut 2,3 | perl -pe "s/'/\\\\'/; s/^(.*?)\t(.*?)$/    '\$1' => '\$2',/"
 #>SHELL_REPLACE dbq db=$NB_DB t="SELECT type,ext FROM mime_type" format=php_hash align=0 | sed "s/^/$(printf '\t\t')/"
                "application/applixware"                                                    => "aw",
                "application/atomcat+xml"                                                   => "atomcat",