Unverified Commit 42a0125a authored by MegaS0ra's avatar MegaS0ra Committed by GitHub
Browse files

Replaced mimetype for OS X compatibility

parent 3f7e93a3
<?php if ($_REQUEST['email'] != "" && $_REQUEST['nom'] != "" && filter_var($_REQUEST['email'], FILTER_VALIDATE_EMAIL)): ?> <?php if ($_REQUEST['email'] != "" && $_REQUEST['nom'] != "" && filter_var($_REQUEST['email'], FILTER_VALIDATE_EMAIL)): ?>
<?php <?php
header('Content-Type: text/plain'); header('Content-Type: application/x-apple-aspen-config');
header("Content-Disposition: attachment; filename=\"".$_REQUEST['email'].".mobileconfig\""); header("Content-Disposition: attachment; filename=\"".$_REQUEST['email'].".mobileconfig\"");
$conf = file_get_contents('iphone.mobileconfig'); $conf = file_get_contents('iphone.mobileconfig');
$conf = str_replace('%email%', $_REQUEST['email'], $conf); $conf = str_replace('%email%', $_REQUEST['email'], $conf);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment