c1.php 1006 B

123456789101112131415161718192021222324252627
  1. <?php
  2. //2020/08/07_c1.php_V1.0(新建立),存放位置:伺服器的http://60.250.156.230/cust/
  3. foreach($_POST as $key => $value){
  4. $$key = $value;}
  5. $namea =substr($_POST['name_ira'], 16);
  6. $nameb =substr($_POST['name_na'], 16);
  7. echo $namea , $nameb;
  8. /* ir_image1 a.tif~a8.tif */
  9. if($_POST['nr'] != "" && $_POST['data_ira'] != "" && $namea != ""){
  10. file_put_contents("./".$_POST['nr']."/c/"."$namea", base64_decode($_POST['data_ira']));
  11. }
  12. /* n_image1 b.tif~b8.tif */
  13. if($_POST['nr'] != "" && $_POST['c_na'] != "" && $nameb != ""){
  14. file_put_contents("./".$_POST['nr']."/c/"."$nameb", base64_decode($_POST['c_na']));
  15. }
  16. if($_POST['nr'] != "" && $_POST['data'] != "" && $_POST['name'] != ""){
  17. file_put_contents("./".$_POST['nr']."/im/PV.jpg", base64_decode($_POST['data']));
  18. }
  19. if($_POST['nr'] != "" && $_POST['p'] != "" && $_POST['p_name'] != ""){
  20. file_put_contents("./".$_POST['nr']."/p".$_POST['p_name']."/".$_POST['p_name'].".jpg", base64_decode($_POST['p']));
  21. }
  22. ?>