ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 static function includeSecurImage()
49  {
50  require_once 'Services/Captcha/lib/securimage_' . self::$ver . '/securimage.php';
51  }
52 }
static appendUrlParameterString($a_url, $a_par, $xml_style=false)
append URL parameter string ("par1=value1&par2=value2...") to given URL string
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
SecurImage Library Utility functions.