Changeset 28714 for trunk/admin/include/functions_history.inc.php
- Timestamp:
- Jun 18, 2014, 9:51:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_history.inc.php
r28587 r28714 72 72 $search['image_ids'] = array_from_query($query, 'id'); 73 73 } 74 74 75 75 // echo '<pre>'; print_r($search); echo '</pre>'; 76 76 77 77 $clauses = array(); 78 78 … … 90 90 { 91 91 $local_clauses = array(); 92 92 93 93 foreach ($types as $type) { 94 94 if (in_array($type, $search['fields']['types'])) { … … 102 102 $clause.= "= '".$type."'"; 103 103 } 104 104 105 105 $local_clauses[] = $clause; 106 106 } 107 107 } 108 108 109 109 if (count($local_clauses) > 0) 110 110 { … … 123 123 $clauses[] = 'image_id = '.$search['fields']['image_id']; 124 124 } 125 125 126 126 if (isset($search['fields']['filename'])) 127 127 { … … 141 141 $clauses[] = 'IP LIKE "'.$search['fields']['ip'].'"'; 142 142 } 143 143 144 144 $clauses = prepend_append_array_items($clauses, '(', ')'); 145 145 … … 149 149 $clauses 150 150 ); 151 151 152 152 $query = ' 153 153 SELECT … … 177 177 } 178 178 179 add_event_handler('get_history', 'get_history' , EVENT_HANDLER_PRIORITY_NEUTRAL, 3);179 add_event_handler('get_history', 'get_history'); 180 180 trigger_notify('functions_history_included'); 181 181
Note: See TracChangeset
for help on using the changeset viewer.