slitaz-forge view usbkey/preorder.php @ rev 597
No RPI version 2 support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 08 18:44:40 2015 +0200 (2015-08-08) |
parents | 87d4ccc604d7 |
children |
line source
1 <?php
2 include("./head.php");
4 echo '<div id="content">';
5 if (!isset($_POST['host']) || $_POST['host'] == "") { // capcha
6 $data = serialize($_POST);
7 $hash = md5($data);
8 @mkdir("pending/".substr($hash,0,1),0777,TRUE);
9 $fp = fopen("pending/".substr($hash,0,1)."/".$hash, "w");
10 fwrite($fp,$data);
11 fclose($fp);
13 system(dirname($_SERVER["SCRIPT_FILENAME"])."/helper.sh '".
14 $_POST['email']."' '".$_POST['surname']."' '".$_POST['size'].
15 "' ".$hash);
16 echo "Thanks ".$_POST['surname'].".<br>\nAn email has been sent to ".$_POST['email'].".";
17 }
18 echo '</div>';
19 include("./tail.php");
20 ?>