本文整理汇总了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;