Gentics Portal.Node PHP API
 All Classes Namespaces Functions Variables Pages
securimage_play.php
1 <?php
2 
3 /**
4  * Project: Securimage: A PHP class for creating and managing form CAPTCHA images<br />
5  * File: securimage_play.php<br />
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or any later version.<br /><br />
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.<br /><br />
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA<br /><br />
20  *
21  * Any modifications to the library should be indicated clearly in the source code
22  * to inform users that the changes are not a part of the original software.<br /><br />
23  *
24  * If you found this script useful, please take a quick moment to rate it.<br />
25  * http://www.hotscripts.com/rate/49400.html Thanks.
26  *
27  * @link http://www.phpcaptcha.org Securimage PHP CAPTCHA
28  * @link http://www.phpcaptcha.org/latest.zip Download Latest Version
29  * @link http://www.phpcaptcha.org/Securimage_Docs/ Online Documentation
30  * @copyright 2012 Drew Phillips
31  * @author Drew Phillips <drew@drew-phillips.com>
32  * @version 3.2RC2 (April 2012)
33  * @package Securimage
34  *
35  */
36 
37 require_once dirname(__FILE__) . '/securimage.php';
38 
39 $img = new Securimage();
40 
41 // To use an alternate language, uncomment the following and download the files from phpcaptcha.org
42 // $img->audio_path = $img->securimage_path . '/audio/es/';
43 
44 // If you have more than one captcha on a page, one must use a custom namespace
45 // $img->namespace = 'form2';
46 
47 $img->outputAudioFile();