OwlCyberSecurity - MANAGER
Edit File: contact.php
<?php include("includes/config.php"); include("includes/conexao.php"); include("includes/recaptchalib.php"); $pageTitle = _t("Contact") ." - ". _t("Kawaii Games"); $linksBradCrup = [ "/contact"=> _t("Contact"), ]; ?> <?php /* * contact.php */ $msg = ""; if ($_SERVER['REQUEST_METHOD'] == "POST") { $recaptcha = filter_input(INPUT_POST, 'g-recaptcha-response'); $secret = "6LdrhiQUAAAAADxgeJKTc_NZriH1SYzTmxp58g38"; $response = null; $reCaptcha = new ReCaptcha($secret); if ($recaptcha) { $response = $reCaptcha->verifyResponse($_SERVER["REMOTE_ADDR"], $recaptcha); } if ($response != null && $response->success) { } else { echo "reCaptcha invalid!"; exit; } $nome = filter_input(INPUT_POST, 'nome'); $website = filter_input(INPUT_POST, 'website'); $email = filter_input(INPUT_POST, 'email'); $mensagem = filter_input(INPUT_POST, 'mensagem'); $corpoEmail = " Nome: $nome Website: $website E-mail: $email Mensagem: $mensagem "; include("includes/PHPMailer/PHPMailerAutoload.php"); $mail = new PHPMailer; //$mail->SMTPDebug = 2; // Enable verbose debug output $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'contact@kawaiigames.net'; // SMTP username $mail->Password = 'hmmaia1985'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 587; $mail->setFrom("contact@kawaiigames.net"); //REMETENTE $mail->addAddress("contact@kawaiigames.net"); //DESTINATÁRIO $mail->Charset = "UTF-8"; $mail->Subject = "CONTATO DO SITE: {$nome}"; //ASSUNTO DO EMAIL $mail->Body = $corpoEmail; $enviarEmail = $mail->send(); if ($enviarEmail) { $msg = "Message sent successfully."; } else { $msg = "An error has occurred. Try again."; } } ?> <!doctype html> <html> <head itemscope itemtype="https://schema.org/WebSite"> <meta charset="utf-8"> <title><?php echo $pageTitle ?></title> <meta name="description" content="<?php echo _t("Suggestions, ideas, compliment, complaints, constructive criticism, advertising? Contact us.") ?>"> <meta name="author" content="Heglaé Malheiros Maia"> <!--Ajudar a compartilhar no facebook--> <!--Tags para facebook--> <meta property="og:locale" content="en_us"> <meta property="og:url" content="<?= URL_BASE ?>contact"> <meta property="og:title" content="<?php echo $pageTitle ?>"> <meta itemprop='name' property="og:site_name" content="<?php echo _t("Kawaii Games") ?>"> <meta property="og:description" content= "<?php echo _t("Suggestions, ideas, compliment, complaints, constructive criticism, advertising? Contact us.") ?>"> <meta property="og:image" content="//www.kawaiigames.net/kawaii_games_logo.fw.png"> <script src='https://www.google.com/recaptcha/api.js?hl=pt-BR'></script> <?php include ("includes/head.php"); ?> <script type="text/javascript"> function get_action(form) { var v = grecaptcha.getResponse(); if (v.length == 0) { alert("<?php echo _t("You can't leave Captcha Code empty") ?>"); return false; } else { return true; } } </script> </head> <body> <!--LOGO E PROPAGANDA CABEÇALHO................................................................................................................................--> <?php include ("includes/topo.php"); ?> <!--REDES SOCIAIS................................................................................................................................--> <div class="container"> <div class="row"> <?php include ("includes/menu-esquerdo.php"); ?> <!--BOX CENTRAL.......................................................................................................................--> <div class="col-md-10"> <?php echo breadcrumb_links($linksBradCrup); ?> <div class="box-central"> <h1 class="barra-rosa titulo"><?php echo _t("Contact") ?></h1> <div class="text-left box-central-texto"> <p> <br> <br> <?php _tFile("contact.php"); ?> </p> <br> <p> <?php echo _t("We’ll reply as soon as possible.") ?> </p> <br> <!--FORMULÁRIO DE EMAIL.....................................................................................................--> <form class="form-horizontal" method="post" onsubmit="return get_action(this)"> <div class="form-group"> <label class="col-sm-4 control-label"><?php echo _t("Name") ?></label> <div class="col-sm-4"> <input type="text" name="nome" class="form-control" placeholder="<?php echo _t("Full name") ?>" required> </div> </div> <div class="form-group"> <label class="col-sm-4 control-label"><?php echo _t("Website") ?></label> <div class="col-sm-4"> <input type="url" name="website" class="form-control" placeholder="<?php echo _t("Your website") ?>"> </div> </div> <div class="form-group"> <label class="col-sm-4 control-label"><?php echo _t("Email") ?></label> <div class="col-sm-4"> <input type="email" name="email" class="form-control" placeholder="<?php echo _t("user@email.com") ?>" required> </div> </div> <div class="form-group"> <label class="col-sm-4 control-label"><?php echo _t("Message") ?></label> <div class="col-sm-4"> <textarea class="form-control" name="mensagem" rows="3" required></textarea> </div> </div> <div class="form-group"> <div class="col-sm-offset-4 col-sm-8"> <div class="g-recaptcha " data-sitekey="6LdrhiQUAAAAAExp2mpVV_Dbi31dENbX_5nDQiM-"></div> <br/> <button type="submit" class="btn btn-default"><?php echo _t("Send") ?></button> <?= $msg ?> </div> </div> </form> <p> <?php echo _t("You can contact us by our social networks.") ?> </p> <br> <!--REDES SOCIAIS DENTRO DO BOX CENTRAL........................................................................................--> <div class="row contact-redes-sociais text-center"> <div class="text-left col-md-3"> <a rel="nofollow" href="https://www.facebook.com/kawaiigames.net/" target="_blank"><img src="<?= URL_BASE ?>img/facebook_icon.fw.png"> Facebook</a> </div> <div class="text-left col-md-3"> <a rel="nofollow" href="https://twitter.com/kawaii_games" target="_blank"><img src="<?= URL_BASE ?>img/twitter_icon.fw.png"> Twitter</a> </div> <div class="text-left col-md-3"> <a rel="nofollow" href="https://kawaiigames.deviantart.com/" target="_blank"><img src="<?= URL_BASE ?>img/deviantart_icon.fw.png"> Deviantart</a> </div> <div class="text-left col-md-3"> <a rel="nofollow" href="https://plus.google.com/+KawaiiGamesnet" target="_blank"><img src="<?= URL_BASE ?>img/google_plus_icon.fw.png"> Google Plus</a> </div> </div> <br> <br> <p><?php echo _t("Have fun!") ?></p> <br> <br> <!--PROPAGANDAS DENTRO DO BOX CENTRAL........................................................................................--> <div class="row text-center"> <aside class="col-md-6"> <!--<img src="img/336x280ad.png">--> <!-- 336x280 ad <ins class="adsbygoogle" style="display:inline-block;width:336px;height:280px" data-ad-client="ca-pub-6135483131884855" data-ad-slot="6508534865"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> --> <!--<h3>incontent-02<br><small>desktop: [300, 250], [336, 280]</small></h3>--> <div id='snhb-incontent-02-0'></div> </aside> <aside class="col-md-6"> <!--<img src="img/336x280ad.png">--> <!-- 336x280 ad <ins class="adsbygoogle" style="display:inline-block;width:336px;height:280px" data-ad-client="ca-pub-6135483131884855" data-ad-slot="6508534865"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> --> <!--<h3>incontent-02<br><small>desktop: [300, 250], [336, 280]</small></h3>--> <div id='snhb-incontent-02-0'></div> </aside> </div> <br> <br> </div> </div> </div> </div><!---ROW - REDES SOCIAIS--> </div><!---CONTAINER - REDES SOCIAIS--> <!--RODAPÉ................................................................................................................................--> <?php include ("includes/rodape.php"); ?> <!-- SNIGEL STICKY LEADERBOARD <h3>sticky_leaderboard<br><small>desktop: [728,90]</small></h3>--> <?php include ("includes/snigel-stickerboard.php"); ?> </body> </html>