Skip to content

Commit

Permalink
Bumped version to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianwennink committed Jun 4, 2021
1 parent 36bb4b8 commit f1c8fcb
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 30 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
@@ -0,0 +1,3 @@
# These are supported funding model platforms

custom: ['https://paypal.me/nlgamevideosnl', 'https://www.buymeacoffee.com/fabianwennink']
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Fabian Wennink
Copyright (c) 2021 Fabian Wennink

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
5 changes: 3 additions & 2 deletions README.md
@@ -1,6 +1,7 @@
# IconCaptcha Plugin - jQuery & PHP

![Version](https://img.shields.io/badge/Version-2.5.0-orange.svg?style=flat-square) ![License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square) ![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg?style=flat-square)
![Version](https://img.shields.io/badge/Version-3.0.0-orange.svg?style=flat-square)
![License](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)
[![Donate](https://img.shields.io/badge/Donate-PayPal-yellow.svg?style=flat-square)](https://paypal.me/nlgamevideosnl)

[![Sonar Quality](https://sonarcloud.io/api/project_badges/measure?project=fabianwennink_IconCaptcha-Plugin-jQuery-PHP&metric=alert_status)](https://sonarcloud.io/dashboard?id=fabianwennink_IconCaptcha-Plugin-jQuery-PHP)
Expand Down Expand Up @@ -34,7 +35,7 @@ ___
* __Supports IE:__ The captcha _supports_ Internet Explorer 8 and up.

## Requirements
* __PHP >= 5.2__
* __PHP >= 5.2__ with GD dependency enabled.
* __jQuery >= 1.12.3__

## Installation
Expand Down
22 changes: 16 additions & 6 deletions examples/ajax-form.php
@@ -1,7 +1,7 @@
<?php
/**
* IconCaptcha Plugin: v2.5.0
* Copyright © 2017, Fabian Wennink (https://www.fabianwennink.nl)
* IconCaptcha Plugin: v3.0.0
* Copyright © 2021, Fabian Wennink (https://www.fabianwennink.nl)
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
Expand Down Expand Up @@ -33,9 +33,9 @@
<!DOCTYPE HTML>
<html>
<head>
<title>IconCaptcha Plugin v2.5.0 - By Fabian Wennink</title>
<title>IconCaptcha Plugin v3.0.0 - By Fabian Wennink</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta name="author" content="Fabian Wennink © <?= date('Y') ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../assets/favicon.ico" rel="shortcut icon" type="image/x-icon" />
Expand All @@ -54,8 +54,18 @@
</div>

<div class="shields">
<img src="https://img.shields.io/badge/Version-2.5.0-orange.svg?style=flat-square" /> <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" />
<img src="https://img.shields.io/badge/Maintained-Yes-green.svg?style=flat-square" /> <a href="https://paypal.me/nlgamevideosnl" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-yellow.svg?style=flat-square" /></a>
<div class="shields-row">
<img src="https://img.shields.io/badge/Version-3.0.0-orange.svg?style=flat-square" />
<img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" />
<img src="https://img.shields.io/github/issues/fabianwennink/IconCaptcha-Plugin-jQuery-PHP?style=flat-square" />
<img src="https://img.shields.io/github/stars/fabianwennink/IconCaptcha-Plugin-jQuery-PHP?color=%23ffff&logo=github&style=flat-square" />
</div>
<div class="shields-row">
<img src="https://img.shields.io/sonar/alert_status/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
<img src="https://img.shields.io/sonar/security_rating/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud&color=%234c1" />
<img src="https://img.shields.io/sonar/bugs/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
<img src="https://img.shields.io/sonar/vulnerabilities/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
</div>
</div>

<div class="section">
Expand Down
4 changes: 2 additions & 2 deletions examples/form/ajax-submit.php
@@ -1,7 +1,7 @@
<?php
/**
* IconCaptcha Plugin: v2.5.0
* Copyright © 2017, Fabian Wennink (https://www.fabianwennink.nl)
* IconCaptcha Plugin: v3.0.0
* Copyright © 2021, Fabian Wennink (https://www.fabianwennink.nl)
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
Expand Down
24 changes: 18 additions & 6 deletions examples/regular-form.php
@@ -1,7 +1,7 @@
<?php
/**
* IconCaptcha Plugin: v2.5.0
* Copyright © 2017, Fabian Wennink (https://www.fabianwennink.nl)
* IconCaptcha Plugin: v3.0.0
* Copyright © 2021, Fabian Wennink (https://www.fabianwennink.nl)
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
Expand Down Expand Up @@ -42,9 +42,9 @@
<!DOCTYPE HTML>
<html>
<head>
<title>IconCaptcha Plugin v2.5.0 - By Fabian Wennink</title>
<title>IconCaptcha Plugin v3.0.0 - By Fabian Wennink</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta name="author" content="Fabian Wennink © <?= date('Y') ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../assets/favicon.ico" rel="shortcut icon" type="image/x-icon" />
Expand All @@ -63,8 +63,18 @@
</div>

<div class="shields">
<img src="https://img.shields.io/badge/Version-2.5.0-orange.svg?style=flat-square" /> <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" />
<img src="https://img.shields.io/badge/Maintained-Yes-green.svg?style=flat-square" /> <a href="https://paypal.me/nlgamevideosnl" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-yellow.svg?style=flat-square" /></a>
<div class="shields-row">
<img src="https://img.shields.io/badge/Version-3.0.0-orange.svg?style=flat-square" />
<img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" />
<img src="https://img.shields.io/github/issues/fabianwennink/IconCaptcha-Plugin-jQuery-PHP?style=flat-square" />
<img src="https://img.shields.io/github/stars/fabianwennink/IconCaptcha-Plugin-jQuery-PHP?color=%23ffff&logo=github&style=flat-square" />
</div>
<div class="shields-row">
<img src="https://img.shields.io/sonar/alert_status/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
<img src="https://img.shields.io/sonar/security_rating/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud&color=%234c1" />
<img src="https://img.shields.io/sonar/bugs/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
<img src="https://img.shields.io/sonar/vulnerabilities/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
</div>
</div>

<div class="section">
Expand All @@ -78,6 +88,8 @@
}
?>

<img src="../assets/olddfdfd.PNG" />

<form action="" method="post">

<!-- Element that we use to create the IconCaptcha with -->
Expand Down
22 changes: 16 additions & 6 deletions index.php
@@ -1,15 +1,15 @@
<?php
/**
* IconCaptcha Plugin: v2.5.0
* Copyright © 2017, Fabian Wennink (https://www.fabianwennink.nl)
* IconCaptcha Plugin: v3.0.0
* Copyright © 2021, Fabian Wennink (https://www.fabianwennink.nl)
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
?>
<!DOCTYPE HTML>
<html>
<head>
<title>IconCaptcha Plugin v2.5.0 - By Fabian Wennink</title>
<title>IconCaptcha Plugin v3.0.0 - By Fabian Wennink</title>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=9" />
<meta name="author" content="Fabian Wennink © <?= date('Y') ?>" />
Expand All @@ -26,8 +26,18 @@
</div>

<div class="shields">
<img src="https://img.shields.io/badge/Version-2.5.0-orange.svg?style=flat-square" /> <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" />
<img src="https://img.shields.io/badge/Maintained-Yes-green.svg?style=flat-square" /> <a href="https://paypal.me/nlgamevideosnl" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-yellow.svg?style=flat-square" /></a>
<div class="shields-row">
<img src="https://img.shields.io/badge/Version-3.0.0-orange.svg?style=flat-square" />
<img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" />
<img src="https://img.shields.io/github/issues/fabianwennink/IconCaptcha-Plugin-jQuery-PHP?style=flat-square" />
<img src="https://img.shields.io/github/stars/fabianwennink/IconCaptcha-Plugin-jQuery-PHP?color=%23ffff&logo=github&style=flat-square" />
</div>
<div class="shields-row">
<img src="https://img.shields.io/sonar/alert_status/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
<img src="https://img.shields.io/sonar/security_rating/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud&color=%234c1" />
<img src="https://img.shields.io/sonar/bugs/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
<img src="https://img.shields.io/sonar/vulnerabilities/fabianwennink_IconCaptcha-Plugin-jQuery-PHP?server=https%3A%2F%2Fsonarcloud.io&style=flat-square&logo=sonarcloud" />
</div>
</div>

<div class="section">
Expand All @@ -39,7 +49,7 @@
<div class="section">
<h2>Links:</h2>
<a href="https://github.com/fabianwennink/IconCaptcha-Plugin-jQuery-PHP/" target="_blank"><div class="btn">GitHub repository</div></a>
<a href="https://paypal.me/nlgamevideosnl" target="_blank"><div class="btn">Buy me a coffee</div></a>
<a href="https://buymeacoffee.com/fabianwennink" target="_blank"><div class="btn">Buy me a coffee</div></a>
<a href="https://fabianwennink.nl/en/" target="_blank"><div class="btn">Fabian Wennink <small>(developer)</small></div></a>
</div>

Expand Down
5 changes: 2 additions & 3 deletions src/captcha-request.php
@@ -1,7 +1,7 @@
<?php
/**
* Icon Captcha Plugin: v2.5.0
* Copyright © 2017, Fabian Wennink (https://www.fabianwennink.nl)
* IconCaptcha Plugin: v3.0.0
* Copyright © 2021, Fabian Wennink (https://www.fabianwennink.nl)
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
Expand Down Expand Up @@ -47,7 +47,6 @@

// Adds another level of security to the Ajax call.
// Only requests made through Ajax are allowed.
// NOTE: THE HEADER CAN BE SPOOFED
function isAjaxRequest() {
return (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest');
}
4 changes: 2 additions & 2 deletions src/captcha-session.class.php
@@ -1,7 +1,7 @@
<?php
/**
* Icon Captcha Plugin: v2.5.0
* Copyright © 2017, Fabian Wennink (https://www.fabianwennink.nl)
* IconCaptcha Plugin: v3.0.0
* Copyright © 2021, Fabian Wennink (https://www.fabianwennink.nl)
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
Expand Down
4 changes: 2 additions & 2 deletions src/captcha.class.php
@@ -1,7 +1,7 @@
<?php
/**
* Icon Captcha Plugin: v2.5.0
* Copyright © 2017, Fabian Wennink (https://www.fabianwennink.nl)
* IconCaptcha Plugin: v3.0.0
* Copyright © 2021, Fabian Wennink (https://www.fabianwennink.nl)
*
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
Expand Down

0 comments on commit f1c8fcb

Please sign in to comment.