Changeset 5681
- Timestamp:
- 04/10/07 15:19:44 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/midcom.helper.replicator/manager.php
r5679 r5681 405 405 ); 406 406 $_MIDCOM->set_custom_context_data('midcom.helper.nav.breadcrumb', $tmp); 407 408 $_MIDCOM->add_link_head 409 ( 410 array 411 ( 412 'rel' => 'stylesheet', 413 'type' => 'text/css', 414 'href' => MIDCOM_STATIC_URL."/midcom.helper.replicator/replicator.css", 415 ) 416 ); 407 417 408 418 return true; trunk/src/midcom.helper.replicator/style/midcom-helper-replicator-object.php
r5679 r5681 37 37 exec("grep '{$data['object']->guid}' '{$GLOBALS['midcom_helper_replicator_logger']->_filename}'", $output); 38 38 39 echo "<ul >\n";39 echo "<ul class=\"midcom_helper_replicator_object\">\n"; 40 40 foreach ($output as $line) 41 41 { 42 echo "<li>{$line}</li>\n"; 42 $line_items = array(); 43 preg_match('/^(.*?\s[0-9]{2}\s[0-9]{4}\s[0-9]{2}:[0-9]{2}:[0-9]{2})\s\[(.*?)\]\s(.*?):(.*?)$/', $line, $line_items); 44 45 $component = str_replace('midcom_helper_replicator_importer', 'importer', str_replace('Queue Manager', 'queuemanager', $line_items[3])); 46 $message = str_replace($data['object']->guid, "<abbr title=\"{$data['object']->guid}\"><GUID></abbr>", $line_items[4]); 47 48 echo "<li class=\"{$line_items[2]} {$component}\">"; 49 echo "<span class=\"date\">" . strftime('%x %X', strtotime($line_items[1])) . "</span>"; 50 echo ": {$message}"; 51 echo "</li>\n"; 43 52 } 44 53 echo "</ul>\n";
