Ignore:
Timestamp:
Nov 9, 2009, 12:22:37 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Duplication management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/include/ec_conf.inc.php

    r4173 r4233  
    3333 _ the number of digits when creating a new code automatically
    3434   ($ec_conf[2] <=> read_ec_conf('auto_code_dg_nb')) ;
    35  _ -----------------------------------------------------------
    36    --------------------------------------- ( $ec_conf[3] <=>
    37    read_ec_conf('') ) ;
     35 _ the way the "register" link is displayed, together with the original $lang
     36   value for this label ( $ec_conf[3] <=> read_ec_conf('') ) ;
    3837 _ whether the "how to" banner has already been displayed or not
    3938   ($ec_conf[4] <=> read_ec_conf('howto')) ;
     
    8382    case 'auto_code_dg_nb':
    8483      $ec_conf[2] = $v;
    85     break;                  /*
    86     case 'cat_display':
     84    break;
     85    case 'reg_display':
    8786      $ec_conf[3] = $v;
    88     break;                  */
     87    break;
    8988    case 'howto':
    9089      $ec_conf[4] = $v;
     
    102101  return (pwg_query("
    103102   UPDATE `".CONFIG_TABLE."`
    104    SET `value` = '".implode(',', $ec_conf)."'
     103   SET `value` = \"".implode(',', $ec_conf)."\"
    105104   WHERE `param` = 'event_cats';
    106105  ") !== false);
     
    121120    case 'activated'         : return $ec_conf[0];
    122121    case 'dup_allow'         : return $ec_conf[1];
    123     case 'auto_code_dg_nb'   : return $ec_conf[2]; /*
    124     case 'cat_display'       : return $ec_conf[3]; */
     122    case 'auto_code_dg_nb'   : return $ec_conf[2];
     123    case 'reg_display'       : return $ec_conf[3];
    125124    case 'howto'             : return $ec_conf[4];
    126125    case 'unknown_code'      : return $ec_conf[5];
Note: See TracChangeset for help on using the changeset viewer.