valid xhtml 1.0 strict
 

last changed : 01/24/10

Administration

All variables in config file will be displayed with the same name by the admin script. In config file all values stored as string. Some characters have to be masked in config file, that means e.g. an @ in an email address variable have to stored as \@. See the description of respective variables below. The values in square brackets are the respective values in efileman_config.cgi. Always use slashes / (no trailing slashes \) for path values without a finishing slash.

Global Values
...
admin global values
$language Set the default language for the login screen by changing this variable. The languages files are in the "lang" directory.
$skin Set the default skin by changing this variable. This a name of the directories in the skins directory. Don't remove the /skins/default directory. This value can change individually by a user if you enable the admin page. In this case he work with his favorite skin after login.
$max_user Define a maximum of user. In particular it may be necessary if you want to use efileman_createaccount.cgi to create accounts automatically.
Set to "-1" for unlimited.
$mail_type Define the path to sendmail and the like e.g. $mail_type = "/usr/sbin/sendmail" or an IP-address(!) of a SMTP-server or nothing ("").
$server_name In some cases the server name may be different from your domain name, type here your domain name e.g. "www.yourdomain.com" (without http://) or "jump.to/anywhere". These variable is only necessary for link protection. See $protectlinks variable.
$protectlinks Set $protectlinks = "1" to protect efileman to start from another domain, and your files to link from another domain if using download.cgi. In some cases you may have trouble with login procedure, then you may have more success if you disable this feature (set "0"), or if you disable the login procedure it make sense to disable this feature under some circumtances.
$enable_upload
$enable_mail
$enable_admin
Set "0" to hide or "1" to show the links to efileman features upload, mail and admin. If a feature is disabled by these variables you can remove the corresponding cgi-script from the server.
$enable_login If you set these variable to "0" to disable userlogin, the values of the first user will be use by the script of course without the username and password information. Set both variables to "", don't delete any variables of a user.
$file_lock If your platform does not support flock() function set this variable as No [0]. For Unix/WinNT/Win2k/WinXP select Yes [1], for Windows95/98/Me select no [0].
$upload_fields Define how much files a user can upload per time in the upload page. The "0" value shows a empty upload page.
$show_disabled_button How it says. Select Yes [1] for show disabled buttons, or No [0].
$debug_modus_on Set to Yes[1] to get additional information about the current status of running efileman as perl version, why which efileman functions disabled due to missing perl modules and so on.
$zip_available In case of perl modules for compress and/or zip isn't available on your web server, you can disable this function generally here.
$automake_userpath If you define one or more path values for a user ($user_path) in admin page or with the createaccount script, you can define here, whether these paths will be automatically create by the script [1] or not [0].
$image_path This is the full path of the directory where you upload the content of the "images" folder in the zip file. For example "/data1/public_html/img/efileman" or "D:/wwwpub/HTML/images/efileman".
$image_url This is the URL equivalent of the "$image_path" variable. For example "http://www.yourhomepage.net/img/efileman".
$log_user_action Select Yes [1] to logging user action. Define an existing path for log file. See $log_path variable.
$log_path This is the absolute path to the generated html-logfile "efileman_log.html". The path should be exist. For example "D:/wwwpub/logs". The design of log file can be customized with a separate css-file, copy the example css-file "efileman_log.css" (don't rename) in the specified path. User action will be log only in english at this time. The "!" in log file means a correct user with wrong pass, the "?" means a wrong user with wrong pass. You should restrict the access to the directory contains efileman_log.html by using a .htaccess file, if this directory inside the html root.
$upload_path This is the absolute path to a common upload directory. The path can be anywhere. For example your HTML-root is "D:/wwwpub/HTML", your common upload-path can be "D:/upload". The path will be specified for all user independent from there download path ($user_path).

User Values
User values will be defined for every user with an index. That means the values for the first user are $user_path[0], $user_url[0], $user_name[0], ... for the second user $user_path[1], $user_url[1], $user_name[1], ... and so on.
admin user values
$user_path This is the full path of the directory which you want to be the base directory for the listing. If you want to define more than one, separate the path values by comma. Define an alias name for every path value. For example $user_path = "/data1/public_html/software=Software,/data1/public_html/mp3=Music". You can also specify a path outside the HTML root, for example $user_path = "/data/files=Files". The paths will create if not exist and the global variable $automake_userpath is Yes[1].
$user_url This is the URL (http/ftp) equivalent of the "$user_path" variable. Following the example above $user_url = "http://www.yourhomepage.net/software,http://www.yourhomepage.net/mp3". If "$user_path" outside the HTML root write here the same value without an alias: $user_url = "/data/files". In this case efileman.cgi will use efileman_download.cgi automatically to send the requested file to the user.
$user_name The unique username of the user. Here are no special characters or space allowed, use only A-Z, a-z, 0-9 and _.
$user_password The required password of the user. If you change your own password, you will logged out. Write the character "$","@","\" and """ as "\$", "\@", "\\" and "\"" e.g. "364\$.\\dfg" instead of "364$.\dfg". You won't need that in admin.cgi only if you type in the config file.
$user_is_admin Yes[1] give the current user the access right to the admin tab page with full rights to create user, change values and delete user. No[0] shows the user a simple admin page where he can change password, language, email and skin for himself.
$user_language Set the user language of the script by changing this variable. The languages files are in the "lang" directory.
$user_skinThe skin for the first User. This may be different from the default skin
$email_address The email address of the user or an empty string. Write "\@" instead of "@" in the address e.g. user\@gmx.de. You won't need that in admin.cgi only if you type the address in the config file.
$file_space Set the user file space in MB from 0 up to a value of your choice. Use absolute values! The used filespace will be compute over all defined paths of the user.
$copy_file, $move_file, $edit_file, $del_file, $ch_mod, $ren_file, $new_dir, $new_file, $upload_file, $zip, $unzip Yes/No ["1"/"0"] enable/disable the corresponding button for copy, move, ...
$log_user If $log_user_action on, you can specify whether all action by this user should be logged or not.

Default Createaccount
These variables contain the default values using by createaccount script. Basicly this variables are the same as for a user as described above. The differences are the ##username## using in $ca_user_path and $ca_user_url, and $ca_mailto variables. There is no index used. All values which are not defined will be displayed by createaccount script and only these values will be process by the script. If you don't use this script set all values to an empty string or "0" (and remove the script from server !). Use this script part carefully.
admin default createaccount
$ca_user_pathLike $user_path. You can use the variable ##username## in path to let create an extra path for the user using the information of $ca_user_name. For example type /usr/data/efileman/##username##. You can define more than path values too.
$ca_user_urlLike $user_url. Use the variable ##username## in url depending from the $ca_user_path value. For example type http://www.yourdomain.net/##username## .
$ca_user_nameRemember synopsis above, if you define an user name here, this variable won't display to the user.
Normally this is an empty string.
$ca_user_passwordSee $user_password user variable.
$ca_user_is_adminSee $user_is_admin user variable.
$ca_user_languageSee $user_language user variable.
$ca_email_addressSee $email_address user variable.
$ca_user_skinSee $user_skin user variable.
$ca_file_spaceSee $file_space user variable.
$ca_copy_file
$ca_move_file
$ca_edit_file
$ca_del_file
$ca_ch_mod
$ca_ren_file
$ca_new_dir
$ca_new_file
$ca_upload_file
$ca_zip
$ca_unzip
Yes/No ["1"/"0"] enable/disable the corresponding button for copy, move, ... It's recommended to set $ca_ch_mod to No[0], because an unknown and malicious user would be able to upload a script, make it executable with this function and do horrible things if you give him the possibility.
$ca_log_userIf $log_user_action on, you can specify whether all action by this user should be logged [1] or not [0].
$ca_mailtoThis is the email address of a person who get an email about the creation of a new user account. In every case the new user will get an email with his unencrypted account data. Write "\@" instead of "@" in the address! e.g. supervisor\@gibtnix.de. You won't need that in admin.cgi only if you type the address in the config file.


 
 
bookmark this site at del.icio.us bookmark this site at mister-wong.de bookmark this site at furl.net bookmark this site at ho.tli.st bookmark this site at blogmarks.net bookmark this site at stumbleupon.com bookmark this site at scuttle.org