/[drupal]/contributions/modules/captcha/captcha.module
ViewVC logotype

Diff of /contributions/modules/captcha/captcha.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.21, Sun Feb 12 08:54:56 2006 UTC revision 1.22, Fri Mar 3 22:42:41 2006 UTC
# Line 1  Line 1 
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 = "";
# Line 29  function captcha_menu($may_cache) { Line 29  function captcha_menu($may_cache) {
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  }  }
# Line 211  function _captcha_font_list() { Line 217  function _captcha_font_list() {
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  /**  /**

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.2