From 6854cb3f4d8219cf1829e32122eb2502a916eae9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 1 Feb 2020 09:05:48 +0100 Subject: initial checkin --- vendor/dapphp/securimage/securimage_play.php | 70 ++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 vendor/dapphp/securimage/securimage_play.php (limited to 'vendor/dapphp/securimage/securimage_play.php') diff --git a/vendor/dapphp/securimage/securimage_play.php b/vendor/dapphp/securimage/securimage_play.php new file mode 100644 index 0000000..b028c2b --- /dev/null +++ b/vendor/dapphp/securimage/securimage_play.php @@ -0,0 +1,70 @@ + + * File: securimage_play.php
+ * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or any later version.

+ * + * This library 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 + * Lesser General Public License for more details.

+ * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

+ * + * 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.

+ * + * If you found this script useful, please take a quick moment to rate it.
+ * 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 + * @copyright 2012 Drew Phillips + * @author Drew Phillips + * @version 3.6.6 (Nov 20 2017) + * @package Securimage + * + */ + +require_once dirname(__FILE__) . '/securimage.php'; + +// if using database, adjust these options as necessary and change $img = new Securimage(); to $img = new Securimage($options); +// see test.mysql.php or test.sqlite.php for examples +$options = array( + 'use_database' => true, + 'database_name' => '', + 'database_user' => '', + 'database_driver' => Securimage::SI_DRIVER_MYSQL +); + +$img = new Securimage(); + +// Other audio settings +//$img->audio_use_sox = true; +//$img->audio_use_noise = true; +//$img->degrade_audio = false; +//$img->sox_binary_path = 'sox'; +//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 +// $img->audio_path = $img->securimage_path . '/audio/es/'; + +// If you have more than one captcha on a page, one must use a custom namespace +// $img->namespace = 'form2'; + +// set namespace if supplied to script via HTTP GET +if (!empty($_GET['namespace'])) $img->setNamespace($_GET['namespace']); + + +// mp3 or wav format +$format = (isset($_GET['format']) && strtolower($_GET['format']) == 'mp3') ? 'mp3' : null; + +$img->outputAudioFile($format); -- cgit v1.2.3-70-g09d2