header("Cache-Control: no-store, no-cache, must-revalidate, proxy-revalidate"); header("Pragma: no-cache"); header("Content-type: image/png"); return; } } global $wb, $admin; if (!is_object($wb)) { if (!is_object($admin)) { $wb = new frontend(); } else { $wb =& $admin; } } // get list of available CAPTCHAS for the dropdown-listbox in admin-tools $useable_captchas = array('calc_text' => $wb->lang()->translate('Calculation as text'), 'text' => $wb->lang()->translate('Text-CAPTCHA')); if (extension_loaded('gd') && function_exists('imagepng')) { $useable_captchas['calc_image'] = $wb->lang()->translate('Calculation as image'); $useable_captchas['old_image'] = $wb->lang()->translate('Old style (not recommended)'); if (function_exists('imagettftext')) { $useable_captchas['calc_ttf_image'] = $wb->lang()->translate('Calculation as image with varying fonts and backgrounds'); $useable_captchas['ttf_image'] = $wb->lang()->translate('Image with varying fonts and backgrounds'); } } if (!function_exists('wb_call_captcha')) { function wb_call_captcha($action = 'all', $style = '', $sec_id = '') { global $MOD_CAPTCHA; $t = time(); $_SESSION['captcha_time'] = $t; // get width and height of captcha image for use in <iframe>