function genCaptcha() { //Create a CAPTCHA $captcha = new captcha(); $_SESSION['CAPTCHA'] = $captcha->getCaptcha(); exit; }
function captcha() { require_once JPATH_COMPONENT . DS . 'includes' . DS . 'datso.captcha.php'; $captcha = new captcha(); $_SESSION['CAPTCHA'] = $captcha->getCaptcha(); exit; }
ini_set('session.use_trans_sid', 0); } // Set the local configuration parameters - mainly for developers if (file_exists('../includes/local/configure.php')) { require '../includes/local/configure.php'; } // Include application configuration parameters require '../includes/configure.php'; require '../includes/oos_tables.php'; // Load server utilities require '../includes/functions/function_server.php'; // define how the session functions will be used require '../includes/functions/function_session.php'; if (isset($_COOKIE[oos_session_name()])) { oos_session_id($_COOKIE[oos_session_name()]); } else { if (isset($_GET[oos_session_name()])) { oos_session_id($_GET[oos_session_name()]); } } // lets start our session oos_session_name('OOSADMINSID'); oos_session_start(); if (!isset($_SESSION)) { $_SESSION = array(); } $_SESSION['oos_captcha_string'] = ''; require '../includes/lib/captcha/captcha.class.php'; $captcha = new captcha(); $_SESSION['oos_captcha_string'] = $captcha->getCaptcha();