";
+ }
+ return $result;
+}
+
+# get_paste_buffer_file()
+# Returns the location of the file for temporary copy/paste state
+sub get_paste_buffer_file
+{
+ if (&get_product_name() eq 'usermin') {
+ return $user_module_config_directory."/.buffer";
+ }
+ else {
+ my $tmpdir = "$remote_user_info[7]/.filemin";
+ &make_dir($tmpdir, 0700) if (!-d $tmpdir);
+ return $tmpdir."/.buffer";
+ }
+}
+
+1;
+
diff --git a/filemin/http_download.cgi b/filemin/http_download.cgi
new file mode 100644
index 000000000..d5c07f7a9
--- /dev/null
+++ b/filemin/http_download.cgi
@@ -0,0 +1,47 @@
+#!/usr/bin/perl
+
+require './filemin-lib.pl';
+use lib './lib';
+
+&ReadParse();
+get_paths();
+
+if(!$in{'link'}) {
+ &redirect("index.cgi?path=$path");
+}
+
+my $mode;
+my @errors;
+
+my ($host, $port, $page, $ssl) = &parse_http_url($in{'link'});
+if (!$host) {
+ # Not an HTTP or FTP URL
+ push @errors, $text{'error_invalid_uri'};
+} else {
+ # Looks like a valid URL
+ my $file = $page;
+ $file =~ s/^.*\///;
+ $file ||= "index.html";
+
+ if(-e "$cwd/$file") {
+ push @errors, "$file $text{'file_already_exists'} $path";
+ } else {
+ &ui_print_header(undef, "$text{'http_downloading'} $file", "");
+ if ($ssl == 0 || $ssl == 1) {
+ # HTTP or HTTPS download
+ &http_download($host, $port, $page, "$cwd/$file", undef,
+ \&progress_callback, $ssl,
+ $in{'username'}, $in{'password'});
+ } else {
+ # Actually an FTP download
+ &ftp_download($host, $page, "$cwd/$file", undef,
+ \&progress_callback,
+ $in{'username'}, $in{'password'}, $port);
+ }
+ &ui_print_footer("index.cgi?path=$path", $text{'previous_page'});
+ }
+}
+
+if (scalar(@errors) > 0) {
+ print_errors(@errors);
+}
\ No newline at end of file
diff --git a/filemin/images/icon.gif b/filemin/images/icon.gif
new file mode 100644
index 000000000..cd53d21ca
Binary files /dev/null and b/filemin/images/icon.gif differ
diff --git a/filemin/images/icons/AUTHORS b/filemin/images/icons/AUTHORS
new file mode 100644
index 000000000..bb7475c4f
--- /dev/null
+++ b/filemin/images/icons/AUTHORS
@@ -0,0 +1,5 @@
+Faenza is designed and developed by Matthieu James .
+
+Faenza icons are all licensed under the GPL.
+
+Thanks to Holger Seelig and clemyeats for their help for having some text preview inside icons in Nautilus.
diff --git a/filemin/images/icons/COPYING b/filemin/images/icons/COPYING
new file mode 100644
index 000000000..94a9ed024
--- /dev/null
+++ b/filemin/images/icons/COPYING
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/filemin/images/icons/mime/application-7zip.png b/filemin/images/icons/mime/application-7zip.png
new file mode 120000
index 000000000..77d844237
--- /dev/null
+++ b/filemin/images/icons/mime/application-7zip.png
@@ -0,0 +1 @@
+./application-x-7zip.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-atom+xml.png b/filemin/images/icons/mime/application-atom+xml.png
new file mode 120000
index 000000000..fffbd3727
--- /dev/null
+++ b/filemin/images/icons/mime/application-atom+xml.png
@@ -0,0 +1 @@
+./application-rss+xml.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-gzip.png b/filemin/images/icons/mime/application-gzip.png
new file mode 120000
index 000000000..4b4143667
--- /dev/null
+++ b/filemin/images/icons/mime/application-gzip.png
@@ -0,0 +1 @@
+application-x-gzip.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-illustrator.png b/filemin/images/icons/mime/application-illustrator.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/application-illustrator.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-javascript.png b/filemin/images/icons/mime/application-javascript.png
new file mode 120000
index 000000000..4d1a6959f
--- /dev/null
+++ b/filemin/images/icons/mime/application-javascript.png
@@ -0,0 +1 @@
+./text-x-javascript.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-mbox.png b/filemin/images/icons/mime/application-mbox.png
new file mode 120000
index 000000000..98082531c
--- /dev/null
+++ b/filemin/images/icons/mime/application-mbox.png
@@ -0,0 +1 @@
+./message.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-msword.png b/filemin/images/icons/mime/application-msword.png
new file mode 100644
index 000000000..c021462fa
Binary files /dev/null and b/filemin/images/icons/mime/application-msword.png differ
diff --git a/filemin/images/icons/mime/application-octet-stream.png b/filemin/images/icons/mime/application-octet-stream.png
new file mode 120000
index 000000000..022589901
--- /dev/null
+++ b/filemin/images/icons/mime/application-octet-stream.png
@@ -0,0 +1 @@
+./multipart-encrypted.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-ogg.png b/filemin/images/icons/mime/application-ogg.png
new file mode 120000
index 000000000..6f50c0960
--- /dev/null
+++ b/filemin/images/icons/mime/application-ogg.png
@@ -0,0 +1 @@
+./audio-x-vorbis+ogg.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-pdf.png b/filemin/images/icons/mime/application-pdf.png
new file mode 100644
index 000000000..9d25caac8
Binary files /dev/null and b/filemin/images/icons/mime/application-pdf.png differ
diff --git a/filemin/images/icons/mime/application-pgp-encrypted.png b/filemin/images/icons/mime/application-pgp-encrypted.png
new file mode 120000
index 000000000..a30fbcbff
--- /dev/null
+++ b/filemin/images/icons/mime/application-pgp-encrypted.png
@@ -0,0 +1 @@
+./encrypted.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-pgp-keys.png b/filemin/images/icons/mime/application-pgp-keys.png
new file mode 100644
index 000000000..daf8f4e08
Binary files /dev/null and b/filemin/images/icons/mime/application-pgp-keys.png differ
diff --git a/filemin/images/icons/mime/application-pkcs7-mime.png b/filemin/images/icons/mime/application-pkcs7-mime.png
new file mode 120000
index 000000000..2140dc33c
--- /dev/null
+++ b/filemin/images/icons/mime/application-pkcs7-mime.png
@@ -0,0 +1 @@
+./application-pgp-keys.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-rss+xml.png b/filemin/images/icons/mime/application-rss+xml.png
new file mode 100644
index 000000000..ba24029c6
Binary files /dev/null and b/filemin/images/icons/mime/application-rss+xml.png differ
diff --git a/filemin/images/icons/mime/application-rtf.png b/filemin/images/icons/mime/application-rtf.png
new file mode 120000
index 000000000..cb444cc4f
--- /dev/null
+++ b/filemin/images/icons/mime/application-rtf.png
@@ -0,0 +1 @@
+./text-richtext.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-text.png b/filemin/images/icons/mime/application-text.png
new file mode 120000
index 000000000..b0af6e619
--- /dev/null
+++ b/filemin/images/icons/mime/application-text.png
@@ -0,0 +1 @@
+./text-plain.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.ms-access.png b/filemin/images/icons/mime/application-vnd.ms-access.png
new file mode 120000
index 000000000..4a678e643
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.ms-access.png
@@ -0,0 +1 @@
+./text-x-sql.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.ms-excel.png b/filemin/images/icons/mime/application-vnd.ms-excel.png
new file mode 100644
index 000000000..fbc3c666c
Binary files /dev/null and b/filemin/images/icons/mime/application-vnd.ms-excel.png differ
diff --git a/filemin/images/icons/mime/application-vnd.ms-powerpoint.png b/filemin/images/icons/mime/application-vnd.ms-powerpoint.png
new file mode 100644
index 000000000..f36ece4b5
Binary files /dev/null and b/filemin/images/icons/mime/application-vnd.ms-powerpoint.png differ
diff --git a/filemin/images/icons/mime/application-vnd.ms-word.png b/filemin/images/icons/mime/application-vnd.ms-word.png
new file mode 120000
index 000000000..cb2906d05
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.ms-word.png
@@ -0,0 +1 @@
+application-msword.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.oasis.opendocument.database.png b/filemin/images/icons/mime/application-vnd.oasis.opendocument.database.png
new file mode 120000
index 000000000..4a678e643
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.oasis.opendocument.database.png
@@ -0,0 +1 @@
+./text-x-sql.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.oasis.opendocument.formula.png b/filemin/images/icons/mime/application-vnd.oasis.opendocument.formula.png
new file mode 100644
index 000000000..ad880a17a
Binary files /dev/null and b/filemin/images/icons/mime/application-vnd.oasis.opendocument.formula.png differ
diff --git a/filemin/images/icons/mime/application-vnd.oasis.opendocument.graphics.png b/filemin/images/icons/mime/application-vnd.oasis.opendocument.graphics.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.oasis.opendocument.graphics.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.oasis.opendocument.spreadsheet.png b/filemin/images/icons/mime/application-vnd.oasis.opendocument.spreadsheet.png
new file mode 120000
index 000000000..7386bf79a
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.oasis.opendocument.spreadsheet.png
@@ -0,0 +1 @@
+./x-office-spreadsheet.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.oasis.opendocument.text-web.png b/filemin/images/icons/mime/application-vnd.oasis.opendocument.text-web.png
new file mode 120000
index 000000000..420d440fd
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.oasis.opendocument.text-web.png
@@ -0,0 +1 @@
+./text-html.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.oasis.opendocument.text.png b/filemin/images/icons/mime/application-vnd.oasis.opendocument.text.png
new file mode 120000
index 000000000..e8f4bb836
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.oasis.opendocument.text.png
@@ -0,0 +1 @@
+./x-office-document.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.presentationml.presentation.png b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.presentationml.presentation.png
new file mode 120000
index 000000000..023636935
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.presentationml.presentation.png
@@ -0,0 +1 @@
+./application-vnd.ms-powerpoint.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.presentationml.slideshow.png b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.presentationml.slideshow.png
new file mode 120000
index 000000000..023636935
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.presentationml.slideshow.png
@@ -0,0 +1 @@
+./application-vnd.ms-powerpoint.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.png b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.png
new file mode 120000
index 000000000..7ec71066b
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.spreadsheetml.sheet.png
@@ -0,0 +1 @@
+./application-vnd.ms-excel.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.wordprocessingml.document.png b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.wordprocessingml.document.png
new file mode 120000
index 000000000..1abd889ec
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.openxmlformats-officedocument.wordprocessingml.document.png
@@ -0,0 +1 @@
+./application-msword.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.rn-realmedia.png b/filemin/images/icons/mime/application-vnd.rn-realmedia.png
new file mode 120000
index 000000000..389951fca
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.rn-realmedia.png
@@ -0,0 +1 @@
+./video-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.scribus.png b/filemin/images/icons/mime/application-vnd.scribus.png
new file mode 100644
index 000000000..c9c3c0a54
Binary files /dev/null and b/filemin/images/icons/mime/application-vnd.scribus.png differ
diff --git a/filemin/images/icons/mime/application-vnd.sun.xml.calc.png b/filemin/images/icons/mime/application-vnd.sun.xml.calc.png
new file mode 120000
index 000000000..7386bf79a
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.sun.xml.calc.png
@@ -0,0 +1 @@
+./x-office-spreadsheet.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.sun.xml.draw.png b/filemin/images/icons/mime/application-vnd.sun.xml.draw.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.sun.xml.draw.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.sun.xml.writer.png b/filemin/images/icons/mime/application-vnd.sun.xml.writer.png
new file mode 120000
index 000000000..e8f4bb836
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.sun.xml.writer.png
@@ -0,0 +1 @@
+./x-office-document.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-vnd.wordperfect.png b/filemin/images/icons/mime/application-vnd.wordperfect.png
new file mode 120000
index 000000000..e8f4bb836
--- /dev/null
+++ b/filemin/images/icons/mime/application-vnd.wordperfect.png
@@ -0,0 +1 @@
+./x-office-document.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-7z-compressed.png b/filemin/images/icons/mime/application-x-7z-compressed.png
new file mode 120000
index 000000000..77d844237
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-7z-compressed.png
@@ -0,0 +1 @@
+./application-x-7zip.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-7zip.png b/filemin/images/icons/mime/application-x-7zip.png
new file mode 100644
index 000000000..3fc6a8612
Binary files /dev/null and b/filemin/images/icons/mime/application-x-7zip.png differ
diff --git a/filemin/images/icons/mime/application-x-ace.png b/filemin/images/icons/mime/application-x-ace.png
new file mode 100644
index 000000000..bb38634ff
Binary files /dev/null and b/filemin/images/icons/mime/application-x-ace.png differ
diff --git a/filemin/images/icons/mime/application-x-arc.png b/filemin/images/icons/mime/application-x-arc.png
new file mode 120000
index 000000000..690e316b4
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-arc.png
@@ -0,0 +1 @@
+./application-x-archive.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-archive.png b/filemin/images/icons/mime/application-x-archive.png
new file mode 100644
index 000000000..e3a48f995
Binary files /dev/null and b/filemin/images/icons/mime/application-x-archive.png differ
diff --git a/filemin/images/icons/mime/application-x-bittorrent.png b/filemin/images/icons/mime/application-x-bittorrent.png
new file mode 100644
index 000000000..4e1ae7096
Binary files /dev/null and b/filemin/images/icons/mime/application-x-bittorrent.png differ
diff --git a/filemin/images/icons/mime/application-x-cd-image.png b/filemin/images/icons/mime/application-x-cd-image.png
new file mode 100644
index 000000000..70fe010b6
Binary files /dev/null and b/filemin/images/icons/mime/application-x-cd-image.png differ
diff --git a/filemin/images/icons/mime/application-x-class-file.png b/filemin/images/icons/mime/application-x-class-file.png
new file mode 120000
index 000000000..57c8edb78
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-class-file.png
@@ -0,0 +1 @@
+./text-x-java.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-compress.png b/filemin/images/icons/mime/application-x-compress.png
new file mode 120000
index 000000000..690e316b4
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-compress.png
@@ -0,0 +1 @@
+./application-x-archive.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-compressed-tar.png b/filemin/images/icons/mime/application-x-compressed-tar.png
new file mode 120000
index 000000000..6e384eeb6
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-compressed-tar.png
@@ -0,0 +1 @@
+./application-x-gzip.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-csh.png b/filemin/images/icons/mime/application-x-csh.png
new file mode 120000
index 000000000..cc823272e
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-csh.png
@@ -0,0 +1 @@
+text-x-script.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-csproj.png b/filemin/images/icons/mime/application-x-csproj.png
new file mode 120000
index 000000000..74384620f
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-csproj.png
@@ -0,0 +1 @@
+./application-x-sln.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-cue.png b/filemin/images/icons/mime/application-x-cue.png
new file mode 100644
index 000000000..fc9db0333
Binary files /dev/null and b/filemin/images/icons/mime/application-x-cue.png differ
diff --git a/filemin/images/icons/mime/application-x-deb.png b/filemin/images/icons/mime/application-x-deb.png
new file mode 120000
index 000000000..a13ad3fea
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-deb.png
@@ -0,0 +1 @@
+./deb.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-designer.png b/filemin/images/icons/mime/application-x-designer.png
new file mode 120000
index 000000000..051f9fd62
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-designer.png
@@ -0,0 +1 @@
+./application-x-glade.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-desktop.png b/filemin/images/icons/mime/application-x-desktop.png
new file mode 120000
index 000000000..8090aace6
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-desktop.png
@@ -0,0 +1 @@
+./application-x-theme.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-executable.png b/filemin/images/icons/mime/application-x-executable.png
new file mode 100644
index 000000000..d2d261600
Binary files /dev/null and b/filemin/images/icons/mime/application-x-executable.png differ
diff --git a/filemin/images/icons/mime/application-x-extension-html.png b/filemin/images/icons/mime/application-x-extension-html.png
new file mode 120000
index 000000000..420d440fd
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-extension-html.png
@@ -0,0 +1 @@
+./text-html.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-flash-video.png b/filemin/images/icons/mime/application-x-flash-video.png
new file mode 100644
index 000000000..f1740a78a
Binary files /dev/null and b/filemin/images/icons/mime/application-x-flash-video.png differ
diff --git a/filemin/images/icons/mime/application-x-glade.png b/filemin/images/icons/mime/application-x-glade.png
new file mode 100644
index 000000000..5e8af37ae
Binary files /dev/null and b/filemin/images/icons/mime/application-x-glade.png differ
diff --git a/filemin/images/icons/mime/application-x-gnome-theme-package.png b/filemin/images/icons/mime/application-x-gnome-theme-package.png
new file mode 120000
index 000000000..8090aace6
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-gnome-theme-package.png
@@ -0,0 +1 @@
+./application-x-theme.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-gnumeric.png b/filemin/images/icons/mime/application-x-gnumeric.png
new file mode 120000
index 000000000..7386bf79a
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-gnumeric.png
@@ -0,0 +1 @@
+./x-office-spreadsheet.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-gzip.png b/filemin/images/icons/mime/application-x-gzip.png
new file mode 100644
index 000000000..39a743cff
Binary files /dev/null and b/filemin/images/icons/mime/application-x-gzip.png differ
diff --git a/filemin/images/icons/mime/application-x-jar.png b/filemin/images/icons/mime/application-x-jar.png
new file mode 100644
index 000000000..e3a48f995
Binary files /dev/null and b/filemin/images/icons/mime/application-x-jar.png differ
diff --git a/filemin/images/icons/mime/application-x-java-archive.png b/filemin/images/icons/mime/application-x-java-archive.png
new file mode 120000
index 000000000..47279e8e6
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-java-archive.png
@@ -0,0 +1 @@
+./application-x-jar.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-java.png b/filemin/images/icons/mime/application-x-java.png
new file mode 120000
index 000000000..57c8edb78
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-java.png
@@ -0,0 +1 @@
+./text-x-java.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-javascript.png b/filemin/images/icons/mime/application-x-javascript.png
new file mode 120000
index 000000000..4d1a6959f
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-javascript.png
@@ -0,0 +1 @@
+./text-x-javascript.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-keepass.png b/filemin/images/icons/mime/application-x-keepass.png
new file mode 120000
index 000000000..2140dc33c
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-keepass.png
@@ -0,0 +1 @@
+./application-pgp-keys.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-lha.png b/filemin/images/icons/mime/application-x-lha.png
new file mode 120000
index 000000000..690e316b4
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-lha.png
@@ -0,0 +1 @@
+./application-x-archive.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-lhz.png b/filemin/images/icons/mime/application-x-lhz.png
new file mode 120000
index 000000000..690e316b4
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-lhz.png
@@ -0,0 +1 @@
+./application-x-archive.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-m4.png b/filemin/images/icons/mime/application-x-m4.png
new file mode 120000
index 000000000..cb444cc4f
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-m4.png
@@ -0,0 +1 @@
+./text-richtext.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-matroska.png b/filemin/images/icons/mime/application-x-matroska.png
new file mode 120000
index 000000000..389951fca
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-matroska.png
@@ -0,0 +1 @@
+./video-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-ms-dos-executable.png b/filemin/images/icons/mime/application-x-ms-dos-executable.png
new file mode 100644
index 000000000..90a1d3e97
Binary files /dev/null and b/filemin/images/icons/mime/application-x-ms-dos-executable.png differ
diff --git a/filemin/images/icons/mime/application-x-msdownload.png b/filemin/images/icons/mime/application-x-msdownload.png
new file mode 100644
index 000000000..a250e130f
Binary files /dev/null and b/filemin/images/icons/mime/application-x-msdownload.png differ
diff --git a/filemin/images/icons/mime/application-x-ole-storage.png b/filemin/images/icons/mime/application-x-ole-storage.png
new file mode 120000
index 000000000..022589901
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-ole-storage.png
@@ -0,0 +1 @@
+./multipart-encrypted.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-pak.png b/filemin/images/icons/mime/application-x-pak.png
new file mode 120000
index 000000000..2fe2c970e
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-pak.png
@@ -0,0 +1 @@
+./package-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-pem-key.png b/filemin/images/icons/mime/application-x-pem-key.png
new file mode 120000
index 000000000..2140dc33c
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-pem-key.png
@@ -0,0 +1 @@
+./application-pgp-keys.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-php.png b/filemin/images/icons/mime/application-x-php.png
new file mode 100644
index 000000000..aed31f2f6
Binary files /dev/null and b/filemin/images/icons/mime/application-x-php.png differ
diff --git a/filemin/images/icons/mime/application-x-python-bytecode.png b/filemin/images/icons/mime/application-x-python-bytecode.png
new file mode 120000
index 000000000..2ddda2625
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-python-bytecode.png
@@ -0,0 +1 @@
+./text-x-python.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-rar.png b/filemin/images/icons/mime/application-x-rar.png
new file mode 100644
index 000000000..8d91396fa
Binary files /dev/null and b/filemin/images/icons/mime/application-x-rar.png differ
diff --git a/filemin/images/icons/mime/application-x-rpm.png b/filemin/images/icons/mime/application-x-rpm.png
new file mode 120000
index 000000000..624ab4625
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-rpm.png
@@ -0,0 +1 @@
+./rpm.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-ruby.png b/filemin/images/icons/mime/application-x-ruby.png
new file mode 100644
index 000000000..ec0053048
Binary files /dev/null and b/filemin/images/icons/mime/application-x-ruby.png differ
diff --git a/filemin/images/icons/mime/application-x-scribus.png b/filemin/images/icons/mime/application-x-scribus.png
new file mode 120000
index 000000000..8c40c5e43
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-scribus.png
@@ -0,0 +1 @@
+./application-vnd.scribus.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-shellscript.png b/filemin/images/icons/mime/application-x-shellscript.png
new file mode 120000
index 000000000..d9b84cc07
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-shellscript.png
@@ -0,0 +1 @@
+./text-x-script.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-shockwave-flash.png b/filemin/images/icons/mime/application-x-shockwave-flash.png
new file mode 120000
index 000000000..b963c0921
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-shockwave-flash.png
@@ -0,0 +1 @@
+./application-x-flash-video.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-sln.png b/filemin/images/icons/mime/application-x-sln.png
new file mode 100644
index 000000000..01c861cb6
Binary files /dev/null and b/filemin/images/icons/mime/application-x-sln.png differ
diff --git a/filemin/images/icons/mime/application-x-sqlite2.png b/filemin/images/icons/mime/application-x-sqlite2.png
new file mode 120000
index 000000000..4a678e643
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-sqlite2.png
@@ -0,0 +1 @@
+./text-x-sql.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-sqlite3.png b/filemin/images/icons/mime/application-x-sqlite3.png
new file mode 120000
index 000000000..4a678e643
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-sqlite3.png
@@ -0,0 +1 @@
+./text-x-sql.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-tar.png b/filemin/images/icons/mime/application-x-tar.png
new file mode 100644
index 000000000..c468357c0
Binary files /dev/null and b/filemin/images/icons/mime/application-x-tar.png differ
diff --git a/filemin/images/icons/mime/application-x-theme.png b/filemin/images/icons/mime/application-x-theme.png
new file mode 100644
index 000000000..39bddf76b
Binary files /dev/null and b/filemin/images/icons/mime/application-x-theme.png differ
diff --git a/filemin/images/icons/mime/application-x-trash.png b/filemin/images/icons/mime/application-x-trash.png
new file mode 120000
index 000000000..b227b8519
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-trash.png
@@ -0,0 +1 @@
+./text-x-bak.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-wais-source.png b/filemin/images/icons/mime/application-x-wais-source.png
new file mode 120000
index 000000000..72c2aa89a
--- /dev/null
+++ b/filemin/images/icons/mime/application-x-wais-source.png
@@ -0,0 +1 @@
+text-x-source.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-x-zip.png b/filemin/images/icons/mime/application-x-zip.png
new file mode 100644
index 000000000..41eb12cb7
Binary files /dev/null and b/filemin/images/icons/mime/application-x-zip.png differ
diff --git a/filemin/images/icons/mime/application-xml.png b/filemin/images/icons/mime/application-xml.png
new file mode 120000
index 000000000..8b64d4f06
--- /dev/null
+++ b/filemin/images/icons/mime/application-xml.png
@@ -0,0 +1 @@
+./text-xml.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/application-zip.png b/filemin/images/icons/mime/application-zip.png
new file mode 120000
index 000000000..37ebc443f
--- /dev/null
+++ b/filemin/images/icons/mime/application-zip.png
@@ -0,0 +1 @@
+./application-x-zip.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-mpeg.png b/filemin/images/icons/mime/audio-mpeg.png
new file mode 120000
index 000000000..bb0098f3a
--- /dev/null
+++ b/filemin/images/icons/mime/audio-mpeg.png
@@ -0,0 +1 @@
+./audio-x-mpeg.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-adpcm.png b/filemin/images/icons/mime/audio-x-adpcm.png
new file mode 120000
index 000000000..c6c6eeb33
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-adpcm.png
@@ -0,0 +1 @@
+./audio-x-wav.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-flac+ogg.png b/filemin/images/icons/mime/audio-x-flac+ogg.png
new file mode 120000
index 000000000..6f50c0960
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-flac+ogg.png
@@ -0,0 +1 @@
+./audio-x-vorbis+ogg.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-generic.png b/filemin/images/icons/mime/audio-x-generic.png
new file mode 100644
index 000000000..bc0eefb38
Binary files /dev/null and b/filemin/images/icons/mime/audio-x-generic.png differ
diff --git a/filemin/images/icons/mime/audio-x-mod.png b/filemin/images/icons/mime/audio-x-mod.png
new file mode 120000
index 000000000..9f186764b
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-mod.png
@@ -0,0 +1 @@
+audio-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-mp3-playlist.png b/filemin/images/icons/mime/audio-x-mp3-playlist.png
new file mode 100644
index 000000000..741d52e07
Binary files /dev/null and b/filemin/images/icons/mime/audio-x-mp3-playlist.png differ
diff --git a/filemin/images/icons/mime/audio-x-mpeg.png b/filemin/images/icons/mime/audio-x-mpeg.png
new file mode 100644
index 000000000..bc0eefb38
Binary files /dev/null and b/filemin/images/icons/mime/audio-x-mpeg.png differ
diff --git a/filemin/images/icons/mime/audio-x-mpegurl.png b/filemin/images/icons/mime/audio-x-mpegurl.png
new file mode 120000
index 000000000..e0f2a6236
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-mpegurl.png
@@ -0,0 +1 @@
+./audio-x-mp3-playlist.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-ms-wma.png b/filemin/images/icons/mime/audio-x-ms-wma.png
new file mode 100644
index 000000000..bc0eefb38
Binary files /dev/null and b/filemin/images/icons/mime/audio-x-ms-wma.png differ
diff --git a/filemin/images/icons/mime/audio-x-s3m.png b/filemin/images/icons/mime/audio-x-s3m.png
new file mode 120000
index 000000000..9f186764b
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-s3m.png
@@ -0,0 +1 @@
+audio-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-scpls.png b/filemin/images/icons/mime/audio-x-scpls.png
new file mode 120000
index 000000000..e0f2a6236
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-scpls.png
@@ -0,0 +1 @@
+./audio-x-mp3-playlist.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-speex+ogg.png b/filemin/images/icons/mime/audio-x-speex+ogg.png
new file mode 120000
index 000000000..6f50c0960
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-speex+ogg.png
@@ -0,0 +1 @@
+./audio-x-vorbis+ogg.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/audio-x-vorbis+ogg.png b/filemin/images/icons/mime/audio-x-vorbis+ogg.png
new file mode 100644
index 000000000..bc0eefb38
Binary files /dev/null and b/filemin/images/icons/mime/audio-x-vorbis+ogg.png differ
diff --git a/filemin/images/icons/mime/audio-x-wav.png b/filemin/images/icons/mime/audio-x-wav.png
new file mode 100644
index 000000000..2289794be
Binary files /dev/null and b/filemin/images/icons/mime/audio-x-wav.png differ
diff --git a/filemin/images/icons/mime/audio-x-xm.png b/filemin/images/icons/mime/audio-x-xm.png
new file mode 120000
index 000000000..9f186764b
--- /dev/null
+++ b/filemin/images/icons/mime/audio-x-xm.png
@@ -0,0 +1 @@
+audio-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/authors.png b/filemin/images/icons/mime/authors.png
new file mode 100644
index 000000000..df06437f5
Binary files /dev/null and b/filemin/images/icons/mime/authors.png differ
diff --git a/filemin/images/icons/mime/binary.png b/filemin/images/icons/mime/binary.png
new file mode 120000
index 000000000..81454ae2b
--- /dev/null
+++ b/filemin/images/icons/mime/binary.png
@@ -0,0 +1 @@
+./application-x-executable.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/deb.png b/filemin/images/icons/mime/deb.png
new file mode 100644
index 000000000..d66dcc92b
Binary files /dev/null and b/filemin/images/icons/mime/deb.png differ
diff --git a/filemin/images/icons/mime/document.png b/filemin/images/icons/mime/document.png
new file mode 120000
index 000000000..cb444cc4f
--- /dev/null
+++ b/filemin/images/icons/mime/document.png
@@ -0,0 +1 @@
+./text-richtext.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/empty.png b/filemin/images/icons/mime/empty.png
new file mode 100644
index 000000000..002e25c82
Binary files /dev/null and b/filemin/images/icons/mime/empty.png differ
diff --git a/filemin/images/icons/mime/encrypted.png b/filemin/images/icons/mime/encrypted.png
new file mode 100644
index 000000000..878e969bc
Binary files /dev/null and b/filemin/images/icons/mime/encrypted.png differ
diff --git a/filemin/images/icons/mime/exec.png b/filemin/images/icons/mime/exec.png
new file mode 120000
index 000000000..81454ae2b
--- /dev/null
+++ b/filemin/images/icons/mime/exec.png
@@ -0,0 +1 @@
+./application-x-executable.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/extension.png b/filemin/images/icons/mime/extension.png
new file mode 100644
index 000000000..a54293a43
Binary files /dev/null and b/filemin/images/icons/mime/extension.png differ
diff --git a/filemin/images/icons/mime/folder_tar.png b/filemin/images/icons/mime/folder_tar.png
new file mode 120000
index 000000000..12851c1ca
--- /dev/null
+++ b/filemin/images/icons/mime/folder_tar.png
@@ -0,0 +1 @@
+./application-x-tar.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/font-x-generic.png b/filemin/images/icons/mime/font-x-generic.png
new file mode 100644
index 000000000..8f460e867
Binary files /dev/null and b/filemin/images/icons/mime/font-x-generic.png differ
diff --git a/filemin/images/icons/mime/font.png b/filemin/images/icons/mime/font.png
new file mode 120000
index 000000000..61a551595
--- /dev/null
+++ b/filemin/images/icons/mime/font.png
@@ -0,0 +1 @@
+./font-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/font.xpm b/filemin/images/icons/mime/font.xpm
new file mode 100644
index 000000000..1018e496b
--- /dev/null
+++ b/filemin/images/icons/mime/font.xpm
@@ -0,0 +1,144 @@
+/* XPM */
+static char *font[] = {
+/* columns rows colors chars-per-pixel */
+"22 22 116 2",
+" c #000000",
+". c #2D4978",
+"X c #2E4A79",
+"o c #304C7B",
+"O c #334F7E",
+"+ c #585858",
+"@ c #365281",
+"# c #395584",
+"$ c #3C5887",
+"% c #3F5B8A",
+"& c #435D88",
+"* c #435D8A",
+"= c #445E8A",
+"- c #425E8D",
+"; c #48618C",
+": c #51678B",
+"> c #456190",
+", c #4B6590",
+"< c #486493",
+"1 c #4B6694",
+"2 c #4B6796",
+"3 c #4F6892",
+"4 c #4E6894",
+"5 c #4E6A99",
+"6 c #556F9B",
+"7 c #516D9C",
+"8 c #526E9D",
+"9 c #54709F",
+"0 c #5C7298",
+"q c #5C7399",
+"w c #5C759E",
+"e c #687C9D",
+"r c #647BA1",
+"t c #677EA5",
+"y c #6F85AB",
+"u c #7183A2",
+"i c #7587A5",
+"p c #7387A8",
+"a c #758BAF",
+"s c #768BAF",
+"d c #7B8EAD",
+"f c #7B8EAE",
+"g c #8393AD",
+"h c #8395B2",
+"j c #8897B0",
+"k c #8899B5",
+"l c #94A2BB",
+"z c #97A4BA",
+"x c #97A5BE",
+"c c #9BA9C0",
+"v c #98A8C2",
+"b c #A3AFC4",
+"n c #A5B0C3",
+"m c #A6B1C2",
+"M c #BAC3D0",
+"N c #B9C3D3",
+"B c #BAC3D2",
+"V c #BCC4D1",
+"C c #C7C7C7",
+"Z c #C5C7CA",
+"A c #C3C7CF",
+"S c #C8C8C8",
+"D c #CBCBCB",
+"F c #C4CAD5",
+"G c #C4CBD6",
+"H c #C4CBD8",
+"J c #CDD3DE",
+"K c #D0D0D0",
+"L c #D1D1D1",
+"P c #D2D2D2",
+"I c #D3D3D3",
+"U c #D4D4D4",
+"Y c #D5D5D5",
+"T c #D6D6D6",
+"R c #D7D7D7",
+"E c #D8D9DB",
+"W c #DBDBDB",
+"Q c #DDDDDD",
+"! c #DEDEDE",
+"~ c #D5DAE3",
+"^ c #DADDE4",
+"/ c #DADEE4",
+"( c #DCDFE4",
+") c #DCE0E5",
+"_ c #E1E1E1",
+"` c #E3E3E3",
+"' c #E0E2E6",
+"] c #E2E4E6",
+"[ c #E5E5E5",
+"{ c #E6E6E6",
+"} c #E7E7E7",
+"| c #E4E6E8",
+" . c #E8E8E8",
+".. c #E9E9E9",
+"X. c #EAEAEA",
+"o. c #EBEBEB",
+"O. c #EBECEE",
+"+. c #ECECEC",
+"@. c #EDEDED",
+"#. c #ECEDEE",
+"$. c #EDEDEE",
+"%. c #EEEEEE",
+"&. c #EFEFEF",
+"*. c #F0F0F0",
+"=. c #F1F1F1",
+"-. c #F1F1F2",
+";. c #F2F2F2",
+":. c #F3F3F3",
+">. c #F4F4F4",
+",. c #F5F5F5",
+"<. c #F6F6F6",
+"1. c #F7F7F7",
+"2. c #F8F8F8",
+"3. c #F9F9F9",
+"4. c #FBFBFB",
+"5. c None",
+/* pixels */
+"5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.",
+"5.5.<.4.4.4.4.4.4.4.4.4.4.4.4.4.4.2.4.<.5.5.",
+"5.:.<.<.:.:.<.<.<.<.:.<.:.<.<.<.>.&.>.<.:.5.",
+"5.4.:.:.<.:.:.:.:.<.:.<.:.<.:.:.>.} >.:.4.5.",
+"5.4.:.:.:.:.:.:.*.} Q T k 8 m E T S } &.4.5.",
+"5.<.:.:.:.:.:.:.>.>.>.~ 8 8 v :.:.E >.:.<.5.",
+"5.<.:.:.:.:.:.:.:.:.:.s y 5 s :.:.T :.:.<.5.",
+"5.<.:.&.:.:.:.:.:.:.N t J 1 6 :.:.T &.:.<.5.",
+"5.>.&.&.+.:.&.:.*.O.w H O.< < / :.I :.:.:.5.",
+"5.>.&.:.} &.:.&.:.x d *.:.r > N &.T &.&.:.5.",
+"5.:.&.&.E &.&.:.) 3 / :.:.h - x &.T &.&.:.5.",
+"5.&.&.&.I &.:.&.d l *.*.&.b % i &.I &.&.&.5.",
+"5.&.&.&.I &.&.G ; ) ] } | M % 3 &.I &.o.&.5.",
+"5.&.o.&.I &.&.q > = * * * * # # ) T &.&.&.5.",
+"5.o.o.&.K &.m 0 &.&.&.+.&.&.; @ V K &.o.o.5.",
+"5.o.o.o.K ] & F +.+.&.+.o.O.e O z K o.o.o.5.",
+"5.o.o.o.D g i &.&.&.o.&.&.o.g O u I o.o.o.5.",
+"5.} ` A X X . : K D D K Z . . . . X R ` } 5.",
+"5.o.} } T o.o.o.o.o.o.o.o.o.o.o.o.Q o.o.o.5.",
+"5.C } o.Q } } } } } } } } } } } } ` } } C 5.",
+"5.+ C o.} &.o.&.&.&.&.&.&.&.o.&.o.o.o.S + 5.",
+"5.5.5. 5.5.5."
+};
diff --git a/filemin/images/icons/mime/font_bitmap.png b/filemin/images/icons/mime/font_bitmap.png
new file mode 120000
index 000000000..61a551595
--- /dev/null
+++ b/filemin/images/icons/mime/font_bitmap.png
@@ -0,0 +1 @@
+./font-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/font_truetype.png b/filemin/images/icons/mime/font_truetype.png
new file mode 120000
index 000000000..61a551595
--- /dev/null
+++ b/filemin/images/icons/mime/font_truetype.png
@@ -0,0 +1 @@
+./font-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/font_type1.png b/filemin/images/icons/mime/font_type1.png
new file mode 120000
index 000000000..61a551595
--- /dev/null
+++ b/filemin/images/icons/mime/font_type1.png
@@ -0,0 +1 @@
+./font-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/gtk-file.png b/filemin/images/icons/mime/gtk-file.png
new file mode 120000
index 000000000..14f143c1a
--- /dev/null
+++ b/filemin/images/icons/mime/gtk-file.png
@@ -0,0 +1 @@
+./empty.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/html.png b/filemin/images/icons/mime/html.png
new file mode 120000
index 000000000..420d440fd
--- /dev/null
+++ b/filemin/images/icons/mime/html.png
@@ -0,0 +1 @@
+./text-html.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-bmp.png b/filemin/images/icons/mime/image-bmp.png
new file mode 100644
index 000000000..383304420
Binary files /dev/null and b/filemin/images/icons/mime/image-bmp.png differ
diff --git a/filemin/images/icons/mime/image-gif.png b/filemin/images/icons/mime/image-gif.png
new file mode 100644
index 000000000..3da5292e5
Binary files /dev/null and b/filemin/images/icons/mime/image-gif.png differ
diff --git a/filemin/images/icons/mime/image-jpeg.png b/filemin/images/icons/mime/image-jpeg.png
new file mode 100644
index 000000000..a73f14737
Binary files /dev/null and b/filemin/images/icons/mime/image-jpeg.png differ
diff --git a/filemin/images/icons/mime/image-jpeg2000.png b/filemin/images/icons/mime/image-jpeg2000.png
new file mode 120000
index 000000000..a613904c6
--- /dev/null
+++ b/filemin/images/icons/mime/image-jpeg2000.png
@@ -0,0 +1 @@
+./image-jpeg.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-png.png b/filemin/images/icons/mime/image-png.png
new file mode 100644
index 000000000..328886df6
Binary files /dev/null and b/filemin/images/icons/mime/image-png.png differ
diff --git a/filemin/images/icons/mime/image-svg+xml.png b/filemin/images/icons/mime/image-svg+xml.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/image-svg+xml.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-tiff.png b/filemin/images/icons/mime/image-tiff.png
new file mode 100644
index 000000000..6e5d9be81
Binary files /dev/null and b/filemin/images/icons/mime/image-tiff.png differ
diff --git a/filemin/images/icons/mime/image-vnd.adobe.photoshop.png b/filemin/images/icons/mime/image-vnd.adobe.photoshop.png
new file mode 120000
index 000000000..3419c07fc
--- /dev/null
+++ b/filemin/images/icons/mime/image-vnd.adobe.photoshop.png
@@ -0,0 +1 @@
+image-x-psd.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-vnd.microsoft.icon.png b/filemin/images/icons/mime/image-vnd.microsoft.icon.png
new file mode 120000
index 000000000..875601a1b
--- /dev/null
+++ b/filemin/images/icons/mime/image-vnd.microsoft.icon.png
@@ -0,0 +1 @@
+./image-x-ico.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-apple-ios-png.png b/filemin/images/icons/mime/image-x-apple-ios-png.png
new file mode 120000
index 000000000..b8454a216
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-apple-ios-png.png
@@ -0,0 +1 @@
+image-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-eps.png b/filemin/images/icons/mime/image-x-eps.png
new file mode 100644
index 000000000..ce3583b0b
Binary files /dev/null and b/filemin/images/icons/mime/image-x-eps.png differ
diff --git a/filemin/images/icons/mime/image-x-generic.png b/filemin/images/icons/mime/image-x-generic.png
new file mode 100644
index 000000000..4ec14a911
Binary files /dev/null and b/filemin/images/icons/mime/image-x-generic.png differ
diff --git a/filemin/images/icons/mime/image-x-ico.png b/filemin/images/icons/mime/image-x-ico.png
new file mode 100644
index 000000000..bcd4860d6
Binary files /dev/null and b/filemin/images/icons/mime/image-x-ico.png differ
diff --git a/filemin/images/icons/mime/image-x-icon.png b/filemin/images/icons/mime/image-x-icon.png
new file mode 120000
index 000000000..875601a1b
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-icon.png
@@ -0,0 +1 @@
+./image-x-ico.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-portable-bitmap.png b/filemin/images/icons/mime/image-x-portable-bitmap.png
new file mode 120000
index 000000000..5b91da7ab
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-portable-bitmap.png
@@ -0,0 +1 @@
+./image-bmp.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-psd.png b/filemin/images/icons/mime/image-x-psd.png
new file mode 100644
index 000000000..993c76f11
Binary files /dev/null and b/filemin/images/icons/mime/image-x-psd.png differ
diff --git a/filemin/images/icons/mime/image-x-psdimage-x-psd.png b/filemin/images/icons/mime/image-x-psdimage-x-psd.png
new file mode 120000
index 000000000..628dacccf
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-psdimage-x-psd.png
@@ -0,0 +1 @@
+./image-x-psd.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-svg+xml.png b/filemin/images/icons/mime/image-x-svg+xml.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-svg+xml.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-tga.png b/filemin/images/icons/mime/image-x-tga.png
new file mode 120000
index 000000000..d874e5970
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-tga.png
@@ -0,0 +1 @@
+./image-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-win-bitmap.png b/filemin/images/icons/mime/image-x-win-bitmap.png
new file mode 120000
index 000000000..5b91da7ab
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-win-bitmap.png
@@ -0,0 +1 @@
+./image-bmp.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image-x-xcf.png b/filemin/images/icons/mime/image-x-xcf.png
new file mode 100644
index 000000000..75db7982f
Binary files /dev/null and b/filemin/images/icons/mime/image-x-xcf.png differ
diff --git a/filemin/images/icons/mime/image-x-xpixmap.png b/filemin/images/icons/mime/image-x-xpixmap.png
new file mode 120000
index 000000000..b8454a216
--- /dev/null
+++ b/filemin/images/icons/mime/image-x-xpixmap.png
@@ -0,0 +1 @@
+image-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/image.png b/filemin/images/icons/mime/image.png
new file mode 120000
index 000000000..d874e5970
--- /dev/null
+++ b/filemin/images/icons/mime/image.png
@@ -0,0 +1 @@
+./image-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/inode-directory.png b/filemin/images/icons/mime/inode-directory.png
new file mode 100644
index 000000000..f6be7eac2
Binary files /dev/null and b/filemin/images/icons/mime/inode-directory.png differ
diff --git a/filemin/images/icons/mime/inode-mount-point.png b/filemin/images/icons/mime/inode-mount-point.png
new file mode 120000
index 000000000..d8f486403
--- /dev/null
+++ b/filemin/images/icons/mime/inode-mount-point.png
@@ -0,0 +1 @@
+inode-directory.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/inode-symlink.png b/filemin/images/icons/mime/inode-symlink.png
new file mode 100644
index 000000000..638e1e8d1
Binary files /dev/null and b/filemin/images/icons/mime/inode-symlink.png differ
diff --git a/filemin/images/icons/mime/jpeg.png b/filemin/images/icons/mime/jpeg.png
new file mode 120000
index 000000000..a613904c6
--- /dev/null
+++ b/filemin/images/icons/mime/jpeg.png
@@ -0,0 +1 @@
+./image-jpeg.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/jpg.png b/filemin/images/icons/mime/jpg.png
new file mode 120000
index 000000000..a613904c6
--- /dev/null
+++ b/filemin/images/icons/mime/jpg.png
@@ -0,0 +1 @@
+./image-jpeg.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/kpresenter_kpr.png b/filemin/images/icons/mime/kpresenter_kpr.png
new file mode 120000
index 000000000..1f32ebb46
--- /dev/null
+++ b/filemin/images/icons/mime/kpresenter_kpr.png
@@ -0,0 +1 @@
+./x-office-presentation.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/media-audio.png b/filemin/images/icons/mime/media-audio.png
new file mode 120000
index 000000000..07538eb6a
--- /dev/null
+++ b/filemin/images/icons/mime/media-audio.png
@@ -0,0 +1 @@
+./audio-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/media-image.png b/filemin/images/icons/mime/media-image.png
new file mode 120000
index 000000000..d874e5970
--- /dev/null
+++ b/filemin/images/icons/mime/media-image.png
@@ -0,0 +1 @@
+./image-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/media-video.png b/filemin/images/icons/mime/media-video.png
new file mode 120000
index 000000000..389951fca
--- /dev/null
+++ b/filemin/images/icons/mime/media-video.png
@@ -0,0 +1 @@
+./video-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/message-rfc822.png b/filemin/images/icons/mime/message-rfc822.png
new file mode 120000
index 000000000..98082531c
--- /dev/null
+++ b/filemin/images/icons/mime/message-rfc822.png
@@ -0,0 +1 @@
+./message.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/message.png b/filemin/images/icons/mime/message.png
new file mode 100644
index 000000000..b9dfc0709
Binary files /dev/null and b/filemin/images/icons/mime/message.png differ
diff --git a/filemin/images/icons/mime/misc.png b/filemin/images/icons/mime/misc.png
new file mode 120000
index 000000000..b0af6e619
--- /dev/null
+++ b/filemin/images/icons/mime/misc.png
@@ -0,0 +1 @@
+./text-plain.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/multipart-encrypted.png b/filemin/images/icons/mime/multipart-encrypted.png
new file mode 100644
index 000000000..1c7698f79
Binary files /dev/null and b/filemin/images/icons/mime/multipart-encrypted.png differ
diff --git a/filemin/images/icons/mime/none.png b/filemin/images/icons/mime/none.png
new file mode 120000
index 000000000..a1369b895
--- /dev/null
+++ b/filemin/images/icons/mime/none.png
@@ -0,0 +1 @@
+./unknown.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/office-document.png b/filemin/images/icons/mime/office-document.png
new file mode 120000
index 000000000..e8f4bb836
--- /dev/null
+++ b/filemin/images/icons/mime/office-document.png
@@ -0,0 +1 @@
+./x-office-document.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/office-illustration.png b/filemin/images/icons/mime/office-illustration.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/office-illustration.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/office-spreadsheet.png b/filemin/images/icons/mime/office-spreadsheet.png
new file mode 120000
index 000000000..7386bf79a
--- /dev/null
+++ b/filemin/images/icons/mime/office-spreadsheet.png
@@ -0,0 +1 @@
+./x-office-spreadsheet.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/openofficeorg3-database.png b/filemin/images/icons/mime/openofficeorg3-database.png
new file mode 120000
index 000000000..4a678e643
--- /dev/null
+++ b/filemin/images/icons/mime/openofficeorg3-database.png
@@ -0,0 +1 @@
+./text-x-sql.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/openofficeorg3-drawing.png b/filemin/images/icons/mime/openofficeorg3-drawing.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/openofficeorg3-drawing.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/openofficeorg3-extension.png b/filemin/images/icons/mime/openofficeorg3-extension.png
new file mode 120000
index 000000000..cae1f9c32
--- /dev/null
+++ b/filemin/images/icons/mime/openofficeorg3-extension.png
@@ -0,0 +1 @@
+./extension.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/openofficeorg3-oasis-database.png b/filemin/images/icons/mime/openofficeorg3-oasis-database.png
new file mode 120000
index 000000000..4a678e643
--- /dev/null
+++ b/filemin/images/icons/mime/openofficeorg3-oasis-database.png
@@ -0,0 +1 @@
+./text-x-sql.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/openofficeorg3-oasis-spreadsheet.png b/filemin/images/icons/mime/openofficeorg3-oasis-spreadsheet.png
new file mode 120000
index 000000000..7386bf79a
--- /dev/null
+++ b/filemin/images/icons/mime/openofficeorg3-oasis-spreadsheet.png
@@ -0,0 +1 @@
+./x-office-spreadsheet.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/opera-extension.png b/filemin/images/icons/mime/opera-extension.png
new file mode 100644
index 000000000..d1b6a4bbc
Binary files /dev/null and b/filemin/images/icons/mime/opera-extension.png differ
diff --git a/filemin/images/icons/mime/opera-unite-application.png b/filemin/images/icons/mime/opera-unite-application.png
new file mode 100644
index 000000000..1c1643852
Binary files /dev/null and b/filemin/images/icons/mime/opera-unite-application.png differ
diff --git a/filemin/images/icons/mime/opera-widget.png b/filemin/images/icons/mime/opera-widget.png
new file mode 100644
index 000000000..ce5fac3e8
Binary files /dev/null and b/filemin/images/icons/mime/opera-widget.png differ
diff --git a/filemin/images/icons/mime/package-x-generic.png b/filemin/images/icons/mime/package-x-generic.png
new file mode 100644
index 000000000..7b3b4ff3c
Binary files /dev/null and b/filemin/images/icons/mime/package-x-generic.png differ
diff --git a/filemin/images/icons/mime/package.png b/filemin/images/icons/mime/package.png
new file mode 120000
index 000000000..2fe2c970e
--- /dev/null
+++ b/filemin/images/icons/mime/package.png
@@ -0,0 +1 @@
+./package-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/package_editors.png b/filemin/images/icons/mime/package_editors.png
new file mode 120000
index 000000000..b0af6e619
--- /dev/null
+++ b/filemin/images/icons/mime/package_editors.png
@@ -0,0 +1 @@
+./text-plain.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/package_wordprocessing.png b/filemin/images/icons/mime/package_wordprocessing.png
new file mode 120000
index 000000000..e8f4bb836
--- /dev/null
+++ b/filemin/images/icons/mime/package_wordprocessing.png
@@ -0,0 +1 @@
+./x-office-document.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/pdf.png b/filemin/images/icons/mime/pdf.png
new file mode 120000
index 000000000..efcfeb69a
--- /dev/null
+++ b/filemin/images/icons/mime/pdf.png
@@ -0,0 +1 @@
+./application-pdf.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/phatch-actionlist.png b/filemin/images/icons/mime/phatch-actionlist.png
new file mode 100644
index 000000000..33cc96113
Binary files /dev/null and b/filemin/images/icons/mime/phatch-actionlist.png differ
diff --git a/filemin/images/icons/mime/playlist-automatic.png b/filemin/images/icons/mime/playlist-automatic.png
new file mode 120000
index 000000000..c50e7c038
--- /dev/null
+++ b/filemin/images/icons/mime/playlist-automatic.png
@@ -0,0 +1 @@
+./text-x-makefile.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/playlist.png b/filemin/images/icons/mime/playlist.png
new file mode 120000
index 000000000..e0f2a6236
--- /dev/null
+++ b/filemin/images/icons/mime/playlist.png
@@ -0,0 +1 @@
+./audio-x-mp3-playlist.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/rpm.png b/filemin/images/icons/mime/rpm.png
new file mode 100644
index 000000000..81acd6147
Binary files /dev/null and b/filemin/images/icons/mime/rpm.png differ
diff --git a/filemin/images/icons/mime/shellscript.png b/filemin/images/icons/mime/shellscript.png
new file mode 120000
index 000000000..d9b84cc07
--- /dev/null
+++ b/filemin/images/icons/mime/shellscript.png
@@ -0,0 +1 @@
+./text-x-script.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/sound.png b/filemin/images/icons/mime/sound.png
new file mode 120000
index 000000000..07538eb6a
--- /dev/null
+++ b/filemin/images/icons/mime/sound.png
@@ -0,0 +1 @@
+./audio-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/source-playlist.png b/filemin/images/icons/mime/source-playlist.png
new file mode 120000
index 000000000..e0f2a6236
--- /dev/null
+++ b/filemin/images/icons/mime/source-playlist.png
@@ -0,0 +1 @@
+./audio-x-mp3-playlist.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/source-smart-playlist.png b/filemin/images/icons/mime/source-smart-playlist.png
new file mode 120000
index 000000000..c50e7c038
--- /dev/null
+++ b/filemin/images/icons/mime/source-smart-playlist.png
@@ -0,0 +1 @@
+./text-x-makefile.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/spreadsheet.png b/filemin/images/icons/mime/spreadsheet.png
new file mode 120000
index 000000000..7386bf79a
--- /dev/null
+++ b/filemin/images/icons/mime/spreadsheet.png
@@ -0,0 +1 @@
+./x-office-spreadsheet.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/stock_addressbook.png b/filemin/images/icons/mime/stock_addressbook.png
new file mode 120000
index 000000000..cffbd0f63
--- /dev/null
+++ b/filemin/images/icons/mime/stock_addressbook.png
@@ -0,0 +1 @@
+./x-office-address-book.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/stock_calendar.png b/filemin/images/icons/mime/stock_calendar.png
new file mode 120000
index 000000000..6ce3209f5
--- /dev/null
+++ b/filemin/images/icons/mime/stock_calendar.png
@@ -0,0 +1 @@
+./vcalendar.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/stock_script.png b/filemin/images/icons/mime/stock_script.png
new file mode 120000
index 000000000..4d0255b78
--- /dev/null
+++ b/filemin/images/icons/mime/stock_script.png
@@ -0,0 +1 @@
+./text-x-source.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/svg.png b/filemin/images/icons/mime/svg.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/svg.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/tar.png b/filemin/images/icons/mime/tar.png
new file mode 120000
index 000000000..12851c1ca
--- /dev/null
+++ b/filemin/images/icons/mime/tar.png
@@ -0,0 +1 @@
+./application-x-tar.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/template_source.png b/filemin/images/icons/mime/template_source.png
new file mode 120000
index 000000000..4694876af
--- /dev/null
+++ b/filemin/images/icons/mime/template_source.png
@@ -0,0 +1 @@
+./text-x-generic-template.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-css.png b/filemin/images/icons/mime/text-css.png
new file mode 100644
index 000000000..8450f3aef
Binary files /dev/null and b/filemin/images/icons/mime/text-css.png differ
diff --git a/filemin/images/icons/mime/text-enriched.png b/filemin/images/icons/mime/text-enriched.png
new file mode 120000
index 000000000..cb444cc4f
--- /dev/null
+++ b/filemin/images/icons/mime/text-enriched.png
@@ -0,0 +1 @@
+./text-richtext.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-html.png b/filemin/images/icons/mime/text-html.png
new file mode 100644
index 000000000..a56f11ddb
Binary files /dev/null and b/filemin/images/icons/mime/text-html.png differ
diff --git a/filemin/images/icons/mime/text-htmlh.png b/filemin/images/icons/mime/text-htmlh.png
new file mode 120000
index 000000000..420d440fd
--- /dev/null
+++ b/filemin/images/icons/mime/text-htmlh.png
@@ -0,0 +1 @@
+./text-html.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-mht.png b/filemin/images/icons/mime/text-mht.png
new file mode 120000
index 000000000..420d440fd
--- /dev/null
+++ b/filemin/images/icons/mime/text-mht.png
@@ -0,0 +1 @@
+./text-html.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-plain.png b/filemin/images/icons/mime/text-plain.png
new file mode 100644
index 000000000..3c8262dbc
Binary files /dev/null and b/filemin/images/icons/mime/text-plain.png differ
diff --git a/filemin/images/icons/mime/text-richtext.png b/filemin/images/icons/mime/text-richtext.png
new file mode 100644
index 000000000..302fa0eaf
Binary files /dev/null and b/filemin/images/icons/mime/text-richtext.png differ
diff --git a/filemin/images/icons/mime/text-spreadsheet.png b/filemin/images/icons/mime/text-spreadsheet.png
new file mode 120000
index 000000000..7386bf79a
--- /dev/null
+++ b/filemin/images/icons/mime/text-spreadsheet.png
@@ -0,0 +1 @@
+./x-office-spreadsheet.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-authors.png b/filemin/images/icons/mime/text-x-authors.png
new file mode 120000
index 000000000..d3e8e4660
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-authors.png
@@ -0,0 +1 @@
+./authors.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-bak.png b/filemin/images/icons/mime/text-x-bak.png
new file mode 100644
index 000000000..9a3995286
Binary files /dev/null and b/filemin/images/icons/mime/text-x-bak.png differ
diff --git a/filemin/images/icons/mime/text-x-bibtex.png b/filemin/images/icons/mime/text-x-bibtex.png
new file mode 100644
index 000000000..49513e191
Binary files /dev/null and b/filemin/images/icons/mime/text-x-bibtex.png differ
diff --git a/filemin/images/icons/mime/text-x-c++.png b/filemin/images/icons/mime/text-x-c++.png
new file mode 100644
index 000000000..3a164c77e
Binary files /dev/null and b/filemin/images/icons/mime/text-x-c++.png differ
diff --git a/filemin/images/icons/mime/text-x-c++hdr.png b/filemin/images/icons/mime/text-x-c++hdr.png
new file mode 100644
index 000000000..59e04a801
Binary files /dev/null and b/filemin/images/icons/mime/text-x-c++hdr.png differ
diff --git a/filemin/images/icons/mime/text-x-c++src.png b/filemin/images/icons/mime/text-x-c++src.png
new file mode 120000
index 000000000..125d8d0c1
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-c++src.png
@@ -0,0 +1 @@
+./text-x-c++.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-c.png b/filemin/images/icons/mime/text-x-c.png
new file mode 100644
index 000000000..20639be45
Binary files /dev/null and b/filemin/images/icons/mime/text-x-c.png differ
diff --git a/filemin/images/icons/mime/text-x-changelog.png b/filemin/images/icons/mime/text-x-changelog.png
new file mode 100644
index 000000000..c60976dae
Binary files /dev/null and b/filemin/images/icons/mime/text-x-changelog.png differ
diff --git a/filemin/images/icons/mime/text-x-chdr.png b/filemin/images/icons/mime/text-x-chdr.png
new file mode 100644
index 000000000..7ba6df388
Binary files /dev/null and b/filemin/images/icons/mime/text-x-chdr.png differ
diff --git a/filemin/images/icons/mime/text-x-copying.png b/filemin/images/icons/mime/text-x-copying.png
new file mode 100644
index 000000000..2a1275c42
Binary files /dev/null and b/filemin/images/icons/mime/text-x-copying.png differ
diff --git a/filemin/images/icons/mime/text-x-credits.png b/filemin/images/icons/mime/text-x-credits.png
new file mode 120000
index 000000000..d3e8e4660
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-credits.png
@@ -0,0 +1 @@
+./authors.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-csrc.png b/filemin/images/icons/mime/text-x-csrc.png
new file mode 120000
index 000000000..bc9c92b6f
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-csrc.png
@@ -0,0 +1 @@
+./text-x-c.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-css.png b/filemin/images/icons/mime/text-x-css.png
new file mode 120000
index 000000000..4281e7a6a
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-css.png
@@ -0,0 +1 @@
+./text-css.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-generic-template.png b/filemin/images/icons/mime/text-x-generic-template.png
new file mode 100644
index 000000000..f14091505
Binary files /dev/null and b/filemin/images/icons/mime/text-x-generic-template.png differ
diff --git a/filemin/images/icons/mime/text-x-generic.png b/filemin/images/icons/mime/text-x-generic.png
new file mode 120000
index 000000000..b0af6e619
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-generic.png
@@ -0,0 +1 @@
+./text-plain.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-install.png b/filemin/images/icons/mime/text-x-install.png
new file mode 100644
index 000000000..ca934aabc
Binary files /dev/null and b/filemin/images/icons/mime/text-x-install.png differ
diff --git a/filemin/images/icons/mime/text-x-java-source.png b/filemin/images/icons/mime/text-x-java-source.png
new file mode 120000
index 000000000..57c8edb78
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-java-source.png
@@ -0,0 +1 @@
+./text-x-java.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-java.png b/filemin/images/icons/mime/text-x-java.png
new file mode 100644
index 000000000..6deb48cd3
Binary files /dev/null and b/filemin/images/icons/mime/text-x-java.png differ
diff --git a/filemin/images/icons/mime/text-x-javascript.png b/filemin/images/icons/mime/text-x-javascript.png
new file mode 100644
index 000000000..ae94b7a17
Binary files /dev/null and b/filemin/images/icons/mime/text-x-javascript.png differ
diff --git a/filemin/images/icons/mime/text-x-makefile.png b/filemin/images/icons/mime/text-x-makefile.png
new file mode 100644
index 000000000..9d38a4d13
Binary files /dev/null and b/filemin/images/icons/mime/text-x-makefile.png differ
diff --git a/filemin/images/icons/mime/text-x-preview.png b/filemin/images/icons/mime/text-x-preview.png
new file mode 120000
index 000000000..14f143c1a
--- /dev/null
+++ b/filemin/images/icons/mime/text-x-preview.png
@@ -0,0 +1 @@
+./empty.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/text-x-python.png b/filemin/images/icons/mime/text-x-python.png
new file mode 100644
index 000000000..3f772f278
Binary files /dev/null and b/filemin/images/icons/mime/text-x-python.png differ
diff --git a/filemin/images/icons/mime/text-x-readme.png b/filemin/images/icons/mime/text-x-readme.png
new file mode 100644
index 000000000..2bfad6f28
Binary files /dev/null and b/filemin/images/icons/mime/text-x-readme.png differ
diff --git a/filemin/images/icons/mime/text-x-script.png b/filemin/images/icons/mime/text-x-script.png
new file mode 100644
index 000000000..c917f23cf
Binary files /dev/null and b/filemin/images/icons/mime/text-x-script.png differ
diff --git a/filemin/images/icons/mime/text-x-source.png b/filemin/images/icons/mime/text-x-source.png
new file mode 100644
index 000000000..fde0f6100
Binary files /dev/null and b/filemin/images/icons/mime/text-x-source.png differ
diff --git a/filemin/images/icons/mime/text-x-sql.png b/filemin/images/icons/mime/text-x-sql.png
new file mode 100644
index 000000000..a26d53832
Binary files /dev/null and b/filemin/images/icons/mime/text-x-sql.png differ
diff --git a/filemin/images/icons/mime/text-x-tex.png b/filemin/images/icons/mime/text-x-tex.png
new file mode 100644
index 000000000..93c06ad75
Binary files /dev/null and b/filemin/images/icons/mime/text-x-tex.png differ
diff --git a/filemin/images/icons/mime/text-xhtml+xml.png b/filemin/images/icons/mime/text-xhtml+xml.png
new file mode 100644
index 000000000..a56f11ddb
Binary files /dev/null and b/filemin/images/icons/mime/text-xhtml+xml.png differ
diff --git a/filemin/images/icons/mime/text-xml.png b/filemin/images/icons/mime/text-xml.png
new file mode 100644
index 000000000..8ac3f7be4
Binary files /dev/null and b/filemin/images/icons/mime/text-xml.png differ
diff --git a/filemin/images/icons/mime/txt.png b/filemin/images/icons/mime/txt.png
new file mode 120000
index 000000000..b0af6e619
--- /dev/null
+++ b/filemin/images/icons/mime/txt.png
@@ -0,0 +1 @@
+./text-plain.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/txt2.png b/filemin/images/icons/mime/txt2.png
new file mode 120000
index 000000000..b0af6e619
--- /dev/null
+++ b/filemin/images/icons/mime/txt2.png
@@ -0,0 +1 @@
+./text-plain.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/unknown.png b/filemin/images/icons/mime/unknown.png
new file mode 100644
index 000000000..fdc035611
Binary files /dev/null and b/filemin/images/icons/mime/unknown.png differ
diff --git a/filemin/images/icons/mime/vcalendar.png b/filemin/images/icons/mime/vcalendar.png
new file mode 100644
index 000000000..79a25deae
Binary files /dev/null and b/filemin/images/icons/mime/vcalendar.png differ
diff --git a/filemin/images/icons/mime/video-mpeg.png b/filemin/images/icons/mime/video-mpeg.png
new file mode 120000
index 000000000..2fcfee7c5
--- /dev/null
+++ b/filemin/images/icons/mime/video-mpeg.png
@@ -0,0 +1 @@
+video-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/video-x-generic.png b/filemin/images/icons/mime/video-x-generic.png
new file mode 100644
index 000000000..707be3cbb
Binary files /dev/null and b/filemin/images/icons/mime/video-x-generic.png differ
diff --git a/filemin/images/icons/mime/video.png b/filemin/images/icons/mime/video.png
new file mode 120000
index 000000000..389951fca
--- /dev/null
+++ b/filemin/images/icons/mime/video.png
@@ -0,0 +1 @@
+./video-x-generic.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/vnd.oasis.opendocument.drawing.png b/filemin/images/icons/mime/vnd.oasis.opendocument.drawing.png
new file mode 120000
index 000000000..3abc35929
--- /dev/null
+++ b/filemin/images/icons/mime/vnd.oasis.opendocument.drawing.png
@@ -0,0 +1 @@
+./x-office-drawing.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/wordprocessing.png b/filemin/images/icons/mime/wordprocessing.png
new file mode 120000
index 000000000..e8f4bb836
--- /dev/null
+++ b/filemin/images/icons/mime/wordprocessing.png
@@ -0,0 +1 @@
+./x-office-document.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/www.png b/filemin/images/icons/mime/www.png
new file mode 120000
index 000000000..420d440fd
--- /dev/null
+++ b/filemin/images/icons/mime/www.png
@@ -0,0 +1 @@
+./text-html.png
\ No newline at end of file
diff --git a/filemin/images/icons/mime/x-dia-diagram.png b/filemin/images/icons/mime/x-dia-diagram.png
new file mode 100644
index 000000000..a0da165b3
Binary files /dev/null and b/filemin/images/icons/mime/x-dia-diagram.png differ
diff --git a/filemin/images/icons/mime/x-office-address-book.png b/filemin/images/icons/mime/x-office-address-book.png
new file mode 100644
index 000000000..649198d08
Binary files /dev/null and b/filemin/images/icons/mime/x-office-address-book.png differ
diff --git a/filemin/images/icons/mime/x-office-document.png b/filemin/images/icons/mime/x-office-document.png
new file mode 100644
index 000000000..f2969edb3
Binary files /dev/null and b/filemin/images/icons/mime/x-office-document.png differ
diff --git a/filemin/images/icons/mime/x-office-drawing.png b/filemin/images/icons/mime/x-office-drawing.png
new file mode 100644
index 000000000..1bc71abd3
Binary files /dev/null and b/filemin/images/icons/mime/x-office-drawing.png differ
diff --git a/filemin/images/icons/mime/x-office-presentation.png b/filemin/images/icons/mime/x-office-presentation.png
new file mode 100644
index 000000000..8edc53912
Binary files /dev/null and b/filemin/images/icons/mime/x-office-presentation.png differ
diff --git a/filemin/images/icons/mime/x-office-spreadsheet.png b/filemin/images/icons/mime/x-office-spreadsheet.png
new file mode 100644
index 000000000..bbf8796cd
Binary files /dev/null and b/filemin/images/icons/mime/x-office-spreadsheet.png differ
diff --git a/filemin/images/icons/mime/zip.png b/filemin/images/icons/mime/zip.png
new file mode 120000
index 000000000..37ebc443f
--- /dev/null
+++ b/filemin/images/icons/mime/zip.png
@@ -0,0 +1 @@
+./application-x-zip.png
\ No newline at end of file
diff --git a/filemin/images/icons/quick/bookmark-new.png b/filemin/images/icons/quick/bookmark-new.png
new file mode 100644
index 000000000..832cc8a57
Binary files /dev/null and b/filemin/images/icons/quick/bookmark-new.png differ
diff --git a/filemin/images/icons/quick/browse.png b/filemin/images/icons/quick/browse.png
new file mode 100644
index 000000000..f9fd372e3
Binary files /dev/null and b/filemin/images/icons/quick/browse.png differ
diff --git a/filemin/images/icons/quick/chmod.png b/filemin/images/icons/quick/chmod.png
new file mode 100644
index 000000000..8363b33ff
Binary files /dev/null and b/filemin/images/icons/quick/chmod.png differ
diff --git a/filemin/images/icons/quick/chown.png b/filemin/images/icons/quick/chown.png
new file mode 100644
index 000000000..ad1ab7550
Binary files /dev/null and b/filemin/images/icons/quick/chown.png differ
diff --git a/filemin/images/icons/quick/compress.png b/filemin/images/icons/quick/compress.png
new file mode 100644
index 000000000..5bd7d52d3
Binary files /dev/null and b/filemin/images/icons/quick/compress.png differ
diff --git a/filemin/images/icons/quick/document-new.png b/filemin/images/icons/quick/document-new.png
new file mode 100644
index 000000000..c13709b11
Binary files /dev/null and b/filemin/images/icons/quick/document-new.png differ
diff --git a/filemin/images/icons/quick/drive-harddisk.png b/filemin/images/icons/quick/drive-harddisk.png
new file mode 100644
index 000000000..0e6a85e5f
Binary files /dev/null and b/filemin/images/icons/quick/drive-harddisk.png differ
diff --git a/filemin/images/icons/quick/edit-copy.png b/filemin/images/icons/quick/edit-copy.png
new file mode 100644
index 000000000..9834bfb25
Binary files /dev/null and b/filemin/images/icons/quick/edit-copy.png differ
diff --git a/filemin/images/icons/quick/edit-cut.png b/filemin/images/icons/quick/edit-cut.png
new file mode 100644
index 000000000..bd1558871
Binary files /dev/null and b/filemin/images/icons/quick/edit-cut.png differ
diff --git a/filemin/images/icons/quick/edit-find.png b/filemin/images/icons/quick/edit-find.png
new file mode 100644
index 000000000..cab3b274b
Binary files /dev/null and b/filemin/images/icons/quick/edit-find.png differ
diff --git a/filemin/images/icons/quick/edit-paste.png b/filemin/images/icons/quick/edit-paste.png
new file mode 100644
index 000000000..3562d6206
Binary files /dev/null and b/filemin/images/icons/quick/edit-paste.png differ
diff --git a/filemin/images/icons/quick/edit.png b/filemin/images/icons/quick/edit.png
new file mode 100644
index 000000000..ab52446d2
Binary files /dev/null and b/filemin/images/icons/quick/edit.png differ
diff --git a/filemin/images/icons/quick/extract.png b/filemin/images/icons/quick/extract.png
new file mode 100644
index 000000000..b07e2e682
Binary files /dev/null and b/filemin/images/icons/quick/extract.png differ
diff --git a/filemin/images/icons/quick/folder-new.png b/filemin/images/icons/quick/folder-new.png
new file mode 100644
index 000000000..54463fa49
Binary files /dev/null and b/filemin/images/icons/quick/folder-new.png differ
diff --git a/filemin/images/icons/quick/from-url.png b/filemin/images/icons/quick/from-url.png
new file mode 100644
index 000000000..a15d57836
Binary files /dev/null and b/filemin/images/icons/quick/from-url.png differ
diff --git a/filemin/images/icons/quick/go-down.png b/filemin/images/icons/quick/go-down.png
new file mode 100644
index 000000000..335378947
Binary files /dev/null and b/filemin/images/icons/quick/go-down.png differ
diff --git a/filemin/images/icons/quick/go-next.png b/filemin/images/icons/quick/go-next.png
new file mode 100644
index 000000000..299d5a973
Binary files /dev/null and b/filemin/images/icons/quick/go-next.png differ
diff --git a/filemin/images/icons/quick/invert.png b/filemin/images/icons/quick/invert.png
new file mode 100644
index 000000000..7543d1bfb
Binary files /dev/null and b/filemin/images/icons/quick/invert.png differ
diff --git a/filemin/images/icons/quick/remove.png b/filemin/images/icons/quick/remove.png
new file mode 100644
index 000000000..884d47336
Binary files /dev/null and b/filemin/images/icons/quick/remove.png differ
diff --git a/filemin/images/icons/quick/rename.png b/filemin/images/icons/quick/rename.png
new file mode 100644
index 000000000..190400a90
Binary files /dev/null and b/filemin/images/icons/quick/rename.png differ
diff --git a/filemin/images/icons/quick/select-all.png b/filemin/images/icons/quick/select-all.png
new file mode 100644
index 000000000..d0562c466
Binary files /dev/null and b/filemin/images/icons/quick/select-all.png differ
diff --git a/filemin/images/icons/quick/upload.png b/filemin/images/icons/quick/upload.png
new file mode 100644
index 000000000..210345890
Binary files /dev/null and b/filemin/images/icons/quick/upload.png differ
diff --git a/filemin/index.cgi b/filemin/index.cgi
new file mode 100644
index 000000000..bd3c5334b
--- /dev/null
+++ b/filemin/index.cgi
@@ -0,0 +1,61 @@
+#!/usr/bin/perl
+# File manager written in perl
+
+#$unsafe_index_cgi = 1;
+require './filemin-lib.pl';
+use lib './lib';
+use File::MimeInfo;
+#use File::Basename;
+
+&ReadParse();
+
+get_paths();
+
+unless (opendir ( DIR, $cwd )) {
+ $path="";
+ print_errors("$text{'error_opendir'} $cwd $!");
+} else {
+ &ui_print_header(undef, "Filemin", "", undef, 0 , 0, 0, "$text{'module_config'}");
+
+##########################################
+#---------LET DA BRAINF###ING BEGIN----------
+ # Push file names with full paths to array, filtering out "." and ".."
+ @list = map { &simplify_path("$cwd/$_") } grep { $_ ne '.' && $_ ne '..' } readdir(DIR);
+ closedir(DIR);
+
+ # Filter out not allowed entries
+ if($remote_user_info[0] ne 'root' && $allowed_paths[0] ne '$ROOT') {
+ # Leave only allowed
+ for $path (@allowed_paths) {
+ my $slashed = $path;
+ $slashed .= "/" if ($slashed !~ /\/$/);
+ push @tmp_list, grep { $slashed =~ /^$_\// ||
+ $_ =~ /$slashed/ } @list;
+ }
+ # Remove duplicates
+ my %hash = map { $_, 1 } @tmp_list;
+ @list = keys %hash;
+ }
+ # Get info about directory entries
+ @info = map { [ $_, stat($_), mimetype($_), -d $_ ] } @list;
+
+ # Filter out folders
+ @folders = map {$_} grep {$_->[15] == 1 } @info;
+
+ # Filter out files
+ @files = map {$_} grep {$_->[15] != 1 } @info;
+
+ # Sort stuff by name
+ @folders = sort { $a->[0] cmp $b->[0] } @folders;
+ @files = sort { $a->[0] cmp $b->[0] } @files;
+
+ # Recreate list
+ undef(@list);
+ push @list, @folders, @files;
+
+#########################################
+
+ print_interface();
+
+ &ui_print_footer("/", $text{'index'});
+}
diff --git a/filemin/lang/ca b/filemin/lang/ca
new file mode 100644
index 000000000..f99b6337f
--- /dev/null
+++ b/filemin/lang/ca
@@ -0,0 +1,138 @@
+index=Índex
+error_opendir=Error en obrir el directori
+error_creating_conf=Error en crear el directori de contiguració
+select_all=Selecciona-ho Tot
+invert_selection=Inverteix la Selecció
+copy_selected=Copia la Selecció
+cut_selected=Retalla la Selecció
+paste=Enganxa
+create_folder=Crea una Carpeta
+create_file=Crea un Fitxer
+compress_selected=Comprimeix la Selecció
+chmod_selected=Executa chmod sobre la Selecció
+chown_selected=Executa chown sobre la Selecció
+remove_selected=Elimina la Selecció
+browse_for_upload=Explora per a Pujar
+upload_files=Puja Fitxers
+get_from_url=Obtingues d'un URL
+bookmark_folder=Marca la carpeta actual com a preferida
+name=Nom
+type=Tipus
+actions=Accions
+size=Mida
+owner_user=Usuari
+owner_group=Grup
+permissions=Permisos
+last_mod_time=Modificat
+rename=Reanomena
+edit=Edita
+extract_archive=Extreu l'Arxiu
+edit_file=Edita el fitxer
+save=Desa
+save_close=Desa i tanca
+delete=Suprimeix
+save_file=Desa el fitxer
+previous_page=pàgina anterior
+count_uploads=fixer(s) selecccionats per pujar
+error_title=Error!!!
+warning_title=Atenció!!!
+nothing_selected=No hi ha res seleccionat
+error_load_template=Error en carregar el fitxer de plantilla
+create=Crea
+new_folder_name=Nom de la nomva carpeta
+new_file_name=Nom del nou fitxer
+new_name=Nou nom
+dialog_ok=Bé
+dialog_cancel=Cancel·la
+archive_name=Nom de l'arxiu
+dialog_compress=Comprimeix
+about_to_delete=Estàs a punt de suprimir els fitxers següent:
+are_you_sure=Segur que ho vols fer?
+user_name=Usuari
+group_name=Grup
+dialog_change=Canvia
+chmod_owner=Usuari
+chmod_group=Grup
+chmod_others=Altres
+chmod_read=Lectura
+chmod_write=Escriptura
+chmod_execute=Execució
+chmod_sticky=Bit enganxós
+chmod_setgid=Setgid
+chmod_additional=Addicional
+chmod_apply_to=Aplica-ho a
+chmod_dir_only=Només als directoris i fitxers seleccionats
+chmod_dir_and_its_files=Als directoris i fitxers seleccionats, i als fitxers dins dels directoris seleccionats
+chmod_all=Tot (recursiu)
+chmod_dir_files_and_subs_files=Als fitxers seleccionats i als fitxers dins dels directoris i subdirectoris seleccionats
+chmod_dir_and_subs=Als directoris i subdirectoris seleccionats
+dialog_file_url=URL del fitxer a descarregar
+dialog_user_name=Usuari del servidor remot (si cal)
+dialog_user_pass=Contrasenya del servidor remot (si cal)
+dialog_download=Descarrega
+error_invalid_uri=Error: No has donat un URL vàlid!!!
+file_already_exists=ja existeix a
+files_ready_for_upload=Visualitza els fitxers seleccionats
+errors_occured=S0'han produït els següents errors en executar l'operació
+error_pasting_nonsence=Enganzar sobre el mateix directori no té sentit
+error_exists=ja existeix, ometent
+error_copy=la còpia ha fallat amb l'error:
+error_cut=el desplaçament ha fallat amb l'error:
+error_create=no s'ha pogut crear:
+error_rename=No s'ha pogut reanomenar
+error_chmod=No s'han pogut canviar els permisos
+error_chown=No s'ha pogut canviar el propietari
+error_delete=No s'ha pogut suprimir
+error_user_not_found=no s'ha trobat l'usuari al sistema
+error_group_not_found=no existeix el grup al sistema
+error_archive_type_not_supported= tipus d'arxiu encara no suportat
+error_opening_file_for_writing=No s'ha pogut obrir el fitxer per escriure-hi:
+error_writing_file=Error en gravar el fitxer:
+error_numeric=ha de ser numèric!
+error_saving_file=Error en desar el fitxer
+hint_copy=Copia els fitxers i les carpetes seleccionades al buffer
+hint_cut=Retalla els fitxers i les carpetes seleccionades al buffer
+hint_paste=Enganxa els fitxers i carpetes del buffer al directori actual
+hint_create_folder=Crea una nova carpeta al directori actual
+hint_create_file=Crea un nou fitxer al directori actual
+hint_compress=Comprimeix els fitxers i carpetes seleccionats a un arxiu tar.gz
+hint_chmod=Canvia els permisos dels fitxers i carpetes seleccionats
+hint_chown=Canvia el propietari dels fitxers i carpetes seleccionats
+hint_remove=Elimina els fitxers i carpetes seleccionats
+hint_upload=Puja els fitxers al directori actual
+hint_from_url=Obté el fitxer d'un URL remot
+provide_folder_name=Proporciona el nom de la carpeta
+provide_file_name=Proporciona el nom del fitxer
+provide_user_name=Proporciona el nom de l'usuari
+provide_group_name=Proporciona el nom del grup
+provide_url=Proporciona l'URL del fitxer remote
+provide_new_file_name=Proporciona un nou nom de fitxer
+provide_search_query=Proporciona una consulta de cerca
+dialog_recursive=Recursiu
+refresh=Refresca
+http_downloading=S'està descarregant
+uploading=S'està pujant, espera si et plau...
+acl_allowed_paths=Permet l'accés als directoris
+acl_work_as=Accedeix als fitxers com l'usuari Unix
+acl_root=Root (compte amb els usuaris no fiables!)
+acl_same=Mateix de l'usuari Webmin
+acl_user=Usuari Unix específic
+acl_euser=L'usuari Unix seleccionat no existeix!
+acl_epath=El camí $1 no existeix
+search=Cerca
+search_label=Consulta de cerca
+search_go=Fot-li canya, nena!
+search_results=Resultas de la cerca per a
+goto_folder=Ves a la carpeta contenidora
+module_config=Configuració del mòdul
+config_columns_to_display=Columnes a mostrar
+config_per_page=Ítems a mostrar per pàgina (només per a temes antics)
+config_disable_pagination=Desactiva la paginació (només per a usuaris del Tema Autèntic)
+config_toolbar_style=Estableix l'estil de la barra d'eines al d'una vista de menú, amb desplegables... i galetes (només per a usuaris del Tema Autèntic)
+config_bookmarks=Preferits
+no_bookmarks=Encara no hi ha cap preferit
+menu_file=Fitxer
+menu_edit=Edita
+menu_tools=Eines
+menu_bookmarks=Preferits
+notallowed=No tens permís per accedir a $1. Els directoris permesos són: $2
diff --git a/filemin/lang/de.UTF-8 b/filemin/lang/de.UTF-8
new file mode 100644
index 000000000..da190c980
--- /dev/null
+++ b/filemin/lang/de.UTF-8
@@ -0,0 +1,138 @@
+index=Index
+error_opendir=Fehler beim Öffnen des Verzeichnisses
+error_creating_conf=Fehler beim Erstellen des Konfigurationsverzeichnisses
+select_all=Alle auswählen
+invert_selection=Auswahl umkehren
+copy_selected=Ausgewählte Objekte kopieren
+cut_selected=Ausgewählte Objekte ausschneiden
+paste=Einfügen
+create_folder=Ordner erstellen
+create_file=Datei erstellen
+compress_selected=Komprimiere gewählte Objekte
+chmod_selected=Chmod gewählte Objekte
+chown_selected=Chown gewählte Objekte
+remove_selected=Lösche gewählte Objekte
+browse_for_upload=Durchsuchen zum Hochladen
+upload_files=Dateien hochladen
+get_from_url=Herunterladen von URL
+bookmark_folder=Setze Lesezeichen für aktuellen Ordner
+name=Name
+type=Typ
+actions=Aktionen
+size=Größe
+owner_user=Benutzer
+owner_group=Gruppe
+permissions=Rechte
+last_mod_time=Letzte Änderung
+rename=Umbenennen
+edit=Bearbeiten
+extract_archive=Extrahiere Archiv
+edit_file=Bearbeite Datei
+save=Speichern
+save_close=Speichern und schließen
+delete=Löschen
+save_file=Datei speichern
+previous_page=vorherigen Seite
+count_uploads=Datei(en) ausgewählt zum Hochladen
+error_title=Fehler!!!
+warning_title=Warnung!!!
+nothing_selected=Nichts ausgewählt
+error_load_template=Fehler beim Laden der Template-Datei
+create=Erstelle
+new_folder_name=Neuer Ordnername
+new_file_name=Neuer Dateiname
+new_name=Neuer Name
+dialog_ok=OK
+dialog_cancel=Abbrechen
+archive_name=Archivname
+dialog_compress=Komprimieren
+about_to_delete=Sie sind dabei, folgendes zu löschen:
+are_you_sure=Sind Sie sicher?
+user_name=Benutzername
+group_name=Gruppenname
+dialog_change=Ändere
+chmod_owner=Benutzer
+chmod_group=Gruppe
+chmod_others=Andere
+chmod_read=Lesen
+chmod_write=Schreiben
+chmod_execute=Ausführen
+chmod_sticky=Sticky bit
+chmod_setgid=Setgid
+chmod_additional=Zusätzlich
+chmod_apply_to=Anwenden auf
+chmod_dir_only=Nur ausgewählte Verzeichnisse und Dateien
+chmod_dir_and_its_files=Ausgewählte Dateien und Verzeichnisse und Dateien in ausgewählten Verzeichnissen
+chmod_all=Alle (rekursiv)
+chmod_dir_files_and_subs_files=Ausgewählte Dateien und Dateien in ausgewählten Verzeichnissen und Unterverzeichnissen
+chmod_dir_and_subs=Ausgewählte Verzeichnisse und Unterverzeichnisse
+dialog_file_url=URL der Datei zum Herunterladen
+dialog_user_name=Benutzername für entfernten Server (falls erforderlich)
+dialog_user_pass=Passwort für entfernten Server (falls erforderlich)
+dialog_download=Herunterladen
+error_invalid_uri=Fehler: Keine gültige URL angegeben!!!
+file_already_exists=existiert schon in
+files_ready_for_upload=Ausgewählte Dateien:
+errors_occured=Folgende Fehler sind beim Ausführen der Operation aufgetreten
+error_pasting_nonsence=Kopieren in das selbe Verzeichnis macht keinen Sinn
+error_exists=existiert bereits, abgebrochen
+error_copy=kopieren fehlgeschlagen mit Fehler:
+error_cut=verschieben fehlgeschlagen mit Fehler:
+error_create=gescheitert zu erstellen:
+error_rename=gescheitert umzubenennen
+error_chmod=Rechteänderung gescheitert
+error_chown=Gescheitert den Benutzer zu ändern
+error_delete=löschen nicht möglich
+error_user_not_found=Benutzer nicht gefunden in diesen System
+error_group_not_found=Gruppe existiert nicht in diesen System
+error_archive_type_not_supported= Archivtyp noch nicht unterstützt
+error_opening_file_for_writing=Konnte Datei nicht öffnen zum Schreiben:
+error_writing_file=Fehler beim Schreiben der Datei:
+error_numeric=muss nummerisch sein!
+error_saving_file=Fehler beim Speichern der Datei
+hint_copy=Ausgewählte Dateien und Ordner in den Puffer kopieren
+hint_cut=Ausgewählte Dateien und Ordner in den Puffer ausschneiden
+hint_paste=Füge Dateien und Ordner aus dem Puffer in das aktuelle Verzeichnis ein
+hint_create_folder=Erstelle neuen Ordner im aktuellen Verzeichnis
+hint_create_file=Erstelle neue Datei im aktuellen Verzeichnis
+hint_compress=Komprimiere ausgewählte Dateien und Ordner zu einem tar.gz Archiv
+hint_chmod=Ändere die Rechte für die ausgewählten Dateien und Ordner
+hint_chown=Ändere den Benutzer für die ausgewählten Dateien und Ordner
+hint_remove=Lösche ausgewählte Dateien und Ordner
+hint_upload=Dateien hochladen in das aktuelle Verzeichnis
+hint_from_url=Datei herunterladen von entfernter URL
+provide_folder_name=Ordnernamen angeben
+provide_file_name=Dateinamen angeben
+provide_user_name=Benutzernamen angeben
+provide_group_name=Gruppennamen angeben
+provide_url=URL der entfernten Datei angeben
+provide_new_file_name=Neuen Dateinamen angeben
+provide_search_query=Suchanfrage angeben
+dialog_recursive=Rekursiv
+refresh=Neu laden
+http_downloading=Es wird heruntergeladen
+uploading=Hochladen, bitte warten ...
+acl_allowed_paths=Erlaube Zugang zu Verzeichnissen
+acl_work_as=Zugriff auf Dateien als Unix-Benutzer
+acl_root=Root (nicht vertrauenswürdigen Benutzern mit Vorsicht zu gewähren!)
+acl_same=Wie bei Webmin-Login
+acl_user=Spezifischer Unix-Benutzer
+acl_euser=Ausgewählter Unix-Benutzer existiert nicht!
+acl_epath=Pfad $1 existiert nicht
+search=Suche
+search_label=Suchanfrage
+search_go=Shake it, baby!
+search_results=Suchergebnisse für
+goto_folder=Gehe zum enthaltenden Ordner
+module_config=Modul-Konfiguration
+config_columns_to_display=Spalten zum Anzeigen
+config_per_page=Einträge zum Anzeigen pro Seite (nur für alte Themes)
+config_disable_pagination=Seitennummerierung deaktivieren (nur für Authentic Theme-Benutzer)
+config_toolbar_style=Setze 'toolbar style' für Menü, mit Dropdowns ... und Cookies (nur für Authentic Theme-Benutzer)
+config_bookmarks=Lesezeichen
+no_bookmarks=Noch keine Lesezeichen
+menu_file=Datei
+menu_edit=Bearbeite
+menu_tools=Werkzeuge
+menu_bookmarks=Lesezeichen
+notallowed=Sie haben keine Erlaubnis, auf $1 zuzugreifen. Die erlaubten Verzeichnisse sind: $2
\ No newline at end of file
diff --git a/filemin/lang/en b/filemin/lang/en
new file mode 100644
index 000000000..c99836550
--- /dev/null
+++ b/filemin/lang/en
@@ -0,0 +1,145 @@
+index=Index
+error_opendir=Error opening directory
+error_creating_conf=Error creating configuration directory
+select_all=Select All
+invert_selection=Invert Selection
+copy_selected=Copy Selected
+cut_selected=Cut Selected
+paste=Paste
+create_folder=Create Folder
+create_file=Create File
+compress_selected=Compress Selected
+chmod_selected=Chmod Selected
+chown_selected=Chown Selected
+remove_selected=Remove Selected
+browse_for_upload=Browse for Upload
+upload_files=Upload Files
+get_from_url=Get from URL
+bookmark_folder=Bookmark current folder
+name=Name
+type=Type
+actions=Actions
+size=Size
+owner_user=Owner User
+owner_group=Owner Group
+permissions=Permissions
+last_mod_time=Last Modification Time
+rename=Rename
+edit=Edit
+extract_archive=Extract Archive
+edit_file=Edit file
+save=Save
+save_close=Save and close
+delete=Delete
+save_file=Save file
+previous_page=previous page
+count_uploads=file(s) selected for upload
+error_title=Error!!!
+warning_title=Warning!!!
+nothing_selected=Nothing selected
+error_load_template=Error loading template file
+create=Create
+new_folder_name=New folder name
+new_file_name=New file name
+new_name=New name
+dialog_ok=OK
+dialog_cancel=Cancel
+archive_name=Archive name
+dialog_compress=Compress
+about_to_delete=You`re about to delete following items:
+are_you_sure=Are you sure?
+user_name=User name
+group_name=Group name
+dialog_change=Change
+chmod_owner=Owner
+chmod_group=Group
+chmod_others=Others
+chmod_read=Read
+chmod_write=Write
+chmod_execute=Execute
+chmod_sticky=Sticky bit
+chmod_setgid=Setgid
+chmod_additional=Additional
+chmod_apply_to=Apply to
+chmod_dir_only=Selected directories and files only
+chmod_dir_and_its_files=Selected files and directories and files in selected directories
+chmod_all=All (recursive)
+chmod_dir_files_and_subs_files=Selected files and files under selected directories and subdirectories
+chmod_dir_and_subs=Selected directories and subdirectories
+dialog_file_url=URL of file to download
+dialog_user_name=Remote server username(if any required)
+dialog_user_pass=Remote server password(if any required)
+dialog_download=Download
+error_invalid_uri=Error: No valid URL supllied!!!
+file_already_exists=already exists in
+files_ready_for_upload=View selected files
+errors_occured=Following errors occured while performing operation
+error_pasting_nonsence=Pasting to the same directory makes no sense
+error_exists=already exists, skipping
+error_copy=copying failed with error:
+error_cut=moving failed with error:
+error_create=failed to create:
+error_rename=Failed to rename
+error_chmod=Failed to change permissions
+error_chown=Failed to change owner
+error_delete=unable to delete
+error_user_not_found=user not found on this system
+error_group_not_found=group does not exist on this system
+error_archive_type_not_supported= archive type not supported yet
+error_opening_file_for_writing=Could not open file for writing:
+error_writing_file=Error writing file:
+error_numeric=must be numeric!
+error_saving_file=Error saving file
+hint_copy=Copy selected files and folders to buffer
+hint_cut=Cut selected files and folders to buffer
+hint_paste=Paste files and folders from buffer to current directory
+hint_create_folder=Create new folder in the current directory
+hint_create_file=Create new file in the current directory
+hint_compress=Compress selected files and folders to tar.gz archive
+hint_chmod=Change permissions for selected files and folders
+hint_chown=Change owner of selected files and folders
+hint_remove=Remove selected files and folders
+hint_upload=Upload files to the current directory
+hint_from_url=Get file from remote URL
+provide_folder_name=Provide folder name
+provide_file_name=Provide file name
+provide_user_name=Provide user name
+provide_group_name=Provide group name
+provide_url=Provide URL of remote file
+provide_new_file_name=Provide new file name
+provide_search_query=Provide search query
+dialog_recursive=Recursive
+refresh=Refresh
+http_downloading=Downloading
+uploading=Uploading, please wait...
+acl_allowed_paths=Allow access to directories
+acl_allowed_for_edit=Mimetypes allowed for edit by builtin editor
+acl_work_as=Access files as Unix user
+acl_root=Root (grant with care to un-trusted users!)
+acl_same=Same as Webmin login
+acl_user=Specific Unix user
+acl_euser=Selected Unix user does not exist!
+acl_epath=Path $1 does not exist
+acl_max=Maximum size for uploaded files
+acl_unlimited=Unlimited
+acl_bytes=bytes
+search=Search
+search_label=Search query
+search_go=Find
+search_results=Search results for
+search_insensitive=Case insensitive search
+goto_folder=Go to containing folder
+module_config=Module configuration
+config_columns_to_display=Columns to display
+config_per_page=Items to display per page(for old themes only)
+config_disable_pagination=Disable pagination (for Authentic Theme users only)
+config_toolbar_style=Set toolbar style to menu-like view, with dropdowns ... and cookies (for Authentic Theme users only)
+config_bookmarks=Bookmarks
+no_bookmarks=No bookmarks yet
+menu_file=File
+menu_edit=Edit
+menu_tools=Tools
+menu_bookmarks=Bookmarks
+notallowed=You are not allowed to access $1. The allowed directories are : $2
+error_upload_emax=Uploaded file is larger than the limit of $1
+info_total=Total: $1 files and $2 folders
diff --git a/filemin/lang/no b/filemin/lang/no
new file mode 100644
index 000000000..7185af08e
--- /dev/null
+++ b/filemin/lang/no
@@ -0,0 +1,145 @@
+about_to_delete=Du er i ferd med å slette følgende elementer:
+acl_allowed_for_edit=Minetyper tillatt for redigering av innebygd editor
+acl_allowed_paths=Tillatte stier
+acl_bytes=bytes
+acl_epath=Stien $1 finnes ikke
+acl_euser=Valgt Unix bruker finnes ikke!
+acl_max=Maks. størrelse for opplastede filer
+acl_root=Root (vær forsiktig med å gi tilgang til ikke-betrodde brukere!)
+acl_same=Samme som Webmin brukernavn
+acl_unlimited=Ubegrenset
+acl_user=Spesifikk Unix bruker
+acl_work_as=Les filer som Unix bruker
+actions=Handlinger
+archive_name=Arkiv-navn
+are_you_sure=Er du sikker?
+bookmark_folder=Lag bokmerke for gjeldende mappe
+browse_for_upload=Bla gjennom for opplasting
+chmod_additional=Ekstra
+chmod_all=Alle (rekursiv)
+chmod_apply_to=Bruk på
+chmod_dir_and_its_files=Valgte filer og kataloger og filer i valgte kataloger
+chmod_dir_and_subs=Valgte kataloger og underkataloger
+chmod_dir_files_and_subs_files=Valgte filer og filer under valgte kataloger og underkataloger
+chmod_dir_only=Kune valgte kataloger og filer
+chmod_execute=Utfør
+chmod_group=Gruppe
+chmod_others=Andre
+chmod_owner=Eier
+chmod_read=Les
+chmod_selected=Chmod valgte
+chmod_setgid=Setgid
+chmod_sticky=Sticky bit
+chmod_write=Skriv
+chown_selected=Chown valgte
+compress_selected=Komprimer valgte
+config_bookmarks=Bokmerker
+config_columns_to_display=Kolonner som skal vises
+config_disable_pagination=Deaktiver paginering (kun for brukere av Authentic tema)
+config_per_page=Elementer som skal vises per side (kun for gamle temaer)
+config_toolbar_style=Sett verktøylinje-stil til meny-lignende, med nedtrekk... og info.kapsler (kun for brukere av Authentic tema)
+copy_selected=Kopier valgte
+count_uploads=fil(er) valgt for opplasting
+create=Opprett
+create_file=Opprett fil
+create_folder=Opprett mappe
+cut_selected=Klipp ut valgte
+delete=Slett
+dialog_cancel=Avbryt
+dialog_change=Endre
+dialog_compress=Komprimer
+dialog_download=Last ned
+dialog_file_url=URL for fil som skal lastes ned
+dialog_ok=OK
+dialog_recursive=Rekursiv
+dialog_user_name=Brukernavn for ekstern tjener (hvis nødvendig)
+dialog_user_pass=Passord for ekstern tjener (hvis nødvendig)
+edit=Rediger
+edit_file=Rediger fil
+error_archive_type_not_supported=arkivtype støttes ikke enda
+error_chmod=Kunne ikke endre tillatelser
+error_chown=Kunne ikke endre eier
+error_copy=kopiering feilet med feilen:
+error_create=kunne ikke opprette:
+error_creating_conf=Feil ved oppretting av konfigurasjonskatalog
+error_cut=flytting feilet med feilen:
+error_delete=kunne ikke slette
+error_exists=finnes allerede, hopper over
+error_group_not_found=gruppen finnes ikke på dette systemet
+error_invalid_uri=Feil: Ingen gyldig URL angitt!!!
+error_load_template=Feil ved lasting av mal-fil
+error_numeric=må være numerisk!
+error_opendir=Feil ved åpning av katalog
+error_opening_file_for_writing=Kunne ikke åpne fil for skriving:
+error_pasting_nonsence=Å lime inn til samme katalog gir ingen mening
+error_rename=Kunne ikke omdøpe
+error_saving_file=Feil ved lagring av fil
+error_title=Feil!!!
+error_upload_emax=Opplastet fil er større enn grensen på $1
+error_user_not_found=bruker ble ikke funnet på dette systemet
+error_writing_file=Feil ved skriving til fil:
+errors_occured=Følgende feil oppstod under utføring av operasjonen
+extract_archive=Pakk ut arkiv
+file_already_exists=finnes allerede i
+files_ready_for_upload=Vis valgte filer
+get_from_url=Hent fra URL
+goto_folder=Gå til mappen den er i
+group_name=Gruppe-navn
+hint_chmod=Endre tillatelser for valgte filer og mapper
+hint_chown=Endre eier for valgte filer og mapper
+hint_compress=Komprimer valgte filer og mapper til et tar.gz arkiv
+hint_copy=Kopier valgte filer og mapper til buffer
+hint_create_file=Opprett ny fil i aktiv katalog
+hint_create_folder=Opprett ny mappe i aktiv katalog
+hint_cut=Klipp ut valgte filer og mapper til buffer
+hint_from_url=Hent fil fra ekstern URL
+hint_paste=Lim inn filer og mapper fra buffer til gjeldende katalog
+hint_remove=Fjern valgte filer og mapper
+hint_upload=Last opp filer til gjeldende katalog
+http_downloading=Laster ned
+index=Indeks
+info_total=Totalt: $1 filer og $2 mapper
+invert_selection=Inverter valg
+last_mod_time=Sist endret
+menu_bookmarks=Bokmerker
+menu_edit=Rediger
+menu_file=Fil
+menu_tools=Verktøy
+module_config=Modul konfigurasjon
+name=Navn
+new_file_name=Nytt filnavn
+new_folder_name=Nytt mappenavn
+new_name=Nytt navn
+no_bookmarks=Ingen bokmerker enda
+notallowed=Du har ikke tilgang til $1. Tillatte kataloger er: $2
+nothing_selected=Ingen ting valgt
+owner_group=Eier gruppe
+owner_user=Eier bruker
+paste=Lim inn
+permissions=Tillatelser
+previous_page=forrige side
+provide_file_name=Angi filnavn
+provide_folder_name=Angi mappenavn
+provide_group_name=Angi gruppenavn
+provide_new_file_name=Angi nytt filnavn
+provide_search_query=Angi søke-uttrykk
+provide_url=Angi URL til ekstern fil
+provide_user_name=Angi brukernavn
+refresh=Oppfrisk
+remove_selected=Fjern valgte
+rename=Omdøp
+save=Lagre
+save_close=Lagre og lukk
+save_file=Lagre fil
+search=Søk
+search_go=Shake it, baby!
+search_insensitive=Case-insensitivt søk
+search_label=Søke-uttrykk
+search_results=Søkeresultat for
+select_all=Velg alle
+size=Størrelse
+type=Type
+upload_files=Last opp filer
+uploading=Laster opp, vennligst vent...
+user_name=Brukernavn
+warning_title=Advarsel!!!
diff --git a/filemin/lang/ru.UTF-8 b/filemin/lang/ru.UTF-8
new file mode 100644
index 000000000..352ea9351
--- /dev/null
+++ b/filemin/lang/ru.UTF-8
@@ -0,0 +1,135 @@
+about_to_delete=Ð’Ñ‹ выбрали Ñледующие Ñлементы Ð´Ð»Ñ ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸Ñ
+acl_allowed_paths=Разрешенные пути
+acl_allowed_for_edit=Типы файлов резрешённе Ð´Ð»Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ
+acl_work_as_root=Позволить пользователю работать как 'root'. ОПÐСÐО!!!
+actions=ДейÑтвиÑ
+archive_name=Ðазвание архива
+are_you_sure=Вы уверены?
+bookmark_folder=Добавить текущую папку в закладки
+browse_for_upload=Выбрать файлы Ð´Ð»Ñ Ð·Ð°Ð³Ñ€ÑƒÐ·ÐºÐ¸
+chmod_additional=Дополнительно
+chmod_all=Ð’Ñе (рекурÑивно)
+chmod_apply_to=Применить к
+chmod_dir_and_its_files=Выбранные файлы и папки и файлы в выбранных папках
+chmod_dir_and_subs=Выбранные папки и под-папки
+chmod_dir_files_and_subs_files=Выбранные файлы, а так же файлы в выбранных папках и под-папках
+chmod_dir_only=Только выбранные файлы и папки
+chmod_execute=Выполнение
+chmod_group=Группа
+chmod_others=ОÑтальные
+chmod_owner=Владелец
+chmod_read=Чтение
+chmod_selected=Сменить разрешениÑ
+chmod_setgid=Setgid
+chmod_sticky=Sticky bit
+chmod_write=ЗапиÑÑŒ
+chown_selected=Сменить владельца
+compress_selected=Сжать выбранное
+config_bookmarks=Закладки
+config_columns_to_display=Показывать Ñтолбцы
+config_disable_pagination=Отключить разбиение на Ñтраницы (только Ð´Ð»Ñ Authentic Theme)
+config_per_page=КоличеÑтво запиÑей на Ñтранице (только Ð´Ð»Ñ Ñтарых тем)
+config_toolbar_style=Изменить Ñтиль тулбара на меню
+copy_selected=Копировать выбранное
+count_uploads=файл(ов) выбрано Ð´Ð»Ñ Ð·Ð°Ð³Ñ€ÑƒÐ·ÐºÐ¸
+create=Создать
+create_file=Создать файл
+create_folder=Создать папку
+cut_selected=Вырезать в буфер обмена
+delete=Удалить
+dialog_cancel=Отменить
+dialog_change=Изменить
+dialog_compress=Сжать
+dialog_download=Загрузить
+dialog_file_url=СÑылка на файл
+dialog_ok=ОК
+dialog_recursive=РекурÑивно
+dialog_user_name=Ð˜Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð½Ð° удалённом Ñервере
+dialog_user_pass=Пароль Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð½Ð° удалённом Ñервере
+edit=Редактировать
+edit_file=Редактирование файла
+error_archive_type_not_supported=тип архива не поддерживаетÑÑ
+error_chmod=Ðе удалоÑÑŒ Ñменить разрешениÑ
+error_chown=Ðе удалоÑÑŒ Ñменить пользователÑ
+error_copy=копирование завершилоÑÑŒ ошибкой:
+error_create=не удалоÑÑŒ Ñоздать:
+error_creating_conf=Ошибка при Ñоздании папки Ñ Ð½Ð°Ñтройками
+error_cut=перемещение завершилоÑÑŒ ошибкой:
+error_delete=не удалоÑÑŒ удалить
+error_exists=уже ÑущеÑтвует, пропущено
+error_group_not_found=группа не ÑущеÑтвует в ÑиÑтеме
+error_invalid_uri=Ошибка: Ð£ÐºÐ°Ð·Ð°Ð½Ð½Ð°Ñ ÑÑылка не верна!!!
+error_load_template=Ошибка загрузки шаблона
+error_numeric=не ÑвлÑетÑÑ Ñ‡Ð¸Ñлом!
+error_opendir=Ошибка Ð¾Ñ‚ÐºÑ€Ñ‹Ñ‚Ð¸Ñ Ð¿Ð°Ð¿ÐºÐ¸
+error_opening_file_for_writing=Ðе удалоÑÑŒ открыть файл Ð´Ð»Ñ Ð·Ð°Ð¿Ð¸Ñи:
+error_pasting_nonsence=Ð’Ñтавка в ту же директорию не имеет ÑмыÑла
+error_rename=Ðе удалоÑÑŒ переименовать
+error_saving_file=Ошибка ÑÐ¾Ñ…Ñ€Ð°Ð½ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°
+error_title=Ошибка!!!
+error_user_not_found=пользователь не найден в ÑиÑтеме
+error_writing_file=Ошибка запиÑи файла:
+errors_occured=Следующие ошибки произошли во Ð²Ñ€ÐµÐ¼Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¸
+extract_archive=РаÑпаковать архив
+file_already_exists=уже ÑущеÑтвует в
+files_ready_for_upload=ПроÑмотр выбранных файлов
+get_from_url=Загрузить Ñ ÑƒÐ´Ð°Ð»Ñ‘Ð½Ð½Ð¾Ð³Ð¾ Ñервера
+goto_folder=Перейти в папку
+group_name=Ð˜Ð¼Ñ Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹
+hint_chmod=Сменить Ñ€Ð°Ð·Ñ€ÐµÑˆÐµÐ½Ð¸Ñ Ð´Ð»Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ñ‹Ñ… файлов и папок
+hint_chown=Сменить владельца выбранных файлов и папок
+hint_compress=Сжать выбранные файлы и папки в архив tar.gz
+hint_copy=Скопировать выделенные файлы и папки в буфер обмена
+hint_create_file=Создать новый файл в текущей директории
+hint_create_folder=Создать новую папку в текущей директории
+hint_cut=Вырезать выбранные файлы и папки в буфер обмена
+hint_from_url=Скачать файл Ñ URL
+hint_paste=Ð’Ñтавить файлы и папки из буфера обмена в текущую директорию
+hint_remove=Удалить выбранные файлы и папки
+hint_upload=Закачать файлы в текущую директорию
+http_downloading=Загрузка
+index=начало
+invert_selection=Инвертировать выделение
+last_mod_time=Ð’Ñ€ÐµÐ¼Ñ Ð¿Ð¾Ñледней модификации
+menu_bookmarks=Закладки
+menu_edit=Правка
+menu_file=Файл
+menu_tools=ИнÑтрументы
+module_config=ÐаÑтройки модулÑ
+name=ИмÑ
+new_file_name=Ð˜Ð¼Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ файла
+new_folder_name=Ð˜Ð¼Ñ Ð½Ð¾Ð²Ð¾Ð¹ папки
+new_name=Ðовое имÑ
+no_bookmarks=Закладок нет
+nothing_selected=Ðичего не выбрано
+owner_group=Группа владельца
+owner_user=Владелец
+paste=Ð’Ñтавить из буфера обмена
+permissions=РазрешениÑ
+previous_page=предыдущей Ñтранице
+provide_file_name=Укажите Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°
+provide_folder_name=Укажите Ð¸Ð¼Ñ Ð¿Ð°Ð¿ÐºÐ¸
+provide_group_name=Укажите Ð¸Ð¼Ñ Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹
+provide_new_file_name=Укажите новое Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°
+provide_search_query=Введите поиÑковый запроÑ
+provide_url=Укажите URL файла Ð´Ð»Ñ Ð·Ð°Ð³Ñ€ÑƒÐ·ÐºÐ¸
+provide_user_name=Укажите Ð¸Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ
+refresh=Обновить
+remove_selected=Удалить выбранное
+rename=Переименовать
+save=Сохранить
+save_close=Сохранить и закрыть
+save_file=Сохранить файл
+search=ПоиÑк
+search_go=Поехали!
+search_label=ПоиÑковый запроÑ
+search_results=Результаты поиÑка по запроÑу
+search_insensitive=РегиÑтронезавиÑимый поиÑк
+select_all=Выделить вÑе
+size=Размер
+type=Тип
+upload_files=Зазгузить файлы
+uploading=Загрузка, пожалуйÑта подождите...
+user_name=Ð˜Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ
+warning_title=Внимание!!!
+info_total=Ð’Ñего: $1 файлов и $2 папок
diff --git a/filemin/lib/File/BaseDir.pm b/filemin/lib/File/BaseDir.pm
new file mode 100644
index 000000000..23fb2db73
--- /dev/null
+++ b/filemin/lib/File/BaseDir.pm
@@ -0,0 +1,299 @@
+package File::BaseDir;
+
+use strict;
+use Carp;
+require File::Spec;
+require Exporter;
+
+our $VERSION = 0.06;
+
+our @ISA = qw(Exporter);
+our %EXPORT_TAGS = (
+ vars => [ qw(
+ xdg_data_home xdg_data_dirs
+ xdg_config_home xdg_config_dirs
+ xdg_cache_home
+ ) ],
+ lookup => [ qw(
+ data_home data_dirs data_files
+ config_home config_dirs config_files
+ cache_home
+ ) ],
+);
+our @EXPORT_OK = (
+ qw(xdg_data_files xdg_config_files),
+ map @$_, values %EXPORT_TAGS
+);
+
+# Set root and home directories
+my $rootdir = File::Spec->rootdir();
+if ($^O eq 'MSWin32') {
+ $rootdir = 'C:\\'; # File::Spec default depends on CWD
+ $ENV{HOME} ||= $ENV{USERPROFILE} || $ENV{HOMEDRIVE}.$ENV{HOMEPATH};
+ # logic from File::HomeDir::Windows
+}
+my $home = $ENV{HOME};
+unless ($home) {
+ # Default to operating system's home dir. NOTE: web applications may not have $ENV{HOME} assigned,
+ # so don't issue a warning. See RT bug #41744
+ $home = $rootdir;
+}
+
+# Set defaults
+our $xdg_data_home = File::Spec->catdir($home, qw/.local share/);
+our @xdg_data_dirs = (
+ File::Spec->catdir($rootdir, qw/usr local share/),
+ File::Spec->catdir($rootdir, qw/usr share/),
+);
+our $xdg_config_home = File::Spec->catdir($home, '.config');
+our @xdg_config_dirs = ( File::Spec->catdir($rootdir, qw/etc xdg/) );
+our $xdg_cache_home = File::Spec->catdir($home, '.cache');
+
+# OO method
+sub new { bless \$VERSION, shift } # what else is there to bless ?
+
+# Variable methods
+sub xdg_data_home { $ENV{XDG_DATA_HOME} || $xdg_data_home }
+
+sub xdg_data_dirs {
+ ( $ENV{XDG_DATA_DIRS}
+ ? _adapt($ENV{XDG_DATA_DIRS})
+ : @xdg_data_dirs
+ )
+}
+
+sub xdg_config_home {$ENV{XDG_CONFIG_HOME} || $xdg_config_home }
+
+sub xdg_config_dirs {
+ ( $ENV{XDG_CONFIG_DIRS}
+ ? _adapt($ENV{XDG_CONFIG_DIRS})
+ : @xdg_config_dirs
+ )
+}
+
+sub xdg_cache_home { $ENV{XDG_CACHE_HOME} || $xdg_cache_home }
+
+sub _adapt {
+ map { File::Spec->catdir( split('/', $_) ) } split /[:;]/, shift;
+ # ':' defined in the spec, but ';' is standard on win32
+}
+
+# Lookup methods
+sub data_home { _catfile(xdg_data_home, @_) }
+
+sub data_dirs { _find_files(\&_dir, \@_, xdg_data_home, xdg_data_dirs) }
+
+sub data_files { _find_files(\&_file, \@_, xdg_data_home, xdg_data_dirs) }
+
+sub xdg_data_files { my @dirs = data_files(@_); return @dirs }
+
+sub config_home { _catfile(xdg_config_home, @_) }
+
+sub config_dirs { _find_files(\&_dir, \@_, xdg_config_home, xdg_config_dirs) }
+
+sub config_files { _find_files(\&_file, \@_, xdg_config_home, xdg_config_dirs) }
+
+sub xdg_config_files { my @dirs = config_files(@_); return @dirs }
+
+sub cache_home { _catfile(xdg_cache_home, @_) }
+
+sub _catfile {
+ my $dir = shift;
+ shift if ref $_[0] or $_[0] =~ /::/; # OO call
+ return File::Spec->catfile($dir, @_);
+}
+
+sub _find_files {
+ my $type = shift;
+ my $file = shift;
+ shift @$file if ref $$file[0] or $$file[0] =~ /::/; # OO call
+ #warn "Looking for: @$file\n in: @_\n";
+ if (wantarray) {
+ return grep { &$type( $_ ) && -r $_ }
+ map { File::Spec->catfile($_, @$file) } @_;
+ }
+ else { # prevent unnecessary stats by returning early
+ for (@_) {
+ my $path = File::Spec->catfile($_, @$file);
+ return $path if &$type($path) && -r $path;
+ }
+ }
+ return ();
+}
+
+sub _dir { -d $_[0] }
+
+sub _file { -f $_[0] }
+
+1;
+
+__END__
+
+=head1 NAME
+
+File::BaseDir - Use the Freedesktop.org base directory specification
+
+=head1 SYNOPSIS
+
+ use File::BaseDir qw/xdg_data_files/;
+ for ( xdg_data_files('mime/globs') ) {
+ # do something
+ }
+
+=head1 DESCRIPTION
+
+This module can be used to find directories and files as specified
+by the Freedesktop.org Base Directory Specification. This specifications
+gives a mechanism to locate directories for configuration, application data
+and cache data. It is suggested that desktop applications for e.g. the
+Gnome, KDE or Xfce platforms follow this layout. However, the same layout can
+just as well be used for non-GUI applications.
+
+This module forked from L.
+
+This module follows version 0.6 of BaseDir specification.
+
+=head1 EXPORT
+
+None by default, but all methods can be exported on demand.
+Also the groups ":lookup" and ":vars" are defined. The ":vars" group
+contains all routines with a "xdg_" prefix; the ":lookup" group
+contains the routines to locate files and directories.
+
+=head1 METHODS
+
+=over 4
+
+=item C
+
+Simple constructor to allow Object Oriented use of this module.
+
+=back
+
+=head2 Lookup
+
+The following methods are used to lookup files and folders in one of the
+search paths.
+
+=over 4
+
+=item C
+
+Takes a list of file path elements and returns a new path by appending
+them to the data home directory. The new path does not need to exist.
+Use this when writing user specific application data.
+
+Example:
+
+ # data_home is: /home/USER/.local/share
+ $path = $bd->data_home('Foo', 'Bar', 'Baz');
+ # returns: /home/USER/.local/share/Foo/Bar/Baz
+
+=item C
+
+Looks for directories specified by C<@PATH> in the data home and
+other data directories. Returns (possibly empty) list of readable
+directories. In scalar context only the first directory found is
+returned. Use this to lookup application data.
+
+=item C
+
+Looks for files specified by C<@PATH> in the data home and other data
+directories. Only returns files that are readable. In scalar context only
+the first file found is returned. Use this to lookup application data.
+
+=item C
+
+Takes a list of path elements and appends them to the config home
+directory returning a new path. The new path does not need to exist.
+Use this when writing user specific configuration.
+
+=item C
+
+Looks for directories specified by C<@PATH> in the config home and
+other config directories. Returns (possibly empty) list of readable
+directories. In scalar context only the first directory found is
+returned. Use this to lookup configuration.
+
+=item C
+
+Looks for files specified by C<@PATH> in the config home and other
+config directories. Returns a (possibly empty) list of files that
+are readable. In scalar context only the first file found is returned.
+Use this to lookup configuration.
+
+=item C
+
+Takes a list of path elements and appends them to the cache home
+directory returning a new path. The new path does not need to exist.
+
+=back
+
+=head2 Variables
+
+The following methods only returns the value of one of the XDG variables.
+
+=over 4
+
+=item C
+
+Returns either C<$ENV{XDG_DATA_HOME}> or it's default value.
+Default is F<$HOME/.local/share>.
+
+=item C
+
+Returns either C<$ENV{XDG_DATA_DIRS}> or it's default value as list.
+Default is F, F.
+
+=item C
+
+Returns either C<$ENV{XDG_CONFIG_HOME}> or it's default value.
+Default is F<$HOME/.config>.
+
+=item C
+
+Returns either C<$ENV{XDG_CONFIG_DIRS}> or it's default value as list.
+Default is F.
+
+=item C
+
+Returns either C<$ENV{XDG_CACHE_HOME}> or it's default value.
+Default is F<$HOME/.cache>.
+
+=back
+
+=head1 NON-UNIX PLATFORMS
+
+The use of L ensures that all paths are returned in the appropriate
+form for the current platform. On Windows this module will try to set C<$HOME>
+to a sensible value if it is not defined yet. On other platforms one can use
+e.g. L to set $HOME before loading File::BaseDir.
+
+Please note that the specification is targeting Unix platforms only and
+will only have limited relevance on other platforms. Any platform dependent
+behavior in this module should be considered an extension of the spec.
+
+=head1 BACKWARDS COMPATIBILITY
+
+The methods C and C are exported for
+backwards compatibility with version 0.02. They are identical to C
+and C respectively but without the C behavior.
+
+=head1 BUGS
+
+Please mail the author if you encounter any bugs.
+
+=head1 AUTHOR
+
+Jaap Karssenberg || Pardus [Larus] Epardus@cpan.orgE
+
+Copyright (c) 2003, 2007 Jaap G Karssenberg. All rights reserved.
+This program is free software; you can redistribute it and/or
+modify it under the same terms as Perl itself.
+
+Currently being maintained by Kim Ryan
+
+=head1 SEE ALSO
+
+L
+
diff --git a/filemin/lib/File/Basename.pm b/filemin/lib/File/Basename.pm
new file mode 100644
index 000000000..4b4fe95cf
--- /dev/null
+++ b/filemin/lib/File/Basename.pm
@@ -0,0 +1,402 @@
+=head1 NAME
+
+File::Basename - Parse file paths into directory, filename and suffix.
+
+=head1 SYNOPSIS
+
+ use File::Basename;
+
+ ($name,$path,$suffix) = fileparse($fullname,@suffixlist);
+ $name = fileparse($fullname,@suffixlist);
+
+ $basename = basename($fullname,@suffixlist);
+ $dirname = dirname($fullname);
+
+
+=head1 DESCRIPTION
+
+These routines allow you to parse file paths into their directory, filename
+and suffix.
+
+B: C and C emulate the behaviours, and
+quirks, of the shell and C functions of the same name. See each
+function's documentation for details. If your concern is just parsing
+paths it is safer to use L's C and
+C methods.
+
+It is guaranteed that
+
+ # Where $path_separator is / for Unix, \ for Windows, etc...
+ dirname($path) . $path_separator . basename($path);
+
+is equivalent to the original path for all systems but VMS.
+
+
+=cut
+
+
+package File::Basename;
+
+# File::Basename is used during the Perl build, when the re extension may
+# not be available, but we only actually need it if running under tainting.
+BEGIN {
+ if (${^TAINT}) {
+ require re;
+ re->import('taint');
+ }
+}
+
+
+use strict;
+use 5.006;
+use warnings;
+our(@ISA, @EXPORT, $VERSION, $Fileparse_fstype, $Fileparse_igncase);
+require Exporter;
+@ISA = qw(Exporter);
+@EXPORT = qw(fileparse fileparse_set_fstype basename dirname);
+$VERSION = "2.85";
+
+fileparse_set_fstype($^O);
+
+
+=over 4
+
+=item C
+X
+
+ my($filename, $dirs, $suffix) = fileparse($path);
+ my($filename, $dirs, $suffix) = fileparse($path, @suffixes);
+ my $filename = fileparse($path, @suffixes);
+
+The C routine divides a file path into its $dirs, $filename
+and (optionally) the filename $suffix.
+
+$dirs contains everything up to and including the last
+directory separator in the $path including the volume (if applicable).
+The remainder of the $path is the $filename.
+
+ # On Unix returns ("baz", "/foo/bar/", "")
+ fileparse("/foo/bar/baz");
+
+ # On Windows returns ("baz", 'C:\foo\bar\', "")
+ fileparse('C:\foo\bar\baz');
+
+ # On Unix returns ("", "/foo/bar/baz/", "")
+ fileparse("/foo/bar/baz/");
+
+If @suffixes are given each element is a pattern (either a string or a
+C) matched against the end of the $filename. The matching
+portion is removed and becomes the $suffix.
+
+ # On Unix returns ("baz", "/foo/bar/", ".txt")
+ fileparse("/foo/bar/baz.txt", qr/\.[^.]*/);
+
+If type is non-Unix (see L) then the pattern
+matching for suffix removal is performed case-insensitively, since
+those systems are not case-sensitive when opening existing files.
+
+You are guaranteed that C<$dirs . $filename . $suffix> will
+denote the same location as the original $path.
+
+=cut
+
+
+sub fileparse {
+ my($fullname,@suffices) = @_;
+
+ unless (defined $fullname) {
+ require Carp;
+ Carp::croak("fileparse(): need a valid pathname");
+ }
+
+ my $orig_type = '';
+ my($type,$igncase) = ($Fileparse_fstype, $Fileparse_igncase);
+
+ my($taint) = substr($fullname,0,0); # Is $fullname tainted?
+
+ if ($type eq "VMS" and $fullname =~ m{/} ) {
+ # We're doing Unix emulation
+ $orig_type = $type;
+ $type = 'Unix';
+ }
+
+ my($dirpath, $basename);
+
+ if (grep { $type eq $_ } qw(MSDOS DOS MSWin32 Epoc)) {
+ ($dirpath,$basename) = ($fullname =~ /^((?:.*[:\\\/])?)(.*)/s);
+ $dirpath .= '.\\' unless $dirpath =~ /[\\\/]\z/;
+ }
+ elsif ($type eq "OS2") {
+ ($dirpath,$basename) = ($fullname =~ m#^((?:.*[:\\/])?)(.*)#s);
+ $dirpath = './' unless $dirpath; # Can't be 0
+ $dirpath .= '/' unless $dirpath =~ m#[\\/]\z#;
+ }
+ elsif ($type eq "MacOS") {
+ ($dirpath,$basename) = ($fullname =~ /^(.*:)?(.*)/s);
+ $dirpath = ':' unless $dirpath;
+ }
+ elsif ($type eq "AmigaOS") {
+ ($dirpath,$basename) = ($fullname =~ /(.*[:\/])?(.*)/s);
+ $dirpath = './' unless $dirpath;
+ }
+ elsif ($type eq 'VMS' ) {
+ ($dirpath,$basename) = ($fullname =~ /^(.*[:>\]])?(.*)/s);
+ $dirpath ||= ''; # should always be defined
+ }
+ else { # Default to Unix semantics.
+ ($dirpath,$basename) = ($fullname =~ m{^(.*/)?(.*)}s);
+ if ($orig_type eq 'VMS' and $fullname =~ m{^(/[^/]+/000000(/|$))(.*)}) {
+ # dev:[000000] is top of VMS tree, similar to Unix '/'
+ # so strip it off and treat the rest as "normal"
+ my $devspec = $1;
+ my $remainder = $3;
+ ($dirpath,$basename) = ($remainder =~ m{^(.*/)?(.*)}s);
+ $dirpath ||= ''; # should always be defined
+ $dirpath = $devspec.$dirpath;
+ }
+ $dirpath = './' unless $dirpath;
+ }
+
+
+ my $tail = '';
+ my $suffix = '';
+ if (@suffices) {
+ foreach $suffix (@suffices) {
+ my $pat = ($igncase ? '(?i)' : '') . "($suffix)\$";
+ if ($basename =~ s/$pat//s) {
+ $taint .= substr($suffix,0,0);
+ $tail = $1 . $tail;
+ }
+ }
+ }
+
+ # Ensure taint is propagated from the path to its pieces.
+ $tail .= $taint;
+ wantarray ? ($basename .= $taint, $dirpath .= $taint, $tail)
+ : ($basename .= $taint);
+}
+
+
+
+=item C
+X X
+
+ my $filename = basename($path);
+ my $filename = basename($path, @suffixes);
+
+This function is provided for compatibility with the Unix shell command
+C. It does B always return the file name portion of a
+path as you might expect. To be safe, if you want the file name portion of
+a path use C.
+
+C returns the last level of a filepath even if the last
+level is clearly directory. In effect, it is acting like C for
+paths. This differs from C's behaviour.
+
+ # Both return "bar"
+ basename("/foo/bar");
+ basename("/foo/bar/");
+
+@suffixes work as in C except all regex metacharacters are
+quoted.
+
+ # These two function calls are equivalent.
+ my $filename = basename("/foo/bar/baz.txt", ".txt");
+ my $filename = fileparse("/foo/bar/baz.txt", qr/\Q.txt\E/);
+
+Also note that in order to be compatible with the shell command,
+C does not strip off a suffix if it is identical to the
+remaining characters in the filename.
+
+=cut
+
+
+sub basename {
+ my($path) = shift;
+
+ # From BSD basename(1)
+ # The basename utility deletes any prefix ending with the last slash '/'
+ # character present in string (after first stripping trailing slashes)
+ _strip_trailing_sep($path);
+
+ my($basename, $dirname, $suffix) = fileparse( $path, map("\Q$_\E",@_) );
+
+ # From BSD basename(1)
+ # The suffix is not stripped if it is identical to the remaining
+ # characters in string.
+ if( length $suffix and !length $basename ) {
+ $basename = $suffix;
+ }
+
+ # Ensure that basename '/' == '/'
+ if( !length $basename ) {
+ $basename = $dirname;
+ }
+
+ return $basename;
+}
+
+
+
+=item C
+X
+
+This function is provided for compatibility with the Unix shell
+command C and has inherited some of its quirks. In spite of
+its name it does B always return the directory name as you might
+expect. To be safe, if you want the directory name of a path use
+C.
+
+Only on VMS (where there is no ambiguity between the file and directory
+portions of a path) and AmigaOS (possibly due to an implementation quirk in
+this module) does C work like C, returning just the
+$dirs.
+
+ # On VMS and AmigaOS
+ my $dirs = dirname($path);
+
+When using Unix or MSDOS syntax this emulates the C shell function
+which is subtly different from how C works. It returns all but
+the last level of a file path even if the last level is clearly a directory.
+In effect, it is not returning the directory portion but simply the path one
+level up acting like C for file paths.
+
+Also unlike C, C does not include a trailing slash on
+its returned path.
+
+ # returns /foo/bar. fileparse() would return /foo/bar/
+ dirname("/foo/bar/baz");
+
+ # also returns /foo/bar despite the fact that baz is clearly a
+ # directory. fileparse() would return /foo/bar/baz/
+ dirname("/foo/bar/baz/");
+
+ # returns '.'. fileparse() would return 'foo/'
+ dirname("foo/");
+
+Under VMS, if there is no directory information in the $path, then the
+current default device and directory is used.
+
+=cut
+
+
+sub dirname {
+ my $path = shift;
+
+ my($type) = $Fileparse_fstype;
+
+ if( $type eq 'VMS' and $path =~ m{/} ) {
+ # Parse as Unix
+ local($File::Basename::Fileparse_fstype) = '';
+ return dirname($path);
+ }
+
+ my($basename, $dirname) = fileparse($path);
+
+ if ($type eq 'VMS') {
+ $dirname ||= $ENV{DEFAULT};
+ }
+ elsif ($type eq 'MacOS') {
+ if( !length($basename) && $dirname !~ /^[^:]+:\z/) {
+ _strip_trailing_sep($dirname);
+ ($basename,$dirname) = fileparse $dirname;
+ }
+ $dirname .= ":" unless $dirname =~ /:\z/;
+ }
+ elsif (grep { $type eq $_ } qw(MSDOS DOS MSWin32 OS2)) {
+ _strip_trailing_sep($dirname);
+ unless( length($basename) ) {
+ ($basename,$dirname) = fileparse $dirname;
+ _strip_trailing_sep($dirname);
+ }
+ }
+ elsif ($type eq 'AmigaOS') {
+ if ( $dirname =~ /:\z/) { return $dirname }
+ chop $dirname;
+ $dirname =~ s{[^:/]+\z}{} unless length($basename);
+ }
+ else {
+ _strip_trailing_sep($dirname);
+ unless( length($basename) ) {
+ ($basename,$dirname) = fileparse $dirname;
+ _strip_trailing_sep($dirname);
+ }
+ }
+
+ $dirname;
+}
+
+
+# Strip the trailing path separator.
+sub _strip_trailing_sep {
+ my $type = $Fileparse_fstype;
+
+ if ($type eq 'MacOS') {
+ $_[0] =~ s/([^:]):\z/$1/s;
+ }
+ elsif (grep { $type eq $_ } qw(MSDOS DOS MSWin32 OS2)) {
+ $_[0] =~ s/([^:])[\\\/]*\z/$1/;
+ }
+ else {
+ $_[0] =~ s{(.)/*\z}{$1}s;
+ }
+}
+
+
+=item C
+X
+
+ my $type = fileparse_set_fstype();
+ my $previous_type = fileparse_set_fstype($type);
+
+Normally File::Basename will assume a file path type native to your current
+operating system (ie. /foo/bar style on Unix, \foo\bar on Windows, etc...).
+With this function you can override that assumption.
+
+Valid $types are "MacOS", "VMS", "AmigaOS", "OS2", "RISCOS",
+"MSWin32", "DOS" (also "MSDOS" for backwards bug compatibility),
+"Epoc" and "Unix" (all case-insensitive). If an unrecognized $type is
+given "Unix" will be assumed.
+
+If you've selected VMS syntax, and the file specification you pass to
+one of these routines contains a "/", they assume you are using Unix
+emulation and apply the Unix syntax rules instead, for that function
+call only.
+
+=back
+
+=cut
+
+
+BEGIN {
+
+my @Ignore_Case = qw(MacOS VMS AmigaOS OS2 RISCOS MSWin32 MSDOS DOS Epoc);
+my @Types = (@Ignore_Case, qw(Unix));
+
+sub fileparse_set_fstype {
+ my $old = $Fileparse_fstype;
+
+ if (@_) {
+ my $new_type = shift;
+
+ $Fileparse_fstype = 'Unix'; # default
+ foreach my $type (@Types) {
+ $Fileparse_fstype = $type if $new_type =~ /^$type/i;
+ }
+
+ $Fileparse_igncase =
+ (grep $Fileparse_fstype eq $_, @Ignore_Case) ? 1 : 0;
+ }
+
+ return $old;
+}
+
+}
+
+
+1;
+
+
+=head1 SEE ALSO
+
+L, L, L
diff --git a/filemin/lib/File/MimeInfo.pm b/filemin/lib/File/MimeInfo.pm
new file mode 100644
index 000000000..506fe07e7
--- /dev/null
+++ b/filemin/lib/File/MimeInfo.pm
@@ -0,0 +1,482 @@
+package File::MimeInfo;
+
+use strict;
+use Carp;
+use Fcntl 'SEEK_SET';
+use File::Spec;
+use File::BaseDir qw/data_files/;
+require Exporter;
+
+our @ISA = qw(Exporter);
+our @EXPORT = qw(mimetype);
+our @EXPORT_OK = qw(extensions describe globs inodetype mimetype_canon mimetype_isa);
+our $VERSION = '0.27';
+our $DEBUG;
+
+our ($_hashed, $_hashed_aliases, $_hashed_subclasses);
+our (@globs, %literal, %extension, %mime2ext, %aliases, %subclasses);
+our ($LANG, @DIRS);
+# @globs = [ [ 'glob', qr//, $mime_string ], ... ]
+# %literal contains literal matches
+# %extension contains extensions (globs matching /^\*(\.\w)+$/ )
+# %mime2ext is used for looking up extension by mime type
+# %aliases contains the aliases table
+# %subclasses contains the subclasses table
+# $LANG can be used to set a default language for the comments
+# @DIRS can be used to specify custom database directories
+
+sub new { bless \$VERSION, shift } # what else is there to bless ?
+
+sub mimetype {
+ my $file = pop;
+ croak 'subroutine "mimetype" needs a filename as argument' unless defined $file;
+ return
+ inodetype($file) ||
+ globs($file) ||
+ default($file);
+}
+
+sub inodetype {
+ my $file = pop;
+ print STDERR "> Checking inode type\n" if $DEBUG;
+ lstat $file or return undef;
+ return undef if -f _;
+ my $t = (-l $file) ? 'inode/symlink' : # Win32 does not like '_' here
+ (-d _) ? 'inode/directory' :
+ (-p _) ? 'inode/fifo' :
+ (-c _) ? 'inode/chardevice' :
+ (-b _) ? 'inode/blockdevice' :
+ (-S _) ? 'inode/socket' : '' ;
+ if ($t eq 'inode/directory') { # compare devices to detect mount-points
+ my $dev = (stat _)[0]; # device of the node under investigation
+ $file = File::Spec->rel2abs($file); # get full path
+ my @dirs = File::Spec->splitdir($file);
+ $file = File::Spec->catfile(@dirs); # removes trailing '/' or equivalent
+ return $t if -l $file; # parent can be on other dev for links
+ pop @dirs;
+ my $dir = File::Spec->catdir(@dirs); # parent dir
+ $t = 'inode/mount-point' unless (stat $dir)[0] == $dev; # compare devices
+ return $t;
+ }
+ else { return $t ? $t : undef }
+}
+
+sub globs {
+ my $file = pop;
+ croak 'subroutine "globs" needs a filename as argument' unless defined $file;
+ rehash() unless $_hashed;
+ (undef, undef, $file) = File::Spec->splitpath($file); # remove path
+ print STDERR "> Checking globs for basename '$file'\n" if $DEBUG;
+
+ return $literal{$file} if exists $literal{$file};
+
+ if ($file =~ /\.(\w+(\.\w+)*)$/) {
+ my @ext = split /\./, $1;
+ while (@ext) {
+ my $ext = join('.', @ext);
+ print STDERR "> Checking for extension '.$ext'\n" if $DEBUG;
+ warn "WARNING: wantarray behaviour of globs() will change in the future.\n" if wantarray;
+ return wantarray
+ ? ($extension{$ext}, $ext)
+ : $extension{$ext}
+ if exists $extension{$ext};
+ shift @ext;
+ }
+ }
+
+ for (@globs) {
+ next unless $file =~ $_->[1];
+ print STDERR "> This file name matches \"$_->[0]\"\n" if $DEBUG;
+ return $_->[2];
+ }
+
+ return globs(lc $file) if $file =~ /[A-Z]/; # recurs
+ return undef;
+}
+
+sub default {
+ my $file = pop;
+ croak 'subroutine "default" needs a filename as argument' unless defined $file;
+
+ my $line;
+ unless (ref $file) {
+ return undef unless -f $file;
+ print STDERR "> File exists, trying default method\n" if $DEBUG;
+ return 'text/plain' if -z $file;
+
+ open FILE, '<', $file or return undef;
+ binmode FILE, ':utf8' unless $] < 5.008;
+ read FILE, $line, 32;
+ close FILE;
+ }
+ else {
+ print STDERR "> Trying default method on object\n" if $DEBUG;
+
+ $file->seek(0, SEEK_SET);
+ $file->read($line, 32);
+ }
+
+ {
+ no warnings; # warnings can be thrown when input not ascii
+ if ($] < 5.008 or ! utf8::valid($line)) {
+ use bytes; # avoid invalid utf8 chars
+ $line =~ s/\s//g; # \m, \n and \t are also control chars
+ return 'text/plain' unless $line =~ /[\x00-\x1F\x7F]/;
+ }
+ else {
+ # use perl to do something intelligent for ascii & utf8
+ return 'text/plain' unless $line =~ /[^[:print:]\s]/;
+ }
+ }
+ print STDERR "> First 10 bytes of the file contain control chars\n" if $DEBUG;
+ return 'application/octet-stream';
+}
+
+sub rehash {
+ (@globs, %literal, %extension, %mime2ext) = (); # clear all data
+ local $_; # limit scope of $_ ... :S
+ my @globfiles = @DIRS
+ ? ( grep {-e $_ && -r $_} map "$_/globs", @DIRS )
+ : ( reverse data_files('mime/globs') );
+ print STDERR << 'EOT' unless @globfiles;
+WARNING: You don't seem to have a mime-info database. The
+shared-mime-info package is available from http://freedesktop.org/ .
+EOT
+ my @done;
+ for my $file (@globfiles) {
+ next if grep {$file eq $_} @done;
+ _hash_globs($file);
+ push @done, $file;
+ }
+ $_hashed = 1;
+}
+
+sub _hash_globs {
+ my $file = shift;
+ open GLOB, '<', $file || croak "Could not open file '$file' for reading" ;
+ binmode GLOB, ':utf8' unless $] < 5.008;
+ my ($string, $glob);
+ while () {
+ next if /^\s*#/ or ! /\S/; # skip comments and empty lines
+ chomp;
+ ($string, $glob) = split /:/, $_, 2;
+ unless ($glob =~ /[\?\*\[]/) { $literal{$glob} = $string }
+ elsif ($glob =~ /^\*\.(\w+(\.\w+)*)$/) {
+ $extension{$1} = $string unless exists $extension{$1};
+ $mime2ext{$string} = [] if !defined($mime2ext{$string});
+ push @{$mime2ext{$string}}, $1;
+ } else { unshift @globs, [$glob, _glob_to_regexp($glob), $string] }
+ }
+ close GLOB || croak "Could not open file '$file' for reading" ;
+}
+
+sub _glob_to_regexp {
+ my $glob = shift;
+ $glob =~ s/\./\\./g;
+ $glob =~ s/([?*])/.$1/g;
+ $glob =~ s/([^\w\/\\\.\?\*\[\]])/\\$1/g;
+ qr/^$glob$/;
+}
+
+sub extensions {
+ my $mimet = mimetype_canon(pop @_);
+ rehash() unless $_hashed;
+ my $ref = $mime2ext{$mimet} if exists $mime2ext{$mimet};
+ return $ref ? @{$ref} : undef if wantarray;
+ return $ref ? @{$ref}[0] : '';
+}
+
+sub describe {
+ shift if ref $_[0];
+ my ($mt, $lang) = @_;
+ croak 'subroutine "describe" needs a mimetype as argument' unless $mt;
+ $mt = mimetype_canon($mt);
+ $lang = $LANG unless defined $lang;
+ my $att = $lang ? qq{xml:lang="$lang"} : '';
+ my $desc;
+ my @descfiles = @DIRS
+ ? ( grep {-e $_ && -r $_} map "$_/$mt.xml", @DIRS )
+ : ( reverse data_files('mime', split '/', "$mt.xml") ) ;
+ for my $file (@descfiles) {
+ $desc = ''; # if a file was found, return at least empty string
+ open XML, '<', $file || croak "Could not open file '$file' for reading";
+ binmode XML, ':utf8' unless $] < 5.008;
+ while () {
+ next unless m!(.*?)!;
+ $desc = $1;
+ last;
+ }
+ close XML || croak "Could not open file '$file' for reading";
+ last if $desc;
+ }
+ return $desc;
+}
+
+sub mimetype_canon {
+ my $mimet = pop;
+ croak 'mimetype_canon needs argument' unless defined $mimet;
+ rehash_aliases() unless $_hashed_aliases;
+ return exists($aliases{$mimet}) ? $aliases{$mimet} : $mimet;
+}
+
+sub rehash_aliases {
+ %aliases = _read_map_files('aliases');
+ $_hashed_aliases++;
+}
+
+sub _read_map_files {
+ my ($name, $list) = @_;
+ my @files = @DIRS
+ ? ( grep {-e $_ && -r $_} map "$_/$name", @DIRS )
+ : ( reverse data_files("mime/$name") );
+ my (@done, %map);
+ for my $file (@files) {
+ next if grep {$_ eq $file} @done;
+ open MAP, '<', $file || croak "Could not open file '$file' for reading";
+ binmode MAP, ':utf8' unless $] < 5.008;
+ while (