| Server IP : 85.214.239.14 / Your IP : 216.73.216.189 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/2/root/proc/3/cwd/var/www/wordpress/wp-content/plugins/bug-library/captcha/ |
Upload File : |
<?php
require('php-captcha.inc.php');
$fonts = array('', 'Bd', 'BI', 'It', 'MoBd', 'MoBI', 'MoIt', 'Mono', 'Se', 'SeBd');
for($i = 0; $i < count($fonts); $i++ )
$fonts[$i] = 'ttf-bitstream-vera-1.10/Vera'.$fonts[$i].'.ttf';
$alphabet = 'a_b_c_d_e_f_g_h_i_j_k_l_m_n_o_p_q_r_s_t_u_v_w_x_y_z';
$alphabet = explode('_', $alphabet);
shuffle($alphabet);
$captchaText = '';
for($i = 0; $i < 5; $i++ )
{
$captchaText .= $alphabet[$i];
}
$time = time();
setcookie('Captcha', md5("HFDJUJRPOSKKKLKUEB".$captchaText.$_SERVER['REMOTE_ADDR'].$time).'.'.$time, null, '/');
$oVisualCaptcha = new PhpCaptcha($fonts, strlen($captchaText) * 23, 60);
$oVisualCaptcha->UseColour(true);
$oVisualCaptcha->Create($captchaText);
?>