Current Path: > home > ivftiowh > greeceivf.com > wp-content > plugins > > jetpack
Operation : Linux premium88.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 Software : Apache Server IP : 185.61.154.216 | Your IP: 216.73.216.44 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
3rd-party | Directory | - | - | |
_inc | Directory | - | - | |
css | Directory | - | - | |
images | Directory | - | - | |
json-endpoints | Directory | - | - | |
languages | Directory | - | - | |
modules | Directory | - | - | |
scss | Directory | - | - | |
views | Directory | - | - | |
.svnignore | File | 151 bytes | October 14 2024 11:06:00. | |
changelog.txt | File | 100323 bytes | October 14 2024 11:06:00. | |
class.jetpack-admin.php | File | 8636 bytes | October 14 2024 11:06:00. | |
class.jetpack-autoupdate.php | File | 6955 bytes | October 14 2024 11:06:00. | |
class.jetpack-bbpress-json-api-compat.php | File | 3271 bytes | October 14 2024 11:06:00. | |
class.jetpack-cli.php | File | 21094 bytes | October 14 2024 11:06:00. | |
class.jetpack-client-server.php | File | 7569 bytes | October 14 2024 11:06:00. | |
class.jetpack-client.php | File | 8998 bytes | October 14 2024 11:06:00. | |
class.jetpack-data-https.php | File | 26683 bytes | October 14 2024 11:06:00. | |
class.jetpack-data.php | File | 4100 bytes | October 14 2024 11:06:00. | |
class.jetpack-debugger.php | File | 17013 bytes | October 14 2024 11:06:00. | |
class.jetpack-error.php | File | 47 bytes | October 14 2024 11:06:00. | |
class.jetpack-heartbeat.php | File | 4692 bytes | October 14 2024 11:06:00. | |
class.jetpack-ixr-client.php | File | 3213 bytes | October 14 2024 11:06:00. | |
class.jetpack-jitm.php | File | 18931 bytes | October 14 2024 11:06:00. | |
class.jetpack-modules-list-table.php | File | 12097 bytes | October 14 2024 11:06:00. | |
class.jetpack-network-sites-list-table.php | File | 3956 bytes | October 14 2024 11:06:00. | |
class.jetpack-network.php | File | 22982 bytes | October 14 2024 11:06:00. | |
class.jetpack-options.php | File | 9576 bytes | October 14 2024 11:06:00. | |
class.jetpack-post-images.php | File | 17110 bytes | October 14 2024 11:06:00. | |
class.jetpack-signature.php | File | 6432 bytes | October 14 2024 11:06:00. | |
class.jetpack-sync.php | File | 34764 bytes | October 14 2024 11:06:00. | |
class.jetpack-tracks.php | File | 2787 bytes | October 14 2024 11:06:00. | |
class.jetpack-twitter-cards.php | File | 8923 bytes | October 14 2024 11:06:00. | |
class.jetpack-user-agent.php | File | 45099 bytes | October 14 2024 11:06:00. | |
class.jetpack-xmlrpc-server.php | File | 12601 bytes | October 14 2024 11:06:00. | |
class.jetpack.php | File | 243573 bytes | October 14 2024 11:06:00. | |
class.json-api-endpoints.php | File | 68525 bytes | October 14 2024 11:06:00. | |
class.json-api.php | File | 19659 bytes | October 14 2024 11:06:00. | |
class.media-extractor-boolean.php | File | 185495 bytes | October 14 2024 11:06:00. | |
class.media-extractor.php | File | 17156 bytes | October 14 2024 11:06:00. | |
class.media-summary.php | File | 10013 bytes | October 14 2024 11:06:00. | |
class.photon.php | File | 30226 bytes | October 14 2024 11:06:00. | |
composer.json | File | 345 bytes | October 14 2024 11:06:00. | |
functions.compat.php | File | 2445 bytes | October 14 2024 11:06:00. | |
functions.gallery.php | File | 2310 bytes | October 14 2024 11:06:00. | |
functions.opengraph.php | File | 13917 bytes | October 14 2024 11:06:00. | |
functions.photon.php | File | 8303 bytes | October 14 2024 11:06:00. | |
jetpack.php | File | 4545 bytes | October 14 2024 11:06:00. | |
json-api-config.php | File | 255 bytes | October 14 2024 11:06:00. | |
json-endpoints.php | File | 120716 bytes | October 14 2024 11:06:00. | |
locales-part.php | File | 185495 bytes | October 14 2024 11:06:00. | |
locales.php | File | 60933 bytes | October 14 2024 11:06:00. | |
readme.txt | File | 23297 bytes | October 14 2024 11:06:00. | |
require-lib.php | File | 982 bytes | October 14 2024 11:06:00. | |
uninstall.php | File | 625 bytes | October 14 2024 11:06:00. | |
wpml-config.xml | File | 213 bytes | October 14 2024 11:06:00. |
<?php /** * Handles items that have been selected for automatic updates. * Hooks into WP_Automatic_Updater */ class Jetpack_Autoupdate { private $results = array(); private $expected = array(); private $success = array( 'plugin' => array(), 'theme' => array(), ); private $failed = array( 'plugin' => array(), 'theme' => array(), ); private static $instance = null; static function init() { if ( is_null( self::$instance ) ) { self::$instance = new Jetpack_Autoupdate; } return self::$instance; } private function __construct() { if ( Jetpack::is_module_active( 'manage' ) ) { add_filter( 'auto_update_plugin', array( $this, 'autoupdate_plugin' ), 10, 2 ); add_filter( 'auto_update_theme', array( $this, 'autoupdate_theme' ), 10, 2 ); add_filter( 'auto_update_core', array( $this, 'autoupdate_core' ), 10, 2 ); add_action( 'automatic_updates_complete', array( $this, 'automatic_updates_complete' ), 999, 1 ); } } public function autoupdate_plugin( $update, $item ) { $autoupdate_plugin_list = Jetpack_Options::get_option( 'autoupdate_plugins', array() ); if ( in_array( $item->plugin, $autoupdate_plugin_list ) ) { $this->expect( $item->plugin, 'plugin' ); return true; } return $update; } public function autoupdate_theme( $update, $item ) { $autoupdate_theme_list = Jetpack_Options::get_option( 'autoupdate_themes', array() ); if ( in_array( $item->theme , $autoupdate_theme_list) ) { $this->expect( $item->theme, 'theme' ); return true; } return $update; } public function autoupdate_core( $update, $item ) { $autoupdate_core = Jetpack_Options::get_option( 'autoupdate_core', false ); if ( $autoupdate_core ) { return $autoupdate_core; } return $update; } /** * Stores the an item identifier to the expected array. * * @param string $item Example: 'jetpack/jetpack.php' for type 'plugin' or 'twentyfifteen' for type 'theme' * @param string $type 'plugin' or 'theme' */ private function expect( $item, $type ) { if ( ! isset( $this->expected[ $type ] ) ) { $this->expected[ $type ] = array(); } $this->expected[ $type ][] = $item; } /** * On completion of an automatic update, let's store the results. * * @param $results - Sent by WP_Automatic_Updater after it completes an autoupdate action. Results may be empty. */ public function automatic_updates_complete( $results ) { if ( empty( $this->expected ) ) { return; } $this->results = empty( $results ) ? self::get_possible_failures() : $results; add_action( 'shutdown', array( $this, 'bump_stats' ) ); Jetpack::init(); $items_to_log = array( 'plugin', 'theme' ); foreach( $items_to_log as $items ) { $this->log_items( $items ); } Jetpack::log( 'autoupdates', $this->get_log() ); } public function get_log() { return array( 'results' => $this->results, 'failed' => $this->failed, 'success' => $this->success ); } /** * Iterates through expected items ( plugins or themes ) and compares them to actual results. * * @param $items 'plugin' or 'theme' */ private function log_items( $items ) { if ( ! isset( $this->expected[ $items ] ) ) { return; } $item_results = $this->get_successful_updates( $items ); if ( is_array( $this->expected[ $items ] ) ) { foreach( $this->expected[ $items ] as $item ) { if ( in_array( $item, $item_results ) ) { $this->success[ $items ][] = $item; } else { $this->failed[ $items ][] = $item; } } } } public function bump_stats() { $instance = Jetpack::init(); $log = array(); // Bump numbers if ( ! empty( $this->success['plugin'] ) ) { $instance->stat( 'autoupdates/plugin-success', count( $this->success['plugin'] ) ); $log['plugins_success'] = $this->success['plugin']; } if ( ! empty( $this->failed['plugin'] ) ) { $instance->stat( 'autoupdates/plugin-fail', count( $this->failed['plugin'] ) ); $log['plugins_failed'] = $this->failed['plugin']; } if ( ! empty( $this->success['theme'] ) ) { $instance->stat( 'autoupdates/theme-success', count( $this->success['theme'] ) ); $log['themes_success'] = $this->success['theme']; } if ( ! empty( $this->failed['theme'] ) ) { $instance->stat( 'autoupdates/theme-fail', count( $this->failed['theme'] ) ); $log['themes_failed'] = $this->failed['theme']; } $instance->do_stats( 'server_side' ); // Send a more detailed log to logstash if ( ! empty( $log ) ) { Jetpack::load_xml_rpc_client(); $xml = new Jetpack_IXR_Client( array( 'user_id' => get_current_user_id() ) ); $log['blog_id'] = Jetpack_Options::get_option( 'id' ); $xml->query( 'jetpack.debug_autoupdate', $log ); } } /** * Parses the autoupdate results generated by WP_Automatic_Updater and returns a simple array of successful items * * @param string $type 'plugin' or 'theme' * * @return array */ private function get_successful_updates( $type ) { $successful_updates = array(); if ( ! isset( $this->results[ $type ] ) ) { return $successful_updates; } foreach( $this->results[ $type ] as $result ) { if ( $result->result ) { switch( $type ) { case 'theme': $successful_updates[] = $result->item->theme; break; case 'plugin': $successful_updates[] = $result->item->plugin; } } } return $successful_updates; } static function get_possible_failures() { $result = array(); // Lets check some reasons why it might not be working as expected include_once( ABSPATH . '/wp-admin/includes/admin.php' ); include_once( ABSPATH . '/wp-admin/includes/class-wp-upgrader.php' ); $upgrader = new WP_Automatic_Updater; if ( $upgrader->is_disabled() ) { $result[] = 'autoupdates-disabled'; } if ( ! is_main_site() ) { $result[] = 'is-not-main-site'; } if ( ! is_main_network() ) { $result[] = 'is-not-main-network'; } if ( $upgrader->is_vcs_checkout( ABSPATH ) ) { $result[] = 'site-on-vcs'; } if ( $upgrader->is_vcs_checkout( WP_PLUGIN_DIR ) ) { $result[] = 'plugin-directory-on-vcs'; } if ( $upgrader->is_vcs_checkout( WP_CONTENT_DIR ) ) { $result[] = 'content-directory-on-vcs'; } $lock = get_option( 'auto_updater.lock' ); if ( $lock > ( time() - HOUR_IN_SECONDS ) ) { $result[] = 'lock-is-set'; } $skin = new Automatic_Upgrader_Skin; include_once( ABSPATH . 'wp-admin/includes/file.php' ); include_once( ABSPATH . 'wp-admin/includes/template.php' ); if ( ! $skin->request_filesystem_credentials( false, ABSPATH, false ) ) { $result[] = 'no-system-write-access'; } if ( ! $skin->request_filesystem_credentials( false, WP_PLUGIN_DIR, false ) ) { $result[] = 'no-plugin-directory-write-access'; } if ( ! $skin->request_filesystem_credentials( false, WP_CONTENT_DIR, false ) ) { $result[] = 'no-wp-content-directory-write-access'; } return $result; } } Jetpack_Autoupdate::init();
SILENT KILLER Tool