* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Loquacity; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ include_once 'core/config.php'; if (defined(C_CAPTCHA_ENABLE) && C_CAPTCHA_ENABLE == 'true') { include_once 'core/3rdparty/captcha/php-captcha.inc.php'; $fonts = 'core/3rdparty/captcha/fonts/'; $aFonts = array($fonts . 'VeraBd.ttf', $fonts . 'VeraIt.ttf', $fonts . 'Vera.ttf'); $captcha = new PhpCaptcha($aFonts, 200, 60); //Set user options $captcha->SetWidth(C_CAPTCHA_WIDTH); $captcha->SetHeight(C_CAPTCHA_HEIGHT); $captcha->SetNumChars(C_CAPTCHA_CHARACTERS); $captcha->SetNumLines(C_CAPTCHA_LINES); if (C_CAPTCHA_ENABLE_SHADOWS === 'true') { $captcha->DisplayShadow(true); } if (C_CAPTCHA_OWNER_TEXT === 'true') { $captcha->SetOwnerText(BLOGURL); } $captcha->SetCharSet(C_CAPTCHA_CHARACTER_SET); if (C_CAPTCHA_CASE_INSENSITIVE === 'true') { $captcha->CaseInsensitive(true); } //$captcha->SetEdith(C_CAPTCHA_WIDTH); $captcha->SetMinFontSize(C_CAPTCHA_MIN_FONT);
<?php //////////////////////////////////////////////////////////////////////////// // // (c) phpChess Limited, 2004-2006, in association with Goliath Systems. // All rights reserved. Please observe respective copyrights. // phpChess - Chess at its best // you can find us at http://www.phpchess.com. // //////////////////////////////////////////////////////////////////////////// require 'php-captcha.inc.php'; // define fonts $aFonts = array('fonts/VeraBd.ttf'); // create new image $oPhpCaptcha = new PhpCaptcha($aFonts, 150, 30); $oPhpCaptcha->SetBackgroundImages('val.jpg'); $oPhpCaptcha->SetWidth(150); $oPhpCaptcha->SetHeight(30); $oPhpCaptcha->SetNumChars(5); $oPhpCaptcha->SetMinFontSize(10); $oPhpCaptcha->SetMinFontSize(12); $oPhpCaptcha->UseColour(True); $oPhpCaptcha->DisplayShadow(False); $oPhpCaptcha->SetNumLines(250); $oPhpCaptcha->Create();