slitaz-forge diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/usbkey/resend.php Wed Jan 15 14:24:29 2014 +0100 1.3 @@ -0,0 +1,12 @@ 1.4 +<?php 1.5 +$i = 1; 1.6 +for ($i = 1; isset($argv[$i]); $i++) { 1.7 + $hash = basename($argv[$i]); 1.8 + $data = file_get_contents($argv[$i]); 1.9 + $_POST = unserialize($data); 1.10 + 1.11 +system(dirname($_SERVER["SCRIPT_FILENAME"])."/helper.sh '". 1.12 + $_POST['email']."' '".$_POST['surname']."' '".$_POST['size']. 1.13 + "' ".$hash); 1.14 +} 1.15 +?>