Changeset 4171 for extensions/event_cats/include
- Timestamp:
- Nov 2, 2009, 2:23:52 AM (14 years ago)
- Location:
- extensions/event_cats/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/include/ec_conf.inc.php
r4092 r4171 33 33 _ the number of digits when creating a new code automatically 34 34 ($ec_conf[2] <=> read_ec_conf('auto_code_dg_nb')) ; 35 _ whether categories are displayed "cat / under_cat / ..." or 36 "cat <CR LF> - under_cat <CR LF> - ..." ($ec_conf[3] <=> 37 read_ec_conf('cat_display')) ; 35 38 _ whether the "how to" banner has already been displayed or not 36 ($ec_conf[ 3] <=> read_ec_conf('howto')) ;39 ($ec_conf[4] <=> read_ec_conf('howto')) ; 37 40 _ what to do in case an unknown code is used with "autolog" parameter 38 ($ec_conf[ 4] <=> read_ec_conf('unknown_code')) :41 ($ec_conf[5] <=> read_ec_conf('unknown_code')) : 39 42 0 : nothing ("goto" home page, index.php (not logged in of course)) ; 40 43 1 : redirected to "access denied" page ; 41 44 2 : redirected to an Additional Page precised below. 42 45 _ the id of the Additional Page which must be used in case of usage of an 43 unknow code ($ec_conf[ 5] <=> read_ec_conf('unknown_code_ap_id')).46 unknow code ($ec_conf[6] <=> read_ec_conf('unknown_code_ap_id')). 44 47 *****************************************************************************/ 45 48 … … 55 58 } 56 59 else { 57 $ec_conf = explode(',' , '0,1,10,0,0,0 ');60 $ec_conf = explode(',' , '0,1,10,0,0,0,0'); 58 61 change_ec_conf('activated', 0); 59 62 } … … 82 85 $ec_conf[2] = $v; 83 86 break; 84 case ' howto':87 case 'cat_display': 85 88 $ec_conf[3] = $v; 86 89 break; 87 case ' unknown_code':90 case 'howto': 88 91 $ec_conf[4] = $v; 89 92 break; 93 case 'unknown_code': 94 $ec_conf[5] = $v; 95 break; 90 96 case 'unknown_code_ap_id': 91 $ec_conf[ 5] = $v;97 $ec_conf[6] = $v; 92 98 break; 93 99 default: return false; … … 115 121 case 'dup_allow' : return $ec_conf[1]; 116 122 case 'auto_code_dg_nb' : return $ec_conf[2]; 117 case 'howto' : return $ec_conf[3]; 118 case 'unknown_code' : return $ec_conf[4]; 119 case 'unknown_code_ap_id': return $ec_conf[5]; 123 case 'cat_display' : return $ec_conf[3]; 124 case 'howto' : return $ec_conf[4]; 125 case 'unknown_code' : return $ec_conf[5]; 126 case 'unknown_code_ap_id': return $ec_conf[6]; 120 127 default : return false; 121 128 } -
extensions/event_cats/include/evntcats_main_funcs.inc.php
r4170 r4171 330 330 SELECT id,name,uppercats,global_rank 331 331 FROM '.CATEGORIES_TABLE, 332 $c, 'category_options', true);332 $c, 'category_options', (read_ec_conf('cat_display') == '0')); 333 333 $ec_lists['categories'] = $template->smarty->_tpl_vars['category_options']; 334 334
Note: See TracChangeset
for help on using the changeset viewer.