當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Securimage::outputAudioFile方法代碼示例

本文整理匯總了PHP中Securimage::outputAudioFile方法的典型用法代碼示例。如果您正苦於以下問題:PHP Securimage::outputAudioFile方法的具體用法?PHP Securimage::outputAudioFile怎麽用?PHP Securimage::outputAudioFile使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Securimage的用法示例。


在下文中一共展示了Securimage::outputAudioFile方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: outputAudioFile

 /**
  *
  */
 public function outputAudioFile()
 {
     /**
      * @var $lng ilLanguage
      */
     global $lng;
     chdir(ilSecurImageUtil::getDirectory());
     if ($lng->lang_key != 'en' && in_array($lng->lang_key, self::$supported_audio_languages)) {
         $this->securimage->audio_path = $this->securimage->securimage_path . '/audio/' . $lng->lang_key . '/';
     }
     $this->securimage->outputAudioFile();
 }
開發者ID:arlendotcn,項目名稱:ilias,代碼行數:15,代碼來源:class.ilSecurImage.php

示例2: securimages_play

 public function securimages_play()
 {
     $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';
     // 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']);
     }
     return $img->outputAudioFile();
 }
開發者ID:selametsubu,項目名稱:e-ppid,代碼行數:19,代碼來源:securimages_lib.php

示例3: dirname

 * 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 <drew@drew-phillips.com>
 * @version 3.5.2 (Feb 15, 2014)
 * @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';
// 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']);
}
$img->outputAudioFile();
開發者ID:jeremyreese,項目名稱:quotes,代碼行數:30,代碼來源:securimage_play.php

示例4: play

 function play()
 {
     $phpcaptcha = new Securimage();
     $phpcaptcha->outputAudioFile();
     exit;
 }
開發者ID:RyanChiu,項目名稱:NinjasChatClub,代碼行數:6,代碼來源:PhpcaptchaComponent.php

示例5: dirname

 * @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 <drew@drew-phillips.com>
 * @version 3.5.2 (Feb 15, 2014)
 * @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);
開發者ID:klon008,項目名稱:quantum-reality,代碼行數:30,代碼來源:securimage_play.php

示例6: Securimage

<?php

require_once 'helpers/Captcha.class.php';
$image = new Securimage();
$image->outputAudioFile();
開發者ID:erickigotho,項目名稱:Paxis,代碼行數:5,代碼來源:captcha_audio_play.php


注:本文中的Securimage::outputAudioFile方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。