Ignore:
Timestamp:
Oct 9, 2009, 11:29:39 PM (15 years ago)
Author:
LucMorizur
Message:

[Event Cats] $_POST analysis beginning

File:
1 edited

Legend:

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

    r3985 r4011  
    4646 
    4747  $ec_lists['ec_table'] = array();
    48   // $ec_lists['ec_codes'] = array(); // Useful ?
    4948 
    5049  if (isset($conf['auto_log'])) {
     
    6059       'arg2'    => NULL,
    6160       'forced'  => 'false',
    62       )) - 1; // key($ec_lists['ec_table']) does not work as expected
     61      )) - 1;
    6362      $ec_lists['ec_table'][$ec_current_entry]['id'] = $ec_current_entry;
    64       /* $ec_lists['ec_codes'][$ec_current_code] = array(
    65        'count' => 1,
    66        'id'    => $ec_current_entry
    67       ); */
    6863      if (isset($conf['prior_page'])) {
    6964        if (array_key_exists($ec_current_code, $conf['prior_page'])) {
     
    9489           'arg2'    => $ec_current_AP,
    9590           'forced'  => 'true',
    96           )) - 1; // key($ec_lists['ec_table']) problem
     91          )) - 1;
    9792          $ec_lists['ec_table'][$ec_current_entry]['id'] = $ec_current_entry;
    98           /* $ec_lists['ec_codes'][$ec_current_code] = array(
    99            'id'     => $ec_current_entry,
    100            'count'  => 1
    101           ); */
    10293        }
    10394      }
     
    114105    while ($r = mysql_fetch_assoc($q)) {
    115106      $ec_lists['ec_table'][intval($r['id'])] = $r;
    116       /* $ec_current_entry = intval($r['id']);
    117       $ec_current_code = $r['code'];
    118       if (array_key_exists($ec_current_code, $ec_lists['ec_codes'])) {
    119         $ec_lists[$ec_current_code]['count']++;
    120       }
    121       else {
    122         $ec_lists['ec_codes'][$ec_current_code] = array(
    123          'id'     => $ec_current_entry,
    124          'count'  => 1
    125         ); */
    126107    }
    127108  }
     
    145126    $first = array();
    146127    $to_correct = array();
     128   
    147129    // $to_correct is needed because following code would not work anywhere :
    148130    /*
     
    159141    // Internet provider).
    160142    */
     143   
    161144    foreach ($ec_lists['ec_table'] as &$ec_entry) { // & is not really needed
    162145      $ec_current_code = $ec_entry['code'];
Note: See TracChangeset for help on using the changeset viewer.