**Veno File Manager - Documentation**
Thank you for purchasing **Veno File Manager**.
If you have any questions that are beyond the scope of this help file,
visit the [Support forum.](http://veno.es/support/categories/veno-file-manager)
or feel free to email via the [support contact form](https://codecanyon.net/item/veno-file-manager-host-and-share-files/6114247/support/contact).
Thanks so much!
# Installation
Copy all files contained inside the “VFM” folder to your
web space via FTP (put everything in the root if you will use the whole
domain as file manager, otherwise create a custom directory and upload
everything in it).

Navigate with your browser to the url where you uploaded the files and log in as:
- **username:** admin
- **password:** password
Inside the administration area, go under USERS and update your **Master Admin** credentials (password and username).
That’s all! go back to the VFM front-end and start building your archive with basic settings.
## Uploads Directory
By default VFM keeps uploaded files inside the directory called **uploads**, and creates sub directories in it.
If you want to rename the main **Uploads Directory**,
do it from the Administration panel, this way the system will rename
the folder and will update configuration settings as well.
You can use VFM also with preexistent archives uploading
- `index.php`
- `/vfm-admin/`
at the same level of your main uploads directory and updating the **Uploads Directory** field under general settings
# Migration
If you are moving the script already installed and
configured in a new location (from local to server, from server to
local, or in a different directory) remember to update the value **URL of your app** under Preferences > general settings.
This should be always the full URL of your application, with a final slash / ( e.g. http://www.example.com/ )
# Options
To best fit your needs you have an **administration** panel where you can choose many options
## Allowed extensions
From general settings you can choose if to exclude some
file extensions, or if you prefer, to only allow some extensions (and
exclude all the others).
## Pretty links
If you activate Pretty links, the script will convert download urls from `/vfm-admin/vfm-downloader.php?q=xxx` to `/download/xxx`.
This option needs the `.htaccess` provided inside the main directory of the script, and the Apache Module **mod_rewrite** on your server.
#### For NGINX Servers try the following configuration:
**Script running in sub directory (e.g: www.example.com/RELATIVE_PATH )**
```
# nginx VFM configuration
location /RELATIVE_PATH {
index index.php;
rewrite /download/(.*)/sh/(.*)/share/(.*) /RELATIVE_PATH/vfm-admin/vfm-downloader.php?q=$1&sh=$2&share=$3 last;
rewrite /download/(.*)/h/(.*) /RELATIVE_PATH/vfm-admin/vfm-downloader.php?q=$1&h=$2 last;
rewrite /download/zip/(.*)/n/(.*) /RELATIVE_PATH/vfm-admin/vfm-downloader.php?zip=$1&n=$2 last;
}
```
#### For IIS Servers try to convert the following rules:
[Importing Apache mod_rewrite Rules in IIS 7 and above](https://www.iis.net/learn/extensions/url-rewrite-module/importing-apache-modrewrite-rules)
```
# begin VFM rules
```
A custom header image can be uploaded from Preferences > E-Mail
```
%translate_value%
```
translatable values editable from the language manager (**translate_** followed by the translation key)
**Required**
```
%any_other_value%
```
Dynamic variables like share link, app name, password recovery link
# File sharing
By default the system provides download links to copy-paste where you prefer
To enable E-mail file sharing you must compile the **send system e-mails from** field
## Password protection
If password protection is enabled, any user will be able to choose a password or get a random password to protect sharing links
## Expiration date for download links
At the top of `vfm-admin/index.php` you will find the array who controls the dropdown menu with default values
```php
$share_lifetime = array(
// "days" => "menu value"
"1" => "24 h",
"2" => "48 h",
"3" => "72 h",
"5" => "5 days",
"7" => "7 days",
"10" => "10 days",
"30" => "30 days",
"365" => "1 year",
"36500" => "Unlimited (100 years)",
);
```
Update the values and select the new date in the administration page
# Users
## Manage users
Inside users panel you are able to:
- List avialble users
- Update password, username, role, e-mail, assign dedicated folder(s) for all pre-existing Users, and set a maximum available space
- Add New Users
When adding or editing a user, if you type in "New Directory" field, a new folder inside the main uploads directory will be created for you, and added to the user's directories list (you can also assign pre-existing folders)
## Roles and permissions
***Master Admin*** is the first User in configuration settings, and is the only who can't be deleted.
All the other users may have one of 5 available roles, any role can have more or less permissions:

#### User
***Optional permissions:***
- View files
- Download files
- File sharing
- Upload files
- View folders
- Create new folders
#### Contributor
***Minimum permissions:***
- View files
- Download files
- View folders
***Optional permissions:***
- File sharing
- Upload files
- Delete files
- Rename files
- Move files
- Copy files
- Create new folders
- Delete folders
- Rename folders
#### Editor
***Minimum permissions:***
- View files
- Download files
- View folders
***Optional permissions:***
- File sharing
- Upload files
- Delete files
- Rename files
- Move files
- Copy files
- Create new folders
- Delete folders
- Rename folders
#### Admin
***Minimum permissions:***
- View files
- Download files
- View folders
***Optional permissions:***
- File sharing
- Upload files
- Delete files
- Rename files
- Move files
- Copy files
- Create new folders
- Delete folders
- Rename folders
#### SuperAdmin
***Minimum permissions:***
- View files
- Download files
- File sharing
- Upload files
- Delete files
- Rename files
- Move files
- Copy files
- View folders
- Create new folders
- Delete folders
- Rename folders
***Optional permissions (Admin panel):***
- Preferences
- Users
- Appearance
- Translations
- Statistics
## Max user quota (available space)
Available space will only affect users with dedicated folders and with the ability to upload files. If you set more than one directory per user, the limit will consider the sum of the assigned directories
**NOTE:** Available space considers the space used inside of the assigned folder(s), so if you assign the same folder to more than one user, they will share the same space. (if you assign 100Mb to User01 inside folder01 and 100Mb to User02 inside the same folder, if User01 uploads 100Mb, User02 will have no more space, and viceversa)
You can change the default values (in MB) inside of
`vfm-admin/index.php`
```php
$_QUOTA = array(
"10",
"20",
"50",
"100",
"200",
"500",
"1024", // 1GB
"2048", // 2GB
"5120", // 5GB
);
```
## Avatars (profile picture)
Profile pictures can be updated by users from their frontend profile editor
## Custom Fields
Since version 2.7 you can add some custom fields to every user (e.g: address, telephone...)
Edit te file `/vfm-admin/_content/users/**customfields-example.php**`, there are 3 examples: a simple text input, a select input and a textarea.
Set `'list' => true,` to list the field inside the users table.
After your edits rename the file in **customfields.php** (remove -example).
The new additional fields will appear on every user's form: registration, administration panel, user's panel.
# Appearance
The panel **Appearance** includes color pickers, a customizer and the options for the notification alerts
## Customizer
- Custom logo for the Navigation Bar
- Custom header image
- Header layout (Boxed / Wide)
- Header image margins and alignment
- Optional rich text description
## Colors
Choose your main color palette:
- Primary color: Buttons and links
- Dark color: Navbar and header
- Light color: Main content
The script will automatically create all the color variations based on the selected palette
- Custom color for the progress bar
## Templates
To create your custom HTML template: copy the php files you wish to edit
from the folder `/vfm-admin/template/`
to folder `/vfm-admin/_content/template/`
Additional files may be included inside the main index.php with the following php code:
```php
include dirname(__FILE__).'/vfm-admin'.$template->includeTpl('filename');
```
(replace `filename` with the name of the template part you want to include, without .php)
If the script does not find the file inside the `/vfm-admin/_content/template/` folder it will take the default one inside of `/vfm-admin/template/`
## Custom CSS
If you want to add some custom css you can do it writing inside the file `/vfm-admin/_content/template/style.css`
## Audio notifications
You can add your custom **Audio notification after upload** simply placing a new .mp3 file
inside the folder `/vfm-admin/_content/audio/`, it will be a new voice under the dropdown menu (Appearance > Notifications)
# Translations
VFM is expandable to every language! simply go to
Administration > Transltions, add new language and compile it or edit one of the
pre-existing.
You may choose to set your default language and hide
language menu from the front-end, or create your custom language
collection by adding some new and removing unwanted (English language
is the only required)
Untranslated terms will appear in your front end in this way: **>translate_key<**
# Statistics
Since version 1.2 there's the possibility to activate a statistics system who stores daily archives of main activities:
- Files download
- Files upload
- Audio play
- Files and folders deletion
- Folders creation
If you want to backup your statistics just download the .json files from the `vfm-admin/_content/log/` directory, or select a date range and download the statistics in .CSV format
# Privacy policy
To activate the "terms and conditions" checkbox inside the Registration form rename the file `/vfm-admin/_content/_registration-disclaimer.html` in `registration-disclaimer.html` (remove the underscore) and edit its contents.
To activate the "terms and conditions" checkbox inside the Login form rename the file `/vfm-admin/_content/_login-disclaimer.html` in `login-disclaimer.html` (remove the underscore) and edit its contents.
To activate the "Privacy policy" link inside the footer, rename the file `/vfm-admin/_content/_privacy-info.html` in `privacy-info.html` (remove the underscore) and edit ist contents.
# Password recovering
A password recovery system via e-mail is available
starting from version 1.3; if your account has a valid e-mail
associated, you can just click on "Lost your password?" under login
mask, and follow the instructions provided.
## Master Admin password recovering
if you lose your MasterAdmin password (and you haven't an e-mail address associated), open `/vfm-admin/users/users.php` file, and remove the encrypted password on **line 7**
( change it in: `'pass' => '',` )
```php
$_USERS = array (
0 =>
array (
'name' => 'admin',
'pass' => '',
'role' => 'superadmin',
...
```
After this operation you will be able to log in again as Master Admin with default password: **password**
# Hotlinking
## Apache server
in order to pevent hotlinking (direct access to your
files), the uploads directory must be a subdirectory of the main VFM,
and must have the `.htaccess` file provided inside of it.
That option is automatic on Apache servers. If you are on
NGINX or IIS server you should block the direct access to static files
inside your main uploads directory editing the server configuration.
## NGINX server
Since Nginx does not have an equivalent to the .htaccess file (i.e.
no directory level configuration files), you need to update the main
configuration and reload nginx for any changes to take effect.
```
location ~ /uploads/*.* {
deny all;
return 403;
}
```
This example assumes that the script has been installed inside the
root directory and the main uploads directory is /uploads/, otherwise
adjust the relative path.
## IIS server
Create a file `web.config` with the following content, and place it inside your main /uploads/ directory
```