| 1 |
<?php |
<?php |
| 2 |
// $Id: captcha.module,v 1.20 2006/01/30 04:38:50 arnabdotorg Exp $ |
// $Id: captcha.module,v 1.21 2006/02/12 08:54:56 arnabdotorg Exp $ |
| 3 |
|
|
| 4 |
function captcha_help($section = "admin/help#captcha") { |
function captcha_help($section = "admin/help#captcha") { |
| 5 |
$output = ""; |
$output = ""; |
| 29 |
$items = array(); |
$items = array(); |
| 30 |
|
|
| 31 |
$suffix = ''; |
$suffix = ''; |
| 32 |
if (arg(2)!=null) $suffix='/'.arg(2); |
|
| 33 |
|
if ($may_cache) { |
| 34 |
$items[] = array('path' => 'captcha/image'.$suffix, 'title' => t('captcha image'), |
if (arg(2)!=null) $suffix='/'.arg(2); |
| 35 |
'callback' => _captcha_call('_captcha_image'), 'access' => user_access('access captchas'), |
$items[] = array( |
| 36 |
'type' => MENU_CALLBACK); |
'path' => 'captcha/image'.$suffix, 'title' => t('captcha image'), |
| 37 |
|
'callback' => '_captcha_call', |
| 38 |
|
'callback arguments' => array('_captcha_image'), |
| 39 |
|
'access' => user_access('access captchas'), |
| 40 |
|
'type' => MENU_CALLBACK |
| 41 |
|
); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
return $items; |
return $items; |
| 45 |
} |
} |
| 217 |
|
|
| 218 |
function _captcha_call($func) { |
function _captcha_call($func) { |
| 219 |
_captcha_load(); |
_captcha_load(); |
| 220 |
//if (function_exists($func)) call_user_func_array($func, array()); |
if (function_exists($func)) call_user_func_array($func, array()); |
| 221 |
} |
} |
| 222 |
|
|
| 223 |
/** |
/** |