Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $referer = $_SERVER['HTTP_REFERER'];
- if ($referer == "")
- {
- echo '<title>Error!</title>
- <center>
- </br></br>
- </br></br></br></br>
- </br></br>
- </br></br>
- <img src="https://cdn2.iconfinder.com/data/icons/freecns-cumulus/32/519791-101_Warning-128.png"/>
- </br>
- <p style="font-family:Raleway;">An error occurred ? Please return to the previous page again by click on the button download.
- </br></br><b>Plase wait..</b></p>
- <meta http-equiv="refresh" content="5;URL=http://www.gokhankara.net">
- </center>
- ';
- }
- else { ?>
- <?php
- /*
- Template Name: Download
- */
- get_header(); ?>
- <div class="col-md-12 mgizle about-us-box">
- <div class="container about-us">
- <div class="image1"><a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_directory');?>/img/logo2.png" alt="" /></a></div>
- <div class="image2"><img src="<?php bloginfo('template_directory');?>/img/earphones.png" alt="" /></div>
- <div class="image3"><img src="<?php bloginfo('template_directory');?>/img/mac-keyboard.png" alt="" /></div>
- <div class="image4"><img src="<?php bloginfo('template_directory');?>/img/pencil.png" alt="" /></div>
- <div class="image5"><img src="<?php bloginfo('template_directory');?>/img/mouse.png" alt="" /></div>
- <div class="title"><h1>.download!</h1></div>
- </div>
- </div>
- <div class="col-md-12 pgizle about-us-box">
- <div class="container">
- <div class="klavye"><img class="img-responsive" src="<?php bloginfo('template_directory');?>/img/mac-keyboard.png" alt="" /></div>
- <img class="mlogo img-responsive" src="<?php bloginfo('template_directory');?>/img/logo2.png" alt="" />
- </div>
- </div>
- </header>
- <section>
- <div class="container">
- <div class="education col-md-12 item-header text-center">
- <h1>Safe Download</h1>
- <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>
- <h3><?php echo $_POST["itemname"];?></h3>
- <form id="email-form" name="email-form" method="POST" action="?post_email" >
- <input type="text" name="email" class="form-control" placeholder="Email adress..">
- <hr/>
- <input type="hidden" name="dwlink" class="form-control" value="<?php echo base64_encode($_POST["dwlink"]);?>">
- <input type="hidden" name="itemname" value="<?php echo $_POST["itemname"];?>" class="form-control" >
- <input type="hidden" name="itemthumb" value="<?php echo $_POST["itemthumb"];?>" class="form-control" >
- <input type="submit" class="btn btn-default btn-contact-submit" value="Submit!" />
- <?php
- if (isset($_GET['post_email'])) {
- require_once("class.phpmailer.php");
- $downloadlink = $_POST["dwlink"];
- $useremail = $_POST["email"];
- $itemname = $_POST["itemname"];
- $itemthumb = $_POST["itemthumb"];
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->Host = "mail.gokhankara.net"; // Burada mail için kullandığınız sunucu adını yazmalısınız. Genellikle mail.alanadi.com şeklindedir.
- $mail->SMTPAuth = true;
- $mail->Username = "hi@gokhankara.net"; // Alan adınıza ait eposta hesabınızı yazınız Örn. info@alanadi.com
- $mail->Password = "gokgok0606gg"; // Bu eposta hesabınıza ait şifreniz
- $mail->From = "hi@gokhankara.net"; // Epostanızın gönderileceği adres. Yukarıdaki eposta adresi ile aynı olmalıdır.
- $mail->FromName = "Gökhan KARA"; //Kimden kısmında görünecek isim
- $mail->AddAddress($useremail); //Mail gönderilecek adresleri ekliyoruz.
- $mail->AddBCC('gkdesigned@gmail.com', 'Diğer Adresim'); //Diğer e-mail adresi - gösterilmez.
- $mail->CharSet = 'UTF-8';
- $mail->IsHTML(true); //Html Formatında göndereceğiz.
- $mail->Subject = "Free PSD File download link! • www.gokhankara.net";
- $mail->Body = '
- <!DOCTYPE html>
- <head>
- </head>
- <body>
- <center>
- <div class="container">
- <div class="header clearfix">
- <h1>'.$_POST['itemname'].'</h1>
- </div>
- <h3 class="text-muted">Free browse to the file, download it and use it.</h3>
- <p class="lead">Use the links below to download the file.</p>
- <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>
- <p>Thank you!</p>
- </div>
- <div class="row marketing">
- <div class="col-lg-6">
- <h4>You Email</h4>
- <p>You Email : '.$_POST['email'].'</p>
- </div>
- </div>
- <footer class="footer">
- <p>© 2015 Gökhan Kara - İnteraktif Tasarım Uzmanı - www.gokhankara.net</p>
- </footer>
- </div> <!-- /container -->
- </center>
- </body>
- </html>
- '; // Bu alanı değiştirmeyiniz.
- if(!$mail->Send())
- {
- echo '<font color="#F62217"><b>Sending Error: ' . $mail->ErrorInfo . '</b></font>';
- exit;
- }
- 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!
- </br>
- Please remember to look in your spam box!</h2>
- </br><p>Thank you!</div>';
- } else {
- echo '<div class="w-container hello-info"><h3>All fields must be completed.</h3></div>';
- }
- ?>
- </form>
- <?php echo "You've registered your email address : <strong>" . $_POST["email"]; ?> </strong>
- <hr/>
- <a href="https://www.paypal.me/GokhanKara/1" target="_blank">
- <img src="<?php bloginfo('template_directory');?>/img/social/paypal.png"/>
- </a>
- <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">
- <img src="<?php bloginfo('template_directory');?>/img/social/twitter.png"/>
- </a>
- <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $_POST["pagelink"]; ?>" class="share-btn" target="_blank">
- <img src="<?php bloginfo('template_directory');?>/img/social/facebook.png"/>
- </a>
- <a href="https://plus.google.com/share?url=<?php echo $_POST["pagelink"]; ?>" class="share-btn" target="_blank">
- <img src="<?php bloginfo('template_directory');?>/img/social/google_plusone_share.png"/>
- </a>
- </br></br><b>More professional and free to work on social networks, please your taste!</b>
- </br>Thank You!
- <hr/>
- </section>
- </div>
- </div>
- </section>
- </br></br></br>
- <?php
- get_footer();
- ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement