本文整理匯總了PHP中captcha::getCaptcha方法的典型用法代碼示例。如果您正苦於以下問題:PHP captcha::getCaptcha方法的具體用法?PHP captcha::getCaptcha怎麽用?PHP captcha::getCaptcha使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類captcha
的用法示例。
在下文中一共展示了captcha::getCaptcha方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: genCaptcha
function genCaptcha()
{
//Create a CAPTCHA
$captcha = new captcha();
$_SESSION['CAPTCHA'] = $captcha->getCaptcha();
exit;
}
示例2: captcha
function captcha()
{
require_once JPATH_COMPONENT . DS . 'includes' . DS . 'datso.captcha.php';
$captcha = new captcha();
$_SESSION['CAPTCHA'] = $captcha->getCaptcha();
exit;
}
示例3: array
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();