https://www.icyphoenix.com/viewtopic.php?f=28&t=8873&p=57932#p57932
-----------------------------------
TopoMotoV3X
Wed 02 Jan, 2013 17:30

[MOD] Avoid Renaming Files (dload.php) 2.0.0.86
-----------------------------------
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.

 [img]http://www.icyphoenix.com/files/images/3404/view_acp_configuration_en.png[/img] 

The affected files for this mod are as follows:

[i]
root/adm/
[b]admin_pa_settings.php[/b]

root/includes/pafiledb/
[b]functions_pafiledb.php[/b]

root/language/lang_italian/
[b]lang_admin_pafiledb.php[/b]

templates/common/acp/
[b]pa_admin_settings.tpl[/b][/i]

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:

[img]http://www.icyphoenix.it/files/images/222/view_database_pa_files_table.png[/img]

I also added controls for capital letters and spaces, which are not always interpreted correctly by the network.

[color=orange][size=10][i]Special thanks:[/i][/size]
[i][size=10]MaxWeb, Limun, mort.[/size][/i][/color]

[size=14][url=http://www.icyphoenix.it/dload.php?action=file&file_id=91][b][i]Download[/i][/b][/size]

Enjoy!  :mryellow:


