Location: PHPKode > projects > KnowledgebasePublisher > kb/captcha.php
<?php
$app_dir = str_replace(array('\\'), '/', getcwd() . '/');
//$app_dir = $_SERVER['DOCUMENT_ROOT'] . '/kb/';


/* DO NOT MODIFY */
$admin_dir  = $app_dir . 'admin/';
$font_dir = $app_dir . 'client/fonts/';


require_once $admin_dir . 'config.inc.php';
require_once 'eleontev/Util/CaptchaImage.php';

//@session_name($conf['session_name']);
session_start();

header('Content-Type: image/jpeg');
$captcha = new CaptchaImage();
$captcha->setFont($font_dir . 'Vera.ttf');

$_SESSION['kb_captcha_'] = $captcha->getCode();
$captcha->getImage();
?>
Return current item: KnowledgebasePublisher