Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.41 KB | None | 0 0
  1. <?php
  2. if(isset($_POST['email'])) {
  3.  
  4.     // EDIT THE 2 LINES BELOW AS REQUIRED
  5.     $email_to = "order@grimmbonez.de";
  6.     $email_subject = "YOUR ORDER | Thank you!";
  7.  
  8.     function died($error) {
  9.         // your error code can go here
  10.         echo "We are very sorry, but there were error(s) found with the form you submitted. ";
  11.         echo "These errors appear below.<br /><br />";
  12.         echo $error."<br /><br />";
  13.         echo "Please go back and fix these errors.<br /><br />";
  14.         die();
  15.     }
  16.  
  17.  
  18.     // validation expected data exists
  19.     if(!isset($_POST['name']) ||
  20.         !isset($_POST['email']) ||
  21.         !isset($_POST['steamurl']) ||
  22.         !isset($_POST['steamurl'])) {
  23.         died('We are sorry, but there appears to be a problem with the form you submitted.');      
  24.     }
  25.  
  26.      
  27.  
  28.     $name= $_POST['name']; // required
  29.     $email= $_POST['email']; // required
  30. $steamurl= $_POST['steamurl']; // required
  31.  
  32.     $error_message = "";
  33.     $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}$/';
  34.  
  35.   if(!preg_match($email_exp,$email)) {
  36.     $error_message .= 'The email Address you entered does not appear to be valid.<br />';
  37.   }
  38.  
  39.     $string_exp = "/^[A-Za-z .'-]+$/";
  40.  
  41.   if(!preg_match($string_exp,$name)) {
  42.     $error_message .= 'The Name you entered does not appear to be valid.<br />';
  43.   }
  44.  
  45.  
  46.  
  47.  
  48.   if(strlen($error_message) > 0) {
  49.     died($error_message);
  50.   }
  51.  
  52.     $email_message = "Form details below.nn";
  53.  
  54.      
  55.     function clean_string($string) {
  56.       $bad = array("content-type","bcc:","to:","cc:","href");
  57.       return str_replace($bad,"",$string);
  58.     }
  59.  
  60.      
  61.  
  62.     $email_message .= "Name: ".clean_string($name)."n";
  63.     $email_message .= "E-Mail: ".clean_string($email)."n";
  64.     $email_message .= "Stream Profile: ".clean_string($streamurl)."n";
  65.  
  66. // create email headers
  67. $headers = 'From: '.$email."rn".
  68. 'Reply-To: '.$email."rn" .
  69. 'X-emailer: PHP/' . phpversion();
  70. @email($email_to, $email_subject, $email_message, $headers); 
  71. ?>
  72.  
  73. <!-- include your own success html here -->
  74.  
  75. Thank you for contacting us. We will be in touch with you very soon.
  76.  
  77. <?php
  78.  
  79. }
  80. ?>
  81.  
  82. <form action="send.php" method="post">
  83.  
  84. <h1>order process</h1>
  85.  
  86. <fieldset><br>
  87. <legend><span class="number">1</span>Your basic info</legend>
  88. <label for="name">Name:</label>
  89. <input type="name" id="name" name="user_name" placeholder="James Hock" required>
  90.  
  91. <label for="mail">Paypal or <font color="#eb01b2">active</font> E-mail!:</label>
  92. <input type="email" id="email" name="user_email" placeholder="JamesHock@gmail.com" required>
  93.  
  94. <label for="password">Steam Profile URL:</label>
  95. <input type="name" id="steamurl" name="user_url" placeholder="steamcommunity.com/id/GriwmBonez/" required>
  96. <br><br>
  97. <legend><span class="number">2</span>What are you looking for?</legend><br>
  98. <input required type="radio" id="logo" value="under_13" name="user_age"><label for="under_13" class="light">Vectorized Logo |>> <font color="#eb01b2"> € 7,99</font></label><br>
  99. <br>
  100. <input type="radio" id="artworknormal" value="over_13" name="user_age"><label for="over_13" class="light">Steam Profile Artwork <font color="grey">[ Normal ]</font> |>> <font color="#eb01b2"> € 8,99</font></label><br>
  101. <input type="radio" id="artworkglitch" value="under_13" name="user_age"><label for="under_13" class="light">Steam Profile Artwork <font color="grey">[ Glitch ]</font> |>> <font color="#eb01b2"> € 12,99</font></label><br>
  102. <br>
  103. <input type="radio" id="mpghthreadnormal" value="over_13" name="user_age"><label for="over_13" class="light">MPGH Thread <font color="grey">[ Normal ]</font> |>> <font color="#eb01b2"> € 15,99</font></label><br>
  104. <input type="radio" id="mpghthreadrefundnormal" value="under_13" name="user_age"><label for="under_13" class="light">MPGH Thread <font color="grey">[ REFUND SERVICE | Normal ]</font> |>> <font color="#eb01b2"> € 18,99</font></label><br>
  105. <input type="radio" id="mpghthreadplus" value="over_13" name="user_age"><label for="over_13" class="light">MPGH Thread <font color="#eb01b2">Plus+</font> <font color="grey">[ Animated ]</font> |>> <font color="#eb01b2"> € 22,99</font></label><br>
  106. <input type="radio" id="mpghthreadplusrefund" value="under_13" name="user_age"><label for="under_13" class="light">MPGH Thread <font color="#eb01b2">Plus+</font> <font color="grey">[ REFUND SERVICE | Animated ]</font> |>> <font color="#eb01b2"> € 28,99</font></label><br>
  107. <input type="radio" id="mpghsignature" value="over_13" name="user_age"><label for="over_13" class="light">MPGH Signature<font color="grey">[ Animated ]</font> |>> <font color="#eb01b2"> € 10,99</font></label><br>
  108. <input type="radio" id="mpghavatar" value="over_13" name="user_age"><label for="over_13" class="light">MPGH Avatar<font color="grey">[ Animated ]</font> |>> <font color="#eb01b2"> € 9,99</font></label><br>
  109. <br>
  110. <input type="radio" id="wallpaper" value="over_13" name="user_age"><label for="over_13" class="light">Your own Wallpaper <font color="grey">[ Clean with own Logo ]</font> |>> <font color="#eb01b2"> € 19,99</font></label><br>
  111. <input type="radio" id="twitchrevamp" value="over_13" name="user_age"><label for="over_13" class="light">Twitch Revamp <font color="grey">[ Banner,Avatar,Panels,Offline ]</font> |>> <font color="#eb01b2"> € 25,99</font></label><br>
  112. </fieldset>
  113.  
  114.  
  115. <fieldset>
  116. <legend><span class="number">3</span>Payment & Information</legend>
  117. <label for="job" >Payment:</label>
  118. <select id="job" name="user_job" required>
  119. <option disabled selected value> -- select an option -- </option>
  120. <option value="frontend_developer">Paypal</option>
  121. <option value="php_developor">Paysafecard [ Only German Customers ]</option>
  122. <option value="python_developer">Amazon Gift Card [ Only German Customers ]</option>
  123. <option value="rails_developer">CS:GO Keys</option>
  124. <option value="rails_developer">CS:GO Skins</option>
  125. </select>
  126. <label for="job" > Waiting time in <strong>workdays</strong>:</label>
  127. <select id="job" name="user_job" required>
  128. <option disabled selected value> -- select an option -- </option>
  129. <option required value="frontend_developer">Normal [ 2-3d ] <font color="grey">>> </font><font color="#eb01b2"> € 0</font> </option>
  130. <option value="php_developor">Express [ 12h - 1d ] <font color="grey">>> </font><font color="#eb01b2"> € 5</font> </option>
  131. </select>
  132. <label for="bio">Terms of Service:</label>
  133. <font style="size: 5%;">
  134. <p><font color="#eb01b2">[ §1 ]</font> | <font color="grey">>></font> There won't be any refund after the payment.</p>
  135. <p><font color="#eb01b2">[ §2 ]</font> | <font color="grey">>></font> All new customers go first. </p>
  136. <p><font color="#eb01b2">[ §3 ]</font> | <font color="grey">>></font> We have the right to decline your order anytime.</p>
  137. <p><font color="#eb01b2">[ §5 ]</font> | <font color="grey">>></font> If you purchased Express Service but the order is taking more time than expected, you can ask for a discount code of 25%.</p>
  138. <p><font color="#eb01b2">[ §4 ]</font> | <font color="grey">>></font> Purchases with CS:GO Keys, Skins and Paysafecard->[Germany only]<br> have a 40% surcharge. -> [ Normal Keys + 1 Surcharge ]</p>
  139. <p><font color="#eb01b2">[ §6 ]</font> | <font color="grey">>></font> We only work in workdays like any other person, saturday and sunday as workdays are only available for express service.</p>
  140. <p><font color="#eb01b2">[ §6 ]</font> | <font color="grey">>></font> We can change the ToS everytime we want, pls read them good before purchasing.</p>
  141. <p><font color="#eb01b2">[ §7 ]</font> | <font color="grey">>></font> With purchasing our service you accept every term in here and you also accept a newsletter registration. [ no spam / just for discounts & information ]</p>
  142. <p><font color="#eb01b2">[ §8 ]</font> | <font color="grey">>></font> All orders will be completed in the order they were received</p>
  143. </font>
  144.  
  145.  
  146.  
  147. <br><br>
  148. <label for="bio">Information about your order! <font color="#eb01b2">[ Ideas | Remarks | Colors | Texts ]</font> :</label>
  149. <textarea style="width:400px; height:200px; resize: none !IMPORTANT;" id="bio" name="user_bio" required></textarea>
  150.  
  151.  
  152. <br><br>
  153. <hr>
  154. <br><center>
  155. <input required type="checkbox" id="business" value="interest_business" name="user_interest"><label class="light" for="business"><font color="grey">I accept every ToS, and want to purchase a service.</font></label>
  156. </center> </fieldset><center>
  157. <div required class="g-recaptcha" data-sitekey="6LfVgSAUAAAAACXDi1l1UnFxTGadeMO5TphsaCGN"></div><br></center><br><br>
  158. <button type="submit"><strong>Order Now!</strong></button>
  159. </form>
  160.  
  161. @email($email_to, $email_subject, $email_message, $headers);
  162.  
  163. mail($email_to, $email_subject, $email_message, $headers);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement