Current Path: > home > codekrsu > > escapematrixonline.com > wp-content > plugins > koko-analytics > src > >
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
views | Directory | - | - | |
backwards-compat.php | File | 370 bytes | June 12 2025 11:44:36. | |
class-actions.php | File | 845 bytes | February 10 2025 14:48:06. | |
class-admin-actions.php | File | 4609 bytes | June 12 2025 11:44:36. | |
class-admin-bar.php | File | 713 bytes | February 18 2025 13:13:36. | |
class-admin-page.php | File | 5425 bytes | June 12 2025 11:44:36. | |
class-admin.php | File | 4019 bytes | February 10 2025 14:48:06. | |
class-aggregator.php | File | 2952 bytes | February 25 2025 13:03:20. | |
class-burst-importer.php | File | 11294 bytes | June 13 2025 15:30:02. | |
class-chart-view.php | File | 5748 bytes | June 12 2025 11:44:36. | |
class-command.php | File | 514 bytes | April 15 2025 12:32:12. | |
class-dashboard-widget.php | File | 1548 bytes | February 18 2025 13:13:36. | |
class-dashboard.php | File | 9510 bytes | June 12 2025 11:44:36. | |
class-data-exporter.php | File | 3168 bytes | February 18 2025 13:13:36. | |
class-data-importer.php | File | 2270 bytes | February 18 2025 13:13:36. | |
class-endpoint-installer.php | File | 5526 bytes | June 13 2025 10:27:30. | |
class-fingerprinter.php | File | 2279 bytes | June 12 2025 11:44:36. | |
class-fmt.php | File | 1332 bytes | February 18 2025 13:13:36. | |
class-jetpack-importer.php | File | 15592 bytes | June 13 2025 15:30:02. | |
class-migrations.php | File | 2436 bytes | January 17 2025 13:46:42. | |
class-notice-pro.php | File | 4591 bytes | March 24 2025 11:30:04. | |
class-pageview-aggregator.php | File | 12890 bytes | March 10 2025 11:31:16. | |
class-plugin.php | File | 1234 bytes | June 12 2025 11:44:36. | |
class-pruner.php | File | 1460 bytes | April 15 2025 12:32:12. | |
class-query-loop-block.php | File | 1533 bytes | March 10 2025 11:31:16. | |
class-rest.php | File | 8271 bytes | February 10 2025 14:48:06. | |
class-script-loader.php | File | 4741 bytes | June 12 2025 11:44:36. | |
class-shortcode-most-viewed-posts.php | File | 1861 bytes | February 25 2025 13:03:20. | |
class-shortcode-site-counter.php | File | 1727 bytes | March 10 2025 11:31:16. | |
class-stats.php | File | 7099 bytes | June 12 2025 11:44:36. | |
class-widget-most-viewed-posts.php | File | 5828 bytes | February 10 2025 14:48:06. | |
collect-functions.php | File | 9907 bytes | June 18 2025 21:02:18. | |
external-strings.php | File | 7144 bytes | April 15 2025 12:32:12. | |
functions.php | File | 6447 bytes | June 12 2025 11:44:36. | |
global-functions.php | File | 2521 bytes | January 17 2025 13:46:42. | |
template-functions.php | File | 567 bytes | February 18 2025 13:13:36. |
<?php /** * @package koko-analytics * @license GPL-3.0+ * @author Danny van Kooten */ namespace KokoAnalytics; use Exception; class Aggregator { /** * Reads the buffer file into memory and moves data into the MySQL database (in bulk) * * @throws Exception */ public static function run(): void { update_option('koko_analytics_last_aggregation_at', \time(), true); $buffer_file = get_buffer_filename(); // if buffer file does not exist, nothing happened since last aggregation if (! \is_file($buffer_file)) { return; } // init pageview aggregator $pageview_aggregator = new Pageview_Aggregator(); // rename file to temporary location so nothing new is written to it while we process it $tmp_filename = $buffer_file . '.busy'; $renamed = \rename($buffer_file, $tmp_filename); if ($renamed !== true) { if (WP_DEBUG) { throw new Exception('Error renaming buffer file.'); } else { error_log('Koko Analytics: error renaming buffer file'); } return; } // open file for reading $file_handle = \fopen($tmp_filename, 'r'); if (! $file_handle) { if (WP_DEBUG) { throw new Exception('Error opening buffer file for reading.'); } else { error_log('Koko Analytics: error opening buffer file for reading'); } return; } while (($line = \fgets($file_handle)) !== false) { $line = \trim($line); if ($line === '' || $line === '<?php exit; ?>') { continue; } $params = \unserialize($line, ['allowed_classes' => false]); if (! \is_array($params)) { error_log('Koko Analytics: unserialize error encountered while processing line in buffer file'); continue; } $type = \array_shift($params); // core aggregator $pageview_aggregator->line($type, $params); // add-on aggregators do_action('koko_analytics_aggregate_line', $type, $params); } // close file & remove it from filesystem \fclose($file_handle); \unlink($tmp_filename); // tell aggregators to write their results to the database $pageview_aggregator->finish(); do_action('koko_analytics_aggregate_finish'); } public static function setup_scheduled_event(): void { if (! wp_next_scheduled('koko_analytics_aggregate_stats')) { wp_schedule_event(time() + 60, 'koko_analytics_stats_aggregate_interval', 'koko_analytics_aggregate_stats'); } } public static function clear_scheduled_event(): void { wp_clear_scheduled_hook('koko_analytics_aggregate_stats'); } }
SILENT KILLER Tool