slitaz-forge view usbkey/resend.php @ rev 422
doc: remove old style and prepare for a new one. pangolin: add up-doc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 15 14:24:29 2014 +0100 (2014-01-15) |
parents | |
children |
line source
1 <?php
2 $i = 1;
3 for ($i = 1; isset($argv[$i]); $i++) {
4 $hash = basename($argv[$i]);
5 $data = file_get_contents($argv[$i]);
6 $_POST = unserialize($data);
8 system(dirname($_SERVER["SCRIPT_FILENAME"])."/helper.sh '".
9 $_POST['email']."' '".$_POST['surname']."' '".$_POST['size'].
10 "' ".$hash);
11 }
12 ?>