2016-11-23 6 views
0

Es ist clientseitige Integration. Das ist meine Website www.festivetaste.com Selbst die grundlegende Catcha wird nicht angezeigt.Opencart v2.3, kontaktieren Sie uns Formular besteht ohne Authentifizierung von Google Captcha. Wenn wir den Absenden-Knopf drücken, fragt es nicht nach Captcha

Link for Contact us page

finden Sie den Code aus dem contact.tpl Datei.

<form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" class="form-horizontal"> 
    <fieldset> 
     <legend><?php echo $text_contact; ?></legend> 
     <div class="form-group required"> 
     <label class="col-sm-2 control-label" for="input-name"><?php echo $entry_name; ?></label> 
     <div class="col-sm-10"> 
      <input type="text" name="name" value="<?php echo $name; ?>" id="input-name" class="form-control" /> 
      <?php if ($error_name) { ?> 
      <div class="text-danger"><?php echo $error_name; ?></div> 
      <?php } ?> 
     </div> 
     </div> 
     <div class="form-group required"> 
     <label class="col-sm-2 control-label" for="input-email"><?php echo $entry_email; ?></label> 
     <div class="col-sm-10"> 
      <input type="text" name="email" value="<?php echo $email; ?>" id="input-email" class="form-control" /> 
      <?php if ($error_email) { ?> 
      <div class="text-danger"><?php echo $error_email; ?></div> 
      <?php } ?> 
     </div> 
     </div> 
     <div class="form-group required"> 
     <label class="col-sm-2 control-label" for="input-enquiry"><?php echo $entry_enquiry; ?></label> 
     <div class="col-sm-10"> 
      <textarea name="enquiry" rows="10" id="input-enquiry" class="form-control"><?php echo $enquiry; ?></textarea> 
      <?php if ($error_enquiry) { ?> 
      <div class="text-danger"><?php echo $error_enquiry; ?></div> 
      <?php } ?> 
     </div> 
     </div> 
     <?php echo $captcha; ?> 
    </fieldset> 

    <div class="buttons"> 
     <div class="pull-right"> 
     <div class="g-recaptcha" data-sitekey="6LcivgwUAAAAADYVi7N2X7sQ1d29Wl1jnJfntQha"></div> 
     <input class="btn btn-primary" type="submit" value="<?php echo $button_submit; ?>" /> 
     </div> 
    </div> 
    </form> 
+0

Welche OpenCart-Version? – DigitCart

+0

Ich verwende OpenCart Version 2.3 –

+0

Haben Sie versucht, Standard-Captcha? – DigitCart

Antwort

1

Im Katalog/Controller/Erweiterung/captcha/basic-captcha.php Finden $this->session->data['captcha'] = substr(sha1(mt_rand()), 17, 6); Ort dieser Code nach.

// Editted by Foundlay 
    $out = ob_get_contents(); 
    $out = str_replace(array("\n", "\r", "\t", " "), "",$this->session->data['captcha']); 
    ob_end_clean(); 
    $this->session->data['captcha'] = $out; 

Dies ist nur für opencart 2.3. * Version.

+0

Ooh! Dies ist für eingebautes Captcha in OC. 'Basis-Captcha'. – Pavan