Ignore:
Timestamp:
Oct 13, 2009, 9:07:50 AM (15 years ago)
Author:
LucMorizur
Message:

[Event Cats] Modify template/autolog_new.tpl

File:
1 edited

Legend:

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

    r3999 r4027  
    2525/*****************************************************************************
    2626Parameters ($ec_conf) :
    27  _ plugin activated ($ec_conf[0]) yes/no ;
    28  _ duplication allowance ($ec_conf[1]) :
     27 _ plugin activated ($ec_conf[0] <=> read_ec_conf('activated')) yes/no ;
     28 _ duplication allowance ($ec_conf[1] <=> read_ec_conf('dup_allow')) :
    2929   0 : no account ;
    3030   1 : all accounts ;
    3131   2 : no account but those specified ;    \
    32    3 : all accounts but those specified.   | could be different finally
     32   3 : all accounts but those specified ;  | could be different finally
     33 _ the number of digits when creating a new code automatically
     34   ($ec_conf[2] <=> read_ec_conf('auto_code_dg_nb')) ;
    3335 _ what to do in case an unknown code is used with "autolog" parameter
    34    ($ec_conf[2]) :
     36   ($ec_conf[3] <=> read_ec_conf('unknown_code')) :
    3537   0 : nothing ("goto" home page, index.php (not logged in of course)) ;
    3638   1 : redirected to "access denied" page ;
    3739   2 : redirected to an Additional Page precised below.
    3840 _ the id of the Additional Page which must be used in case of usage of an
    39    unknow code ($ec_conf[3]).
     41   unknow code ($ec_conf[4] <=> read_ec_conf('unknown_code_ap_id')).
    4042*****************************************************************************/
    4143
     
    5153}
    5254else {
    53   $ec_conf = explode(',' , '0,1,0,0');
     55  $ec_conf = explode(',' , '0,1,10,0,0');
    5456  change_ec_conf('activated', 0);
    5557}
     
    7072  switch ($c) {
    7173    case 'activated':
    72       $d = 0;
     74      $ec_conf[0] = $v;
    7375    break;
    7476    case 'dup_allow':
    75       $d = 1;
     77      $ec_conf[1] = $v;
     78    break;
     79    case 'auto_code_dg_nb':
     80      $ec_conf[2] = $v;
    7681    break;
    7782    case 'unknown_code':
    78       $d = 2;
     83      $ec_conf[3] = $v;
    7984    break;
    8085    case 'unknown_code_ap_id':
    81       $d = 3;
     86      $ec_conf[4] = $v;
    8287    break;
    8388    default: return false;
    8489  }
    85   $ec_conf[$d] = $v;
    8690  return pwg_query("
    8791   UPDATE `".CONFIG_TABLE."`
     
    105109    case 'activated'         : return $ec_conf[0];
    106110    case 'dup_allow'         : return $ec_conf[1];
    107     case 'unknown_code'      : return $ec_conf[2];
    108     case 'unknown_code_ap_id': return $ec_conf[3];
     111    case 'auto_code_dg_nb'   : return $ec_conf[2];
     112    case 'unknown_code'      : return $ec_conf[3];
     113    case 'unknown_code_ap_id': return $ec_conf[4];
    109114    default                  : return false;
    110115  }
Note: See TracChangeset for help on using the changeset viewer.