|
last changed : 01/24/10
How to configure a download list like shown at efileman.de ? How to manipulate the download time value in download.log ? How to change efileman according to the needs ? How to get a description for a listed file ? How to configure a download list like shown at efileman.de ? Install efileman according the installation instructions so you have one supervisor as first.
If you set Enable Login to No, only the values of the first user account applies to the file listing. How to manipulate the download time value in download.log ? The download.log has the following structure: filename1[tab]count value[tab]time value The values are separated by Tab, because it's one of the few values (cross system) which are not allowed in a file name. A filename (without path) will be added to the list by the first counted download, with that the count value start with 1. The time value is the complete date of the first download represented by the number of non-leap seconds since whatever time the system considers to be the epoch (that's 00:00:00, January 1, 1904 for MacOS, and 00:00:00 UTC, January 1, 1970 for most other systems). To manipulate or set up this value remember the following: 1 minute = 60 seconds The command 'perl -e "print time;"' gives the current time value 1068045212 (Linux/Windows) which is equivalent to 11/05/2003. With that you could eg. add 86400 four times to 1068045212 to get 1068390812 (11/09/2003) and enter the result in your download list. How to change efileman according to the needs ? The "heart" of efileman 7.1 is module main.pm, the "brain" is defaults.pm. main.pm controls when which method will be called. In defaults.pm will be global and user variables declared and default values defined for them. The following gives an overview to defaults.pm. sub get_global_vars() declares global variables sub get_user_vars() declares user variables sub get_global_defaults() defines default values for global variables sub get_user_defaults() defines default values for user variables That enables to add new user variables eg. user address and fon number without editing other modules or skins. How to get a description for a listed file ? Since version 7.1.0.67 of efileman will be process special files to display a description to a listed file. Create an extra text file (file-description file) named like .filename.dsc, eg. ".efileman.zip.dsc". This file will be hide and the content of this file will be placed into a manager.skin if there a placeholder ##filedescription## exists, like in in "download_filedesc". If ##filedescription## not exists in the used skin, the .dsc file will be listed. |
|