ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilSecurImageUtil.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 {
16  private static $ver = '3_5_1';
17 
21  public static function getDirectory()
22  {
23  return './Services/Captcha/lib/securimage_' . self::$ver;
24  }
25 
29  public static function getImageScript()
30  {
31  return self::getDirectory() . '/il_securimage_show.php';
32  }
33 
37  public static function getAudioScript()
38  {
39  $script = self::getDirectory() . '/securimage_play.swf';
40  $script = ilUtil::appendUrlParameterString($script, 'audio_file=' . self::getDirectory() . '/il_securimage_play.php', true);
41  $script = ilUtil::appendUrlParameterString($script, 'icon_file=' . ilUtil::getImagePath('icon_audiocaptcha-19.png'), true);
42  return $script;
43  }
44 
48  public function includeSecurImage()
49  {
50  require_once 'Services/Captcha/lib/securimage_' . self::$ver . '/securimage.php';
51  }
52 }