Ignore:
Timestamp:
Jan 17, 2007, 12:39:39 AM (17 years ago)
Author:
plg
Message:

Modification: new data model for history, more compact, more efficient. A
summary table is used as cache for history stats display.

New: a Perl script fill_history.pl was added to simulate a high load on
history table (making the efficiency of the new data model obvious).

Modification: function prepend_append_array_items moved from
include/functions_search.inc.php to include/functions_search.inc.php since
this function is used in new file admin/history.php

Modification: admin/images/*_stats.img.php replaced by a simpler and more
generic admin/images/stats.img.php unique file.

New: a history detail search page was added. Currently, only start and end
dates can be modified, it's just a beginning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_search.inc.php

    r1677 r1727  
    2626// +-----------------------------------------------------------------------+
    2727
    28 
    29 /**
    30  * Prepends and appends a string at each value of the given array.
    31  *
    32  * @param array
    33  * @param string prefix to each array values
    34  * @param string suffix to each array values
    35  */
    36 function prepend_append_array_items($array, $prepend_str, $append_str)
    37 {
    38   array_walk(
    39     $array,
    40     create_function('&$s', '$s = "'.$prepend_str.'".$s."'.$append_str.'";')
    41     );
    42 
    43   return $array;
    44 }
    4528
    4629/**
Note: See TracChangeset for help on using the changeset viewer.