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
1 changed files with 1 additions and 0 deletions

View File

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