Giter Site home page Giter Site logo

Comments (2)

mcer12 avatar mcer12 commented on July 28, 2024

{if $option|fn_needs_image_verification == true}
{hook name="common:image_verification"}
{assign var="is" value=$settings.Image_verification}
{assign var="id" value="iv_"|uniqid}

{if $app.antibot->getDriver()|get_class == "Tygh\Web\Antibot\PhpCaptchaDriver"}
    <div class="captcha form-group">
        <label for="verification_answer_{$id}" class="cm-required control-label">{__("image_verification_label")}</label>
        <p class="captcha-code">
            <img id="verification_image_{$id}" src="{"image.captcha?verification_id=$id&no_session=Y&$id"|fn_url}" alt="" onclick="this.src += '|1' ;"  width="{$is.width}" height="{$is.height}" class="cursor-pointer" />
            <i class="glyphicon glyphicon-refresh fa fa-refresh cursor-pointer" onclick="document.getElementById('verification_image_{$id}').src += '|1';"></i>
        </p>
        <input class="form-control cm-autocomplete-off" type="text" id="verification_answer_{$id}" name="verification_answer" value= "" />
        <input type="hidden" name="verification_id" value= "{$id}" />
        <div class="cm-field-container"></div>
        <span id="helpBlock" class="help-block {if $align}{$align}{/if}">{__("image_verification_body")}</span>
    </div>
{/if}

{/hook}
{/if}

from cscart-boilerplate.

mcer12 avatar mcer12 commented on July 28, 2024

This issue is fixed on my fork of the repository since this rep seems to be abandoned.
https://github.com/mcer12/cscart-boilerplate

from cscart-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.