1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-25 05:22:59 +00:00

Packer: Suggest download with appropriate filename.

This commit is contained in:
Starbeamrainbowlabs 2018-10-31 15:13:15 +00:00
parent e0278bb5fd
commit 7e77412099
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -30,6 +30,7 @@ if(isset($_GET["modules"]))
if(php_sapi_name() != "cli") if(php_sapi_name() != "cli")
{ {
header("content-type: text/php"); header("content-type: text/php");
header("content-disposition: attachment; filename=\"index.php\"");
} }
if(php_sapi_name() == "cli") echo("Reading in core files..."); if(php_sapi_name() == "cli") echo("Reading in core files...");