· 7 years ago · Oct 09, 2018, 11:04 AM
1<?php
2header('X-Frame-Options: SAMEORIGIN');
3session_start();
4
5
6
7if (isset($_SESSION['btc']))
8{
9
10 $amount = $_SESSION['btc'];
11 $price = $_SESSION['cur'];
12 $unixstamp = $_SESSION['timestamp'];
13 $formattime = date('Y-m-d h:i:s',$unixstamp);
14
15}else{
16
17 header("Location: index.php");
18
19}
20
21if (isset($_POST['Submit'])) {
22
23
24 $secretKey = "6LcMa3EUAAAAAFPKUrY34oaQCQ5O8XFaOATC0NOq";
25 $responseKey = $_POST['g-recaptcha-response'];
26 $userIP = $_SERVER['REMOTE_ADDR'];
27
28 $url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$userIP";
29 $response = file_get_contents($url);
30 $response = json_decode($response);
31
32 if($response->success == true)
33 {
34 $_SESSION['paypalemail'] = $_POST['paypalemail'];
35 $_SESSION['retouraddress'] = $_POST['retouraddress'];
36 $_SESSION['xsessionkey'] = uniqid();
37 $_SESSION['timestamp'] = time();
38
39 header("Location: confirmation.php");
40 }
41 else
42 {
43 header("Location: proceed.php");
44 }
45
46
47
48}
49
50
51
52
53?>
54<!doctype html>
55<html lang="en">
56<head>
57 <title>Deltapay · Order</title>
58 <?php include 'src/includes/importshead.php'; ?>
59</head>
60<body>
61
62
63 <!-- BEGIN HEADER -->
64 <?php include 'src/includes/header.php';?>
65 <!-- END header -->
66
67 <section class="site-hero site-sm-hero overlay" data-stellar-background-ratio="0.5" style="background-image: url(resources/images/pattern.svg); background-size: auto;">
68
69 </section>
70 <!-- END section -->
71
72 <section class="site-section">
73 <div class="container">
74 <div class="row justify-content-center">
75 <div class="col-md-7">
76 <div class="form-wrap">
77 <h2 class="mb-5 text-center">Proceed your sell-order</h2>
78 <h3 class="mb-5 text-muted text-center"><?php echo $amount;?>Ƀ / €<?php echo $price;?></h3>
79 <form action="" method="post">
80 <div class="row">
81 <div class="col-md-12 form-group">
82 <label for="name">Paypal Email</label>
83 <input type="email" id="ppemail" name="paypalemail" required="true" class="form-control py-2 ">
84 </div>
85 </div>
86 <div class="row">
87 <div class="col-md-12 form-group">
88 <label for="name">Retour Bitcoin Address</label>
89 <input type="retouraddress" id="retbtcaddr" name="retouraddress" required="true" class="form-control py-2 ">
90 </div>
91 </div>
92 <hr>
93 <div class="row mb-5">
94 <div class="col-md-12 form-group">
95 <div class="checkbox">
96 <label>
97 <input type="checkbox" name="agree" value="agree" /> I agree with the <a href="terms.php">terms and conditions</a>
98 </label>
99 </div>
100 <div class="checkbox">
101 <label>
102 <input type="checkbox" name="agree" value="agree" /> I agree that i filled in all fields <a href="correct.php">correctly</a>
103 </label>
104 </div>
105 <div class="g-recaptcha" data-sitekey="6LcMa3EUAAAAACG9D123Nrde2h0sMr9HeqbT6Btl"></div>
106 </div>
107 </div>
108 <div class="row">
109 <div class="col-md-12 text-center">
110 <input type="submit" name="Submit" class=" btn btn-success center-block btn-lg" value="Confirm">
111 </div>
112 </div>
113 </form>
114 </div>
115 </div>
116 </div>
117 </div>
118</section>
119
120<!-- BEGIN footer -->
121<?php include 'src/includes/footer.php';?>
122<!-- END footer -->
123
124<!-- loader -->
125<div id="loader" class="show fullscreen"><svg class="circular" width="48px" height="48px"><circle class="path-bg" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke="#eeeeee"/><circle class="path" cx="24" cy="24" r="22" fill="none" stroke-width="4" stroke-miterlimit="10" stroke="#f4b214"/></svg></div>
126
127<script src="resources/js/jquery-3.2.1.min.js"></script>
128<script src="resources/js/jquery-migrate-3.0.0.js"></script>
129<script src="resources/js/popper.min.js"></script>
130<script src="resources/js/bootstrap.min.js"></script>
131<script src="resources/js/owl.carousel.min.js"></script>
132<script src="resources/js/jquery.waypoints.min.js"></script>
133<script src="resources/js/jquery.stellar.min.js"></script>
134<script src="resources/js/jquery.animateNumber.min.js"></script>
135<script src="resources/js/jquery.magnific-popup.min.js"></script>
136<script src='https://www.google.com/recaptcha/api.js'></script>
137<script src="resources/js/main.js"></script>
138</body>
139</html>