- Timestamp:
- Nov 4, 2009, 12:28:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/include/evntcats_main_funcs.inc.php
r4173 r4179 211 211 )) - 1; 212 212 $ec_lists['ec_table'][$ec_current_entry]['id'] = $ec_current_entry; 213 if (isset($conf['prior_page'])) { 214 if (array_key_exists($ec_current_code, $conf['prior_page'])) { 215 $ec_lists['ec_table'][$ec_current_entry]['arg2'] = 216 $conf['prior_page'][$ec_current_code]; 217 $ec_lists['ec_table'][$ec_current_entry]['forced'] = 'true'; 218 } 213 if (isset($conf['prior_page'])) 214 if (array_key_exists($ec_current_code, $conf['prior_page'])) { 215 $ec_lists['ec_table'][$ec_current_entry]['arg2'] = 216 $conf['prior_page'][$ec_current_code]; 217 $ec_lists['ec_table'][$ec_current_entry]['forced'] = 'true'; 218 } 219 if (isset($conf['outdated_page'])) 220 if (array_key_exists($ec_current_code, $conf['outdated_page'])) { 221 $ec_lists['ec_table'][$ec_current_entry]['action'] = 'ec_nok'; 222 $ec_lists['ec_table'][$ec_current_entry]['arg2'] = 223 $conf['outdated_page'][$ec_current_code]; 224 $ec_lists['ec_table'][$ec_current_entry]['forced'] = 'true'; 225 } 226 } 227 228 // Inspection of $conf['outdated_page'] 229 if (isset($conf['outdated_page'])) 230 foreach ($conf['outdated_page'] as $ec_current_code => $ec_current_AP) 231 if (!array_key_exists($ec_current_code, $conf['auto_log'])) { 232 $ec_current_entry = array_push($ec_lists['ec_table'], array( 233 'code' => $ec_current_code, 234 'user_id' => '', 235 'action' => 'ec_nok', 236 'arg1' => NULL, 237 'arg2' => $ec_current_AP, 238 'forced' => 'true', 239 )) - 1; 240 $ec_lists['ec_table'][$ec_current_entry]['id'] = $ec_current_entry; 219 241 } 220 if (isset($conf['outdated_page'])) {221 if (array_key_exists($ec_current_code, $conf['outdated_page'])) {222 $ec_lists['ec_table'][$ec_current_entry]['action'] = 'ec_nok';223 $ec_lists['ec_table'][$ec_current_entry]['arg2'] =224 $conf['outdated_page'][$ec_current_code];225 $ec_lists['ec_table'][$ec_current_entry]['forced'] = 'true';226 }227 }228 }229 230 // Inspection of $conf['outdated_page']231 if (isset($conf['outdated_page'])) {232 foreach ($conf['outdated_page'] as $ec_current_code => $ec_current_AP) {233 if (!array_key_exists($ec_current_code, $conf['auto_log'])) {234 $ec_current_entry = array_push($ec_lists['ec_table'], array(235 'code' => $ec_current_code,236 'user_id' => '',237 'action' => 'ec_nok',238 'arg1' => NULL,239 'arg2' => $ec_current_AP,240 'forced' => 'true',241 )) - 1;242 $ec_lists['ec_table'][$ec_current_entry]['id'] = $ec_current_entry;243 }244 }245 }246 242 247 243 } 248 244 else { // in "normal" use ($conf['auto_log'] NOT set), $ec_lists['ec_table'] 249 245 // is built thanks to below code only. A little bit more simple... 250 $q = pwg_query( '251 SELECT * FROM ` '.EVNTCATS_TABLE.'`246 $q = pwg_query(" 247 SELECT * FROM `".EVNTCATS_TABLE."` 252 248 WHERE `code` IS NOT NULL 253 249 ORDER BY `id` 254 '); 255 while ($r = mysql_fetch_assoc($q)) { 256 $ec_lists['ec_table'][intval($r['id'])] = $r; 257 } 250 "); 251 while ($r = mysql_fetch_assoc($q)) 252 $ec_lists['ec_table'][intval($r['id'])] = $r; 258 253 } 259 254 … … 294 289 ) and 295 290 !array_key_exists($ec_entry['arg2'], $ec_lists['add_pages']) 296 ) { 297 $ec_entry['action'].= '_ap_pb'; 298 } 291 ) $ec_entry['action'].= '_ap_pb'; 299 292 break; 300 293 … … 309 302 } 310 303 } 311 else { 312 $ec_entry['action'].= '_cat_pb'; 313 } 304 else $ec_entry['action'].= '_cat_pb'; 314 305 } 315 306 break;
Note: See TracChangeset
for help on using the changeset viewer.