Changeset 4027 for extensions/event_cats/include
- Timestamp:
- Oct 13, 2009, 9:07:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/include/ec_conf.inc.php
r3999 r4027 25 25 /***************************************************************************** 26 26 Parameters ($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')) : 29 29 0 : no account ; 30 30 1 : all accounts ; 31 31 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')) ; 33 35 _ 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')) : 35 37 0 : nothing ("goto" home page, index.php (not logged in of course)) ; 36 38 1 : redirected to "access denied" page ; 37 39 2 : redirected to an Additional Page precised below. 38 40 _ 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')). 40 42 *****************************************************************************/ 41 43 … … 51 53 } 52 54 else { 53 $ec_conf = explode(',' , '0,1, 0,0');55 $ec_conf = explode(',' , '0,1,10,0,0'); 54 56 change_ec_conf('activated', 0); 55 57 } … … 70 72 switch ($c) { 71 73 case 'activated': 72 $ d = 0;74 $ec_conf[0] = $v; 73 75 break; 74 76 case 'dup_allow': 75 $d = 1; 77 $ec_conf[1] = $v; 78 break; 79 case 'auto_code_dg_nb': 80 $ec_conf[2] = $v; 76 81 break; 77 82 case 'unknown_code': 78 $ d = 2;83 $ec_conf[3] = $v; 79 84 break; 80 85 case 'unknown_code_ap_id': 81 $ d = 3;86 $ec_conf[4] = $v; 82 87 break; 83 88 default: return false; 84 89 } 85 $ec_conf[$d] = $v;86 90 return pwg_query(" 87 91 UPDATE `".CONFIG_TABLE."` … … 105 109 case 'activated' : return $ec_conf[0]; 106 110 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]; 109 114 default : return false; 110 115 }
Note: See TracChangeset
for help on using the changeset viewer.