Guest User

Untitled

a guest
Jul 2nd, 2020
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. if($_GET["сh"] == "a1"){
  2. header("Location:404.php");
  3. exit;
  4. }
  5. else{
  6. $_CITYKOEF_ = array(
  7. //$_GET['place'] => 'Price'
  8. "Moskva" =>"32",
  9. );
  10. $_PURPOSEKOEF_ = array(
  11. "GravityDrain" =>"20"
  12. );
  13. $_SUPPLYKOEF_ = array(
  14. "GravityDrain" =>"20"
  15. );
  16. $_WELDINGKOEF_= array(
  17. "GravityDrain" =>"20"
  18. );
  19. $priceGBN = floatval(array($_GET["place"])) * $_CITYKOEF_['Moskva'] * floatval(array($_GET["purpose"])) * $_PURPOSE_['GravityDrain']*$_GET["diameter"];
  20. $priceMaterials = floatval(array($_GET["place"])) * $_CITYKOEF_['Moskva'] * floatval(array($_GET["purpose"])) * $_PURPOSE_['GravityDrain']*$_GET["diameter"]*$_GET["long"];
  21. $priceWelding = floatval(array($_GET["place"])) * $_CITYKOEF_['Moskva'] * floatval(array($_GET["purpose"])) * $_PURPOSE_['GravityDrain']*$_GET["diameter"]*$_GET["long"];
  22.  
  23.  
  24. $mergedDate = array_merge($_GET,
  25. array("priceGBN"=>$priceGBN),
  26. array("priceMaterials" => $priceMaterials),
  27. array("priceWelding" =>$priceWelding),
  28. array("date" => $_GET['ch'])
  29. );
  30.  
  31. $_SESSION['gbnDate'] = $mergedDate;
  32. $message = "Цена ГБН{$priceGBN},Цена материалов{$priceMaterials},Цена сварки{$priceWelding}, Email заказчика - {$email}";
  33. mail($recepient,'subject', $message, "Content-type: text/plain; charset=\"utf-8\"\n From: $recepient");
  34.  
  35. header("Location: price.php");
  36. exit;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment