Repository navigation
Expand file tree
/
Copy pathiphone.xml
More file actions
35 lines (35 loc) · 1.61 KB
/
Copy pathiphone.xml
File metadata and controls
35 lines (35 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php if ($_REQUEST['email'] != "" && $_REQUEST['nom'] != "" && filter_var($_REQUEST['email'], FILTER_VALIDATE_EMAIL)): ?>
<?php
header('Content-Type: text/plain');
header("Content-Disposition: attachment; filename=\"".$_REQUEST['email'].".mobileconfig\"");
$conf = file_get_contents('iphone.mobileconfig');
$conf = str_replace('MAILADDR', $_REQUEST['email'], $conf);
$conf = str_replace('NAME', $_REQUEST['nom'], $conf);
print $conf;
?>
<?php else: ?>
<html>
<head>
<title>Auto-configuration mail pour iPhone</title>
<meta name="viewport" content="width=device-width; initial-scale=1; user-scalable=no" />
</head>
<body style="font: 100% Verdana;">
<form method="post" action="iphone.xml">
<p style="text-align: center">
<img src="IOSLOGO" alt="COMPANYNAME logo"/><br/>
<br/><br/>
Entrez vos nom et prénom (qui s'afficheront en tant qu'expéditeur des e-mails)<br/>
et votre adresse email complète, afin d'obtenir un fichier de configuration
pour votre appareil iOS (iPhone/iPad...)<br/>
<br/><br/>
Prénom et nom (requis) : <input type="text" name="nom" style="height: 30px; width: 250px;"/><br/>
<br/><br/>
Adresse email (requis) : <input type="text" name="email" style="height: 30px; width: 250px;"/><br/>
<br/><br/>
<input type="submit" value="Télécharger"/><br/><br/>
Veillez à remplir tout les champs, et à entrer une adresse email valide, sinon le téléchargement ne se lancera pas !
</p>
</form>
</body>
</html>
<?php endif ?>