Advertisement
GokhanKara

Untitled

May 3rd, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.75 KB | None | 0 0
  1. <?php  
  2. $referer = $_SERVER['HTTP_REFERER'];  
  3. if ($referer == "")  
  4. {  
  5. echo '<title>Error!</title>
  6.         <center>
  7.         </br></br>
  8.         </br></br></br></br>
  9.         </br></br>
  10.         </br></br>
  11.         <img src="https://cdn2.iconfinder.com/data/icons/freecns-cumulus/32/519791-101_Warning-128.png"/>
  12.         </br>
  13.         <p style="font-family:Raleway;">An error occurred ? Please return to the previous page again by click on the button download.
  14.         </br></br><b>Plase wait..</b></p>
  15.         <meta http-equiv="refresh" content="5;URL=http://www.gokhankara.net">
  16.         </center>
  17.         ';  
  18. }  
  19. else   {   ?>
  20.  
  21. <?php
  22. /*
  23. Template Name: Download
  24. */
  25. get_header(); ?>
  26.        
  27. <div class="col-md-12 mgizle about-us-box">
  28.     <div class="container about-us">
  29.         <div class="image1"><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_directory');?>/img/logo2.png" alt="" /></a></div>
  30.         <div class="image2"><img src="<?php bloginfo('template_directory');?>/img/earphones.png" alt="" /></div>
  31.         <div class="image3"><img src="<?php bloginfo('template_directory');?>/img/mac-keyboard.png" alt="" /></div>
  32.         <div class="image4"><img src="<?php bloginfo('template_directory');?>/img/pencil.png" alt="" /></div>
  33.         <div class="image5"><img src="<?php bloginfo('template_directory');?>/img/mouse.png" alt="" /></div>
  34.         <div class="title"><h1>.download!</h1></div>
  35.     </div>
  36. </div>
  37.    
  38.  
  39. <div class="col-md-12 pgizle about-us-box">
  40.     <div class="container">
  41.         <div class="klavye"><img class="img-responsive" src="<?php bloginfo('template_directory');?>/img/mac-keyboard.png" alt="" /></div>
  42.         <img class="mlogo img-responsive" src="<?php bloginfo('template_directory');?>/img/logo2.png" alt="" />
  43.     </div>
  44. </div>
  45.  
  46. </header>
  47.  
  48. <section>
  49.     <div class="container">
  50.         <div class="education col-md-12 item-header text-center">
  51.             <h1>Safe Download</h1>
  52.             <p>Please enter your email address for a download safe. Other free stuff you need in order to get rid of all of your email address.</br>Please enter a valid email address please.</p>
  53.            
  54.            
  55.             <h3><?php echo $_POST["itemname"];?></h3>
  56.                 <form  id="email-form" name="email-form" method="POST" action="?post_email" >
  57.        
  58.  
  59.                     <input type="text" name="email" class="form-control" placeholder="Email adress..">
  60.                     <hr/>
  61.                     <input type="hidden"  name="dwlink" class="form-control" value="<?php echo base64_encode($_POST["dwlink"]);?>">
  62.                     <input type="hidden"  name="itemname" value="<?php echo $_POST["itemname"];?>" class="form-control" >
  63.                     <input type="hidden"  name="itemthumb" value="<?php echo $_POST["itemthumb"];?>" class="form-control" >
  64.                    
  65.                     <input type="submit" class="btn btn-default btn-contact-submit" value="Submit!" />
  66.                    
  67.                     <?php
  68.  
  69.                     if (isset($_GET['post_email'])) {
  70.                    
  71.  
  72.                     require_once("class.phpmailer.php");
  73.                    
  74.                     $downloadlink = $_POST["dwlink"];
  75.                     $useremail = $_POST["email"];
  76.                     $itemname = $_POST["itemname"];
  77.                     $itemthumb = $_POST["itemthumb"];
  78.                    
  79.                     $mail = new PHPMailer();
  80.                     $mail->IsSMTP();
  81.                     $mail->Host = "mail.gokhankara.net"; // Burada mail için kullandığınız sunucu adını yazmalısınız. Genellikle mail.alanadi.com şeklindedir.
  82.                     $mail->SMTPAuth = true;
  83.                     $mail->Username = "hi@gokhankara.net"; // Alan adınıza ait eposta hesabınızı yazınız Örn. info@alanadi.com
  84.                     $mail->Password = "gokgok0606gg"; // Bu eposta hesabınıza ait şifreniz
  85.                     $mail->From = "hi@gokhankara.net";  // Epostanızın gönderileceği adres. Yukarıdaki eposta adresi ile aynı olmalıdır.
  86.                     $mail->FromName = "Gökhan KARA"; //Kimden kısmında görünecek isim
  87.                     $mail->AddAddress($useremail); //Mail gönderilecek adresleri ekliyoruz.
  88.                     $mail->AddBCC('gkdesigned@gmail.com', 'Diğer Adresim'); //Diğer e-mail adresi - gösterilmez.
  89.                     $mail->CharSet = 'UTF-8';
  90.                     $mail->IsHTML(true); //Html Formatında göndereceğiz.
  91.                     $mail->Subject = "Free PSD File download link! • www.gokhankara.net";
  92.                     $mail->Body = '
  93.                     <!DOCTYPE html>
  94.                     <head>
  95.                     </head>
  96.  
  97.                       <body>
  98.                        
  99.                         <center>
  100.                         <div class="container">
  101.                           <div class="header clearfix">
  102.                             <h1>'.$_POST['itemname'].'</h1>
  103.                           </div>
  104.  
  105.                             <h3 class="text-muted">Free browse to the file, download it and use it.</h3>
  106.                             <p class="lead">Use the links below to download the file.</p>
  107.                             <p><a class="btn btn-lg btn-success" href="http://www.gokhankara.net/filedownload/?email='.$_POST['email'].'&dwlink='.$_POST['dwlink'].'" role="button">Download File!</a></p>
  108.                           <p>Thank you!</p>
  109.                           </div>
  110.  
  111.                         <div class="row marketing">
  112.                             <div class="col-lg-6">
  113.                               <h4>You Email</h4>
  114.                               <p>You Email : '.$_POST['email'].'</p>
  115.                         </div>
  116.                            
  117.                           </div>
  118.  
  119.                           <footer class="footer">
  120.                             <p>&copy; 2015 Gökhan Kara - İnteraktif Tasarım Uzmanı - www.gokhankara.net</p>
  121.                           </footer>
  122.        
  123.                         </div> <!-- /container -->
  124.                         </center>
  125.                       </body>
  126.                     </html>
  127.                     '; // Bu alanı değiştirmeyiniz.
  128.  
  129.                     if(!$mail->Send())
  130.                     {
  131.                        echo '<font color="#F62217"><b>Sending Error: ' . $mail->ErrorInfo . '</b></font>';
  132.                        exit;
  133.                     }
  134.                     echo '</br><div class="w-container hello-info"><h2>The download file link has been sent to your email address. Please check your email address please!
  135.                     </br>
  136.                     Please remember to look in your spam box!</h2>
  137.                     </br><p>Thank you!</div>';
  138.                     } else {
  139.                          echo '<div class="w-container hello-info"><h3>All fields must be completed.</h3></div>';
  140.                     }
  141.  
  142.                     ?>
  143.                 </form>
  144.    
  145.    
  146.            
  147.             <?php echo "You've registered your email address : <strong>" . $_POST["email"]; ?> </strong>
  148.            
  149.            
  150.         <hr/>
  151.        
  152.         <a href="https://www.paypal.me/GokhanKara/1" target="_blank">
  153.           <img src="<?php bloginfo('template_directory');?>/img/social/paypal.png"/>
  154.         </a>
  155.        
  156.        
  157.         <a href="http://twitter.com/share?url=<?php echo $_POST["pagelink"]; ?>&text=Free PSD File download!&hashtags=GökhanKara,Designer,Free,behance,dribbble,themeforest" class="share-btn" target="_blank">
  158.             <img src="<?php bloginfo('template_directory');?>/img/social/twitter.png"/>
  159.         </a>
  160.        
  161.         <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $_POST["pagelink"]; ?>" class="share-btn" target="_blank">
  162.           <img src="<?php bloginfo('template_directory');?>/img/social/facebook.png"/>
  163.         </a>
  164.        
  165.         <a href="https://plus.google.com/share?url=<?php echo $_POST["pagelink"]; ?>" class="share-btn" target="_blank">
  166.           <img src="<?php bloginfo('template_directory');?>/img/social/google_plusone_share.png"/>
  167.         </a>
  168.        
  169.         </br></br><b>More professional and free to work on social networks, please your taste!</b>
  170.         </br>Thank You!
  171.            
  172.            
  173.         <hr/>
  174.        
  175.    
  176.        
  177.        
  178.        
  179.         </section>
  180.                
  181.         </div>
  182.  
  183.  
  184.         </div>
  185.  
  186. </section>
  187.  
  188. </br></br></br>
  189. <?php
  190.     get_footer();
  191. ?>
  192. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement