]> git.immae.eu Git - perso/Immae/Config/Nix.git/blob - nixops/modules/websites/tools/git/mantisbt/patches/bug_report_page.php.diff
80dea911c173a9f49e06ee9ebb9f67bc770dda7b
[perso/Immae/Config/Nix.git] / nixops / modules / websites / tools / git / mantisbt / patches / bug_report_page.php.diff
1 --- a/bug_report_page.php 2018-02-10 21:29:27.000000000 +0100
2 +++ b/bug_report_page.php 2018-03-03 15:04:19.622499678 +0100
3 @@ -708,7 +708,50 @@
4 <span class="lbl padding-6"><?php echo lang_get( 'check_report_more_bugs' ) ?></span>
5 </label>
6 </td>
7 </tr>
8 +<?php
9 + # captcha image requires GD library and related option to ON
10 + if( current_user_is_anonymous() && get_gd_version() > 0 ) {
11 + $t_securimage_path = 'vendor/dapphp/securimage';
12 + $t_securimage_show = $t_securimage_path . '/securimage_show.php';
13 + $t_securimage_play = $t_securimage_path . '/securimage_play.swf?'
14 + . http_build_query( array(
15 + 'audio_file' => $t_securimage_path . '/securimage_play.php',
16 + 'bgColor1=' => '#fff',
17 + 'bgColor2=' => '#fff',
18 + 'iconColor=' => '#777',
19 + 'borderWidth=' => 1,
20 + 'borderColor=' => '#000',
21 + ) );
22 +?>
23 + <tr>
24 + <th class="category">CAPTCHA</th>
25 + <td>
26 +
27 + <label for="captcha-field" class="block clearfix">
28 + <strong><?php echo lang_get( 'signup_captcha_request_label' ); ?></strong>
29 + </label>
30 + <span id="captcha-input" class="input">
31 + <?php print_captcha_input( 'captcha' ); ?>
32 +
33 + <span id="captcha-image" class="captcha-image" style="padding-right:3px;">
34 + <img src="<?php echo $t_securimage_show; ?>" alt="visual captcha" />
35 + <ul id="captcha-refresh"><li><a href="#"><?php
36 + echo lang_get( 'signup_captcha_refresh' );
37 + ?></a></li></ul>
38 + </span>
39 +
40 + <object type="application/x-shockwave-flash" width="19" height="19"
41 + data="<?php echo $t_securimage_play; ?>">
42 + <param name="movie" value="<?php echo $t_securimage_play; ?>" />
43 + </object>
44 + </span>
45 + </td>
46 + </tr>
47 +<?php
48 + }
49 +?>
50 +
51 </table>
52 </div>
53 </div>