コード例 #1
0
ファイル: Form.php プロジェクト: janitham/deviceDependent
                            <input type="text" class="form-control" id="InputEmailFirst" name="InputEmail"
                                   placeholder="Enter Email">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="InputMessage">Enter Message</label>

                        <div class="input-group">
                            <textarea name="InputMessage" id="InputMessage" class="form-control" rows="3"></textarea>
                            <span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
                        </div>
                    </div>

                    <?php 
    $api = new deviceDependentAPI();
    echo $api->getHoneyPot();
    setcookie("sTime", time(), null, "/");
    ?>

                    <div class="input-group">
                        <input type="submit" name="ValidateCaptchaButton" id="ValidateCaptchaButton" value="Submit"
                               class="btn btn-group pull-right"
                               style="width: 100px;border-radius: 4px !important;border-bottom-right-radius: 0px !important;border-top-right-radius: 0px!important;background-color: #eee !important;border-color: #ccc">
                        <span class="input-group-addon"><span class="glyphicon glyphicon-ok-circle"></span></span>
                    </div>
                </form>

                <div class="input-group" style="padding-top: 20px">
                    <input type="button" id="bot" onclick="fillForm();return false;" value="Bot Attack"
                           class="btn btn-group pull-right"
コード例 #2
0
ファイル: Index.php プロジェクト: janitham/deviceDependent
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="InputEmail">Enter Email</label>

                        <div class="input-group">
                            <input type="text" class="form-control" id="InputEmailSecond" name="InputEmail"
                                   placeholder="Enter Email">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-asterisk"></span></span>
                        </div>
                    </div>

                    <div class="form-group">

                        <?php 
    $api = new deviceDependentAPI();
    echo $api->getCAPTCHA();
    ?>
                    </div>
                    <div class="form-group">
                        <div class="input-group">
                            <input type="submit" name="ValidateCaptchaButton" id="submit" value="Submit"
                                   class="btn btn-group pull-right"
                                   style="border-radius: 4px !important;border-bottom-right-radius: 0px !important;border-top-right-radius: 0px!important;background-color: #eee !important;border-color: #ccc">
                            <span class="input-group-addon"><span class="glyphicon glyphicon-ok-circle"></span></span>
                        </div>

                    </div>
                </form>
                <?php 
}
コード例 #3
0
ファイル: curtex.php プロジェクト: janitham/deviceDependent
<?php 
if (isset($_POST)) {
    $api = new deviceDependentAPI();
    $data = $_POST;
    $isValid = $api->Validate($data);
    if ($isValid == "true") {
        // Proceed
    } else {
        //Error
    }
}
?>

    // HoneyPot and Timestamp

<?php 
$api = new deviceDependentAPI();
echo $api->getHoneyPot();
?>

<?php 
if (isset($_POST)) {
    $api = new deviceDependentAPI();
    $data = $_POST;
    $isValid = $api->HoneyPotValidation($data);
    if ($isValid == "true") {
        // Proceed
    } else {
        //Error
    }
}