NAME:
Securimage - A PHP class for creating captcha images and audio with many options.
VERSION:
3.5.2
AUTHOR:
Drew Phillips
DOWNLOAD:
The latest version can always be
found at http://www.phpcaptcha.org
DOCUMENTATION:
Online documentation of the class, methods, and variables can
be found at http://www.phpcaptcha.org/Securimage_Docs/
REQUIREMENTS:
PHP 5.2 or greater
GD 2.0
FreeType (Required, for TTF fonts)
PDO (if using Sqlite, MySQL, or PostgreSQL)
SYNOPSIS:
require_once 'securimage.php';
**Within your HTML form**
.. form elements
**Within your PHP form processor**
// Code Validation
$image = new Securimage();
if ($image->check($_POST['captcha_code']) == true) {
echo "Correct!";
} else {
echo "Sorry, wrong code.";
}
DESCRIPTION:
What is Securimage?
Securimage is a PHP class that is used to generate and validate CAPTCHA
images.
The classes uses an existing PHP session or creates its own if
none is found to store the CAPTCHA code. In addition, a database can be
used instead of session storage.
Variables within the class are used to control the style and display of
the image. The class uses TTF fonts and effects for strengthening the
security of the image.
It also creates audible codes which are played for visually impared users.
COPYRIGHT:
Copyright (c) 2014 Drew Phillips
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
LICENSES:
The WavFile.php class used in Securimage by Drew Phillips and Paul Voegler
is used under the BSD License. See WavFile.php for details.
Many thanks to Paul Voegler (http://www.voegler.eu/) for contributing to
Securimage.
---------------------------------------------------------------------------
Flash code created by Age Bosma & Mario Romero (animario@hotmail.com)
Many thanks for releasing this to the project!
---------------------------------------------------------------------------
Portions of Securimage contain code from Han-Kwang Nienhuys' PHP captcha
Han-Kwang Nienhuys' PHP captcha
Copyright June 2007
This copyright message and attribution must be preserved upon
modification. Redistribution under other licenses is expressly allowed.
Other licenses include GPL 2 or higher, BSD, and non-free licenses.
The original, unrestricted version can be obtained from
http://www.lagom.nl/linux/hkcaptcha/
---------------------------------------------------------------------------
AHGBold.ttf (AlteHaasGroteskBold.ttf) font was created by Yann Le Coroller
and is distributed as freeware.
Alte Haas Grotesk is a typeface that look like an helvetica printed in an
old Muller-Brockmann Book.
These fonts are freeware and can be distributed as long as they are
together with this text file.
I would appreciate very much to see what you have done with it anyway.
yann le coroller
www.yannlecoroller.com
yann@lecoroller.com
---------------------------------------------------------------------------
Portions of securimage_play.swf use the PopForge flash library for
playing audio
/**
* Copyright(C) 2007 Andre Michelle and Joa Ebert
*
* PopForge is an ActionScript3 code sandbox developed by Andre Michelle
* and Joa Ebert
* http://sandbox.popforge.de
*
* PopforgeAS3Audio is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* PopforgeAS3Audio is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
*/
--------------------------------------------------------------------------
Some graphics used are from the Humility Icon Pack by WorLord
License: GNU/GPL (http://findicons.com/pack/1723/humility)
http://findicons.com/icon/192558/gnome_volume_control
http://findicons.com/icon/192562/gtk_refresh
--------------------------------------------------------------------------
Background noise sound files are from SoundJay.com
http://www.soundjay.com/tos.html
All sound effects on this website are created by us and protected under
the copyright laws, international treaty provisions and other applicable
laws. By downloading sounds, music or any material from this site implies
that you have read and accepted these terms and conditions:
Sound Effects
You are allowed to use the sounds free of charge and royalty free in your
projects (such as films, videos, games, presentations, animations, stage
plays, radio plays, audio books, apps) be it for commercial or
non-commercial purposes.
But you are NOT allowed to
- post the sounds (as sound effects or ringtones) on any website for
others to download, copy or use
- use them as a raw material to create sound effects or ringtones that
you will sell, distribute or offer for downloading
- sell, re-sell, license or re-license the sounds (as individual sound
effects or as a sound effects library) to anyone else
- claim the sounds as yours
- link directly to individual sound files
- distribute the sounds in apps or computer programs that are clearly
sound related in nature (such as sound machine, sound effect
generator, ringtone maker, funny sounds app, sound therapy app, etc.)
or in apps or computer programs that use the sounds as the program's
sound resource library for other people's use (such as animation
creator, digital book creator, song maker software, etc.). If you are
developing such computer programs, contact us for licensing options.
If you use the sound effects, please consider giving us a credit and
linking back to us but it's not required.
ชื่อ :
securimage - เรียน PHP สำหรับการสร้างอัลบั้มภาพและเสียงกับตัวเลือกมากมาย
รุ่น 3.5.2 :
เขียน :
วาดวาดวาดฟิลิปส์ฟิลิปส์ < @ . com >
ดาวน์โหลด :
รุ่นล่าสุดสามารถเสมอ
ได้ที่ http : / / www.phpcaptcha . org
เอกสาร : เอกสารออนไลน์ของชั้นเรียน วิธีการและตัวแปรสามารถ
สามารถพบได้ที่ http : / / www.phpcaptcha . org / securimage_docs / ความต้องการ :
PHP 52 หรือมากกว่า
GD 2.0 ฟรีไทป์ ( ต้องสำหรับ TTF แบบอักษร )
PDO ( ถ้าใช้ SQLite , MySQL หรือ PostgreSQL )
: :
require_once ' securimage PHP ' ;
* * * * * * * * * * ภายในของคุณรูปแบบ HTML รูปแบบ metod
< = " โพสต์ " การกระทำ = " " >
. . . . . . . แบบฟอร์มองค์ประกอบ
< div >
< ? php echo securimage : : getcaptchahtml() ? >
< / DIV >
< / แบบฟอร์ม >
* * ภายในของคุณแบบฟอร์มโปรเซสเซอร์ * *
/ / รหัสตรวจสอบภาพใหม่ = securimage()
$
;หาก ( $ ภาพ > ตรวจสอบ ( $ _post [ 'captcha_code ' ) = = true
) { echo " ถูกต้อง " ;
} อื่น {
ก้อง " เสียใจ ผิดรหัส " ;
}
รายละเอียด :
securimage คืออะไร ?
securimage เป็นระดับ PHP ที่ใช้ในการสร้างและตรวจสอบภาพ CAPTCHA
เรียนใช้ session php ที่มีอยู่หรือสร้างของตัวเอง หากพบร้าน
ไม่มี captcha code นอกจากนี้ ฐานข้อมูลสามารถ
ใช้แทนกระเป๋าครั้ง
ตัวแปรภายในคลาสที่ใช้ในการควบคุมลักษณะและการแสดง
ภาพ ชั้นใช้แบบอักษร TTF และผลกระทบเพื่อเสริมสร้างความปลอดภัยของภาพ
ยังสร้างรหัสเสียงซึ่งมีการเล่นสำหรับสายตา impared ผู้ใช้
โดย :
สงวนลิขสิทธิ์ ( c ) 2014 วาดฟิลลิปส์
สงวนสิทธิ์ทั้งหมดแจกจ่ายและใช้ในรูปแบบและแหล่งข้อมูลไบนารีที่มีหรือไม่มี
ดัดแปลงได้รับอนุญาตให้เงื่อนไขต่อไปนี้ได้ :
- redistributions โค้ดข้างต้นต้องเก็บลิขสิทธิ์
รายการนี้ของเงื่อนไขและข้อตกลงต่อไปนี้ redistributions
- ในรูปแบบไบนารีจะต้องทำซ้ำข้างบน
ลิขสิทธิ์รายการนี้ของเงื่อนไขและข้อตกลงในเอกสาร
และ / หรือวัสดุอื่น ๆ ให้มีการกระจายตาม
ซอฟต์แวร์นี้จะให้บริการโดยผู้ถือลิขสิทธิ์และผู้เขียน " เป็น "
และบริการหรือการรับประกันโดยนัยรวมถึง แต่ไม่ จำกัด การ การรับประกันโดยนัยของ
และความเหมาะสมสำหรับ วัตถุประสงค์เฉพาะเป็นโมฆะไม่มีเหตุการณ์ใด เจ้าของลิขสิทธิ์หรือผู้ถูก
ต้องรับผิดโดยตรงทางอ้อมโดยบังเอิญ , พิเศษ , การเป็นแบบอย่างหรือ
ความเสียหาย ( รวมถึง แต่ไม่ จำกัด เพื่อ การจัดหาสินค้าหรือบริการทดแทน
; การสูญเสียการใช้ ข้อมูล หรือกำไร หรือการหยุดชะงักของธุรกิจ
) แต่เกิดจากและทฤษฎีใด ๆ ความรับผิด ไม่ว่าใน
สัญญารับผิดเคร่งครัดหรือการละเมิด ( รวมทั้งการละเลยหรือ )
ที่เกิดในทางใด ๆจากการใช้ซอฟต์แวร์นี้ แม้ว่าคำแนะนำของความเป็นไปได้ของความเสียหายดังกล่าว
wavfile.php ใบอนุญาต : คลาสที่ใช้ใน securimage โดยดึง ฟิลิปส์ และ พอล voegler
ใช้ภายใต้ใบอนุญาต BSD . ดู wavfile.php รายละเอียด ขอบคุณ
มากมาย พอล voegler ( http://www.voegler.eu/ ) เพื่อให้เกิด securimage
.---------------------------------------------------------------------------
แฟลชรหัสที่สร้างขึ้นโดยอายุ bosma &มาริโอ โรเมโร ( animario @ hotmail . com )
ขอบคุณมากสำหรับการปล่อยนี้กับโครงการ
ส่วนของ --------------------------------------------------------------------------- securimage ประกอบด้วยรหัสฮั่นกวาง nienhuys ' PHP CAPTCHA
ฮันควาง nienhuys ' PHP CAPTCHA
สงวนลิขสิทธิ์ 2550 มิถุนายน
นี้สงวนลิขสิทธิ์ข้อความและคุณลักษณะจะต้องเก็บรักษาไว้เมื่อ
ดัดแปลง เผยแพร่ภายใต้ใบอนุญาตอื่น ๆได้รับอนุญาตอย่างชัดแจ้ง .
ใบอนุญาตอื่น ๆรวมถึง GPL 2 หรือสูงกว่า , BSD , และไม่มีใบอนุญาตฟรี .
เดิมรุ่นไม่จำกัดได้
http://www.lagom.nl/linux/hkcaptcha/---------------------------------------------------------------------------
ahgbold.ttf ( altehaasgroteskbold . TTF ) ตัวอักษรที่ถูกสร้างขึ้นโดย XXX เลอ coroller
และกระจายเป็นฟรีแวร์
อัลฮาส grotesk เป็นแบบอักษรที่ดูเหมือน Helvetica พิมพ์ในหนังสือเก่า มุลเลอร์ บร็อกเมิน
ฟอนต์เหล่านี้เป็นฟรีแวร์และสามารถแจกจ่ายตราบเท่าที่พวกเขา
พร้อมกับข้อความไฟล์ นี้
ผมจะยินดีมากที่จะเห็นสิ่งที่คุณทำอะไรกับมันอยู่ดี . . . .
XXX เลอ coroller
www.yannlecoroller . com XXX @ lecoroller . com
ส่วนของ --------------------------------------------------------------------------- securimage_play.swf ใช้แฟลชเล่นเสียง popforge ห้องสมุด
/ * *
* สงวนลิขสิทธิ์ ( c ) 2007 อังเดรมิเชลและโจเบิร์ต
*
* popforge เป็น actionscript3 รหัส sandbox ที่พัฒนาโดยอังเดรมิเชล
*
*
* http://sandbox.popforge.de JOA Ebert
* popforgeas3audio เป็นซอฟต์แวร์ฟรีที่คุณสามารถแจกจ่ายและ / หรือแก้ไข
* ภายใต้เงื่อนไขของ GNU ใบอนุญาตสาธารณะทั่วไปตามที่เผยแพร่โดยมูลนิธิซอฟต์แวร์ฟรี
; รุ่นทั้ง 3 ใบ หรือ
* ( ที่คุณเลือก ) รุ่นอื่น ๆ .
* popforgeas3audio กระจายในหวังว่ามันจะมีประโยชน์
* แต่ไม่มีการรับประกันใดไม่มีแม้การรับประกัน
* หรือความเหมาะสมสำหรับวัตถุประสงค์เฉพาะ . เห็น
* GNU ใบอนุญาตสาธารณะทั่วไปสำหรับรายละเอียดเพิ่มเติม .
*
* คุณควรจะได้รับสำเนาของสัญญาอนุญาตสาธารณะทั่วไปของกนู
* พร้อมกับโปรแกรมนี้ ถ้าไม่เจอ < http : / / www.gnu . org / ใบอนุญาต / >
/
--------------------------------------------------------------------------
บางกราฟิกที่ใช้จากความอ่อนน้อมถ่อมตนไอคอนแพ็คโดยวอร์ลอด
สัญญาอนุญาต GNU / GPL ( http : / / findicons . com / แพ็ค / 1723 / humility )
http://findicons.com/icon/192558/gnome_volume_control
http : / / findicons . com / ไอคอน / 192562 / gtk_refresh
--------------------------------------------------------------------------ไฟล์เสียง เสียงรบกวนจาก soundjay . com
http://www.soundjay.com/tos.html
เสียงทั้งหมดบนเว็บไซต์นี้จะถูกสร้างขึ้นโดยเรา และได้รับการคุ้มครองภายใต้กฎหมายลิขสิทธิ์
, บทบัญญัติสนธิสัญญาและกฎหมาย
อื่น ๆ โดยการดาวน์โหลดเสียงเพลง หรือวัสดุใด ๆจากเว็บไซต์นี้หมายถึง
ที่คุณได้อ่านและยอมรับ ข้อตกลงและเงื่อนไขเหล่านี้ :
เพลง
คุณได้รับอนุญาตให้ใช้เสียงฟรีและค่าภาคหลวงฟรีในโครงการของคุณ
( เช่นภาพยนตร์ , วิดีโอ , เกม , การนำเสนอ , ภาพเคลื่อนไหว , เวที
เล่น เล่น เล่น วิทยุ หนังสือ เสียง Apps ) ไม่ว่าจะเป็นเชิงพาณิชย์หรือ
เพื่อวัตถุประสงค์ที่ไม่ใช่เชิงพาณิชย์ แต่คุณจะไม่ได้รับอนุญาตให้
- ไปรษณีย์เสียง ( เช่นเสียงหรือเสียงเรียกเข้า ) บนเว็บไซต์
ผู้อื่นดาวน์โหลดคัดลอกหรือใช้
- ใช้เป็นวัตถุดิบในการสร้างเสียง หรือเสียงเรียกเข้าที่
คุณจะขาย แจกจ่าย หรือข้อเสนอสำหรับการดาวน์โหลด
- ขาย จะขาย ใบอนุญาต หรือใบอนุญาตเป็นเสียง ( เช่นเสียง
เป็นรายบุคคลหรือเป็นห้องสมุดเสียง ) ใคร
- เรียกร้องเสียงที่เป็นของคุณ
- การเชื่อมโยงโดยตรง แต่ละไฟล์เสียง
- กระจายเสียงในปพลิเคชันหรือโปรแกรมคอมพิวเตอร์ที่ชัดเจน
เสียงที่เกี่ยวข้องในธรรมชาติ ( เช่น เครื่อง เสียง เสียง Effect
Generator , เครื่องชงริงโทน , เสียงตลก app app เสียงบำบัด ฯลฯ )
หรือปพลิเคชันหรือโปรแกรมที่ใช้เสียงที่เป็นทรัพยากรห้องสมุดเสียงของ
โปรแกรมคนอื่นใช้ ( เช่นภาพเคลื่อนไหว
ผู้สร้างหนังสือดิจิตอล , ผู้สร้าง , เพลง ผู้ผลิตซอฟต์แวร์ ฯลฯ ) ถ้าคุณ
การพัฒนาคอมพิวเตอร์โปรแกรมดังกล่าวติดต่อเราสำหรับตัวเลือกการออกใบอนุญาต .
ถ้าคุณใช้เสียง โปรดพิจารณาให้เครดิตและ
เชื่อมโยงกลับมาให้เรา แต่ก็ไม่จําเป็นต้อง .
การแปล กรุณารอสักครู่..
