Skip to content

Commit

Permalink
Remove links to old web address and update README.
Browse files Browse the repository at this point in the history
  • Loading branch information
dapphp committed Jul 31, 2023
1 parent 1cf005a commit 680b1f5
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 282 deletions.
44 changes: 9 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,55 +8,29 @@

## Project Status

See the [Project Status](https://github.com/dapphp/securimage/issues/99) issue on GitHub.
Securimage is no longer maintained. Seek an alternative such as [hCaptcha](https://hcaptcha.com/).

## Download
You may use, modify, and distribute the code in accordance with the [license](LICENSE.txt).

Download and browse the code at https://github.com/dapphp/securimage.
Beta code is available at https://github.com/dapphp/securimage/tree/nextgen.
See the [Project Status](https://github.com/dapphp/securimage/issues/99) issue on GitHub.

Other information is available at [phpcaptcha.org](https://www.phpcaptcha.org)
## Download

## Documentation
The code will remain available to view and download at https://github.com/dapphp/securimage.

Online documentation of the class, methods, and variables can be found
at http://www.phpcaptcha.org/Securimage_Docs/
To use or modify the code, start with the 4.0 (nextgen) branch. It has many features and additions so the
3.6 branch should be considered even more obsolete.

## Requirements

* PHP 5.4 or greater
* PHP 7.0 or greater
* GD 2.0
* FreeType (Required, for TTF fonts)
* PDO (if using Sqlite, MySQL, or PostgreSQL)

## Synopsis

**Within your HTML form**

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

<div>
<?php
require_once 'securimage.php';
echo Securimage::getCaptchaHtml();
?>
</div>
</form>


**Within your PHP form processor**

require_once 'securimage.php';

// Code Validation

$image = new Securimage();
if ($image->check($_POST['captcha_code']) == true) {
echo "Correct!";
} else {
echo "Sorry, wrong code.";
}
See the [example form](example_form.php) to get started. PHP sessions are not required if database storage is used instead.

## Description

Expand Down
225 changes: 0 additions & 225 deletions README.txt

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "library",
"description": "PHP CAPTCHA Library",
"keywords": ["captcha","security","forms","anti-spam"],
"homepage": "https://www.phpcaptcha.org",
"homepage": "https://github.com/dapphp/securimage",
"license": "BSD-3-Clause",
"authors": [
{
Expand Down
6 changes: 2 additions & 4 deletions examples/securimage_show_example.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
* If you found this script useful, please take a quick moment to rate it.<br />
* http://www.hotscripts.com/rate/49400.html Thanks.
*
* @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
* @link http://www.phpcaptcha.org/latest.zip Download Latest Version
* @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
* @link https://github.com/dapphp/securimage Securimage PHP CAPTCHA
* @copyright 2012 Drew Phillips
* @author Drew Phillips <[email protected]>
* @package Securimage
Expand All @@ -56,7 +54,7 @@
$img->text_transparency_percentage = 30; // 100 = completely transparent
$img->num_lines = 7;
$img->line_color = new Securimage_Color("#eaeaea");
$img->image_signature = 'phpcaptcha.org';
$img->image_signature = 'Securimage';
$img->signature_color = new Securimage_Color(rand(0, 64), rand(64, 128), rand(128, 255));
$img->use_wordlist = true;

Expand Down
4 changes: 1 addition & 3 deletions examples/securimage_show_example2.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
* If you found this script useful, please take a quick moment to rate it.<br />
* http://www.hotscripts.com/rate/49400.html Thanks.
*
* @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
* @link http://www.phpcaptcha.org/latest.zip Download Latest Version
* @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
* @link https://github.com/dapphp/securimage Securimage PHP CAPTCHA
* @copyright 2012 Drew Phillips
* @author Drew Phillips <[email protected]>
* @package Securimage
Expand Down
5 changes: 2 additions & 3 deletions securimage.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
/*!
* Securimage CAPTCHA Audio Library
* https://www.phpcaptcha.org/
* https://github.com/dapphp/securimage
*
* Copyright 2015 phpcaptcha.org
* Released under the BSD-3 license
* See https://github.com/dapphp/securimage/blob/master/README.md
* See https://github.com/dapphp/securimage/blob/nextgen/README.md
*/

function securimageRefreshCaptcha(captcha_image, captcha_audio)
Expand Down
5 changes: 1 addition & 4 deletions securimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
* Any modifications to the library should be indicated clearly in the source code
* to inform users that the changes are not a part of the original software.
*
* @link https://www.phpcaptcha.org Securimage Homepage
* @link https://www.phpcaptcha.org/latest.zip Download Latest Version
* @link https://github.com/dapphp/securimage GitHub page
* @link https://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
* @link https://github.com/dapphp/securimage Securimage Homepage
* @copyright 2018 Drew Phillips
* @author Drew Phillips <[email protected]>
* @version 4.0.2 (March 2018)
Expand Down
6 changes: 2 additions & 4 deletions securimage_play.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
* If you found this script useful, please take a quick moment to rate it.<br />
* http://www.hotscripts.com/rate/49400.html Thanks.
*
* @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
* @link http://www.phpcaptcha.org/latest.zip Download Latest Version
* @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
* @link https://github.com/dapphp/securimage Securimage PHP CAPTCHA
* @copyright 2018 Drew Phillips
* @author Drew Phillips <[email protected]>
* @version 4.0.2 (May 2020)
Expand All @@ -52,7 +50,7 @@
//$img->degrade_audio = false;
//Securimage::$lame_binary_path = '/usr/bin/lame'; // for mp3 audio support

// To use an alternate language, uncomment the following and download the files from phpcaptcha.org
// To use an alternate language, uncomment the following and point at suitable audio files
// $img->audio_path = $img->securimage_path . '/audio/es/';

// mp3 or wav format
Expand Down
4 changes: 1 addition & 3 deletions securimage_show.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@
* If you found this script useful, please take a quick moment to rate it.<br />
* http://www.hotscripts.com/rate/49400.html Thanks.
*
* @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
* @link http://www.phpcaptcha.org/latest.zip Download Latest Version
* @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
* @link https://github.com/dapphp/securimage Securimage PHP CAPTCHA
* @copyright 2018 Drew Phillips
* @author Drew Phillips <[email protected]>
* @version 4.0.2 (May 2020)
Expand Down

0 comments on commit 680b1f5

Please sign in to comment.