Hello everyone, this mod can be set from ACP/Downloads/Configuration lets you choose whether or not to rename the files that are uploaded from the download section on your server.
The affected files for this mod are as follows:
root/adm/
admin_pa_settings.php
root/includes/pafiledb/
functions_pafiledb.php
root/language/lang_italian/
lang_admin_pafiledb.php
templates/common/ACP/
pa_admin_settings.tpl
Including the insertion of the appropriate field (by query) in the table, ip_pa_config of your database.
Nothing changed for the download of the file, you will always have the name of origin, even if, in the case of duplicate names, in the title of the second file will be added a series of random numbers, to avoid overwriting them.
Below is an example of three files with the same name, seen in the database:
I also added controls for capital letters and spaces, which are not always interpreted correctly by the network.
Special thanks:
MaxWeb, Limun, mort.
Download
Enjoy!