dulldusk / phpfm

phpFileManager is a complete filesystem management tool on a single file. This is a tool meant for rapid file access, and also to verify the server php configuration and security. The script can be renamed and deployed on an unique known url, and offers password protection.
https://sourceforge.net/projects/phpfm/
Other
216 stars 98 forks source link

Fix: Call to undefined function apache_request_headers() #36

Closed zupdo closed 3 years ago

zupdo commented 4 years ago

Hi Fabrício, for running on ningx/fpm i had to move the function definition apache_request_headers() to a place before first call of get_base64_file()

hope that helps, Udo

dulldusk commented 3 years ago

Thanks https://github.com/zupdo I will not merge your pull request, i will do better. I will move all !function_exists declarations to a new special block on the start of the script. This way, if we have to add more functions on the future, we will never fall again on this problem you explained. I will be sure to add a note on the changelog for your contribution. Thanks again.