本文整理匯總了PHP中securimage::outputAudioFile方法的典型用法代碼示例。如果您正苦於以下問題:PHP securimage::outputAudioFile方法的具體用法?PHP securimage::outputAudioFile怎麽用?PHP securimage::outputAudioFile使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類securimage
的用法示例。
在下文中一共展示了securimage::outputAudioFile方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: securimage
/**
* [PHPB2B] Copyright (C) 2007-2099, Ualink Inc. All Rights Reserved.
* The contents of this file are subject to the License; you may not use this file except in compliance with the License.
*
* @version $Revision: 2075 $
*/
require 'libraries/common.inc.php';
require 'libraries/securimage/securimage.php';
require 'libraries/core/paths.php';
$img = new securimage();
if (!empty($_GET['do'])) {
$do = trim($_GET['do']);
if ($do == "play") {
$img->audio_path = STATICURL . 'images/audio/';
$img->outputAudioFile();
die;
}
}
$img->code_length = 4;
if (is_file('data/ttffonts/COOLVETI.ttf')) {
$img->ttf_file = 'data/ttffonts/COOLVETI.ttf';
} else {
$img->gd_font_file = 3;
}
$img->wordlist_file = 'data/words/words.txt';
//Change some settings
$img->perturbation = 0.45;
$img->image_bg_color = new Securimage_Color("#f6f6f6");
$img->text_color = new Securimage_Color('#cc3300');
$img->use_multi_text = true;