Location: PHPKode > projects > Jumper 2.0 Collaborative Search Engine > Jumper/jmp/captcha.php
<?php
//************************************************************************************
//** captcha.php - session thread
//** This file contains the session threading modified by Steve Perry (c) 2008
//**
//** Jumper Software
//** Version 2.0
//**Copyright: Copyright 2008 Jumper Networks Incorporated
//**Copyright: All Rights Reserved
//**Copyright:
//**Copyright: Licensed under the GNU General Public License (Version 2) published
//**Copyright: by the Free Software Foundation; you may not use this file except in
//**Copyright: compliance with the License. Permission is granted for redistribution
//**Copyright: of this file provided this copyright notice is maintained intact. If
//**Copyright: you alter or modify the contents of this file in any way from its 
//**Copyright: original form please notify Jumper Networks Incorporated.
//**Copyright: 
//**Copyright: Jumper is a trademark of Jumper Networks Incorporated
//**Copyright: which may be registered in certain jurisdictions.
//**EndComments
//**
//**********************************************************************************

$app_dir = str_replace(array('\\'), '/', getcwd() . '/');
//$app_dir = $_SERVER['DOCUMENT_ROOT'] . '/jmp/';


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


require_once $admin_dir . 'config.inc.php';
require_once 'jumper_lib/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['jmp_captcha_'] = $captcha->getCode();
$captcha->getImage();
?>
Return current item: Jumper 2.0 Collaborative Search Engine