]>
Commit | Line | Data |
---|---|---|
50d8fa14 IB |
1 | --- a/bugnote_add_inc.php 2018-02-10 21:29:27.000000000 +0100 |
2 | +++ b/bugnote_add_inc.php 2018-03-03 15:14:27.332428557 +0100 | |
3 | @@ -119,6 +119,49 @@ | |
4 | <textarea name="bugnote_text" id="bugnote_text" class="<?php echo $t_bugnote_class ?>" rows="7"></textarea> | |
5 | </td> | |
6 | </tr> | |
7 | +<?php | |
8 | + # captcha image requires GD library and related option to ON | |
9 | + if( current_user_is_anonymous() && get_gd_version() > 0 ) { | |
10 | + $t_securimage_path = 'vendor/dapphp/securimage'; | |
11 | + $t_securimage_show = $t_securimage_path . '/securimage_show.php'; | |
12 | + $t_securimage_play = $t_securimage_path . '/securimage_play.swf?' | |
13 | + . http_build_query( array( | |
14 | + 'audio_file' => $t_securimage_path . '/securimage_play.php', | |
15 | + 'bgColor1=' => '#fff', | |
16 | + 'bgColor2=' => '#fff', | |
17 | + 'iconColor=' => '#777', | |
18 | + 'borderWidth=' => 1, | |
19 | + 'borderColor=' => '#000', | |
20 | + ) ); | |
21 | +?> | |
22 | + <tr> | |
23 | + <th class="category">CAPTCHA</th> | |
24 | + <td> | |
25 | + | |
26 | + <label for="captcha-field" class="block clearfix"> | |
27 | + <strong><?php echo lang_get( 'signup_captcha_request_label' ); ?></strong> | |
28 | + </label> | |
29 | + <span id="captcha-input" class="input"> | |
30 | + <?php print_captcha_input( 'captcha' ); ?> | |
31 | + | |
32 | + <span id="captcha-image" class="captcha-image" style="padding-right:3px;"> | |
33 | + <img src="<?php echo $t_securimage_show; ?>" alt="visual captcha" /> | |
34 | + <ul id="captcha-refresh"><li><a href="#"><?php | |
35 | + echo lang_get( 'signup_captcha_refresh' ); | |
36 | + ?></a></li></ul> | |
37 | + </span> | |
38 | + | |
39 | + <object type="application/x-shockwave-flash" width="19" height="19" | |
40 | + data="<?php echo $t_securimage_play; ?>"> | |
41 | + <param name="movie" value="<?php echo $t_securimage_play; ?>" /> | |
42 | + </object> | |
43 | + </span> | |
44 | + </td> | |
45 | + </tr> | |
46 | +<?php | |
47 | + } | |
48 | +?> | |
49 | + | |
50 | ||
51 | <?php | |
52 | if( config_get( 'time_tracking_enabled' ) ) { |