| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/file-manager-advanced/vendor/freemius/templates/debug/ |
Upload File : |
<?php
/**
* @package Freemius
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
* @since 1.1.7.3
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$fs_options = FS_Options::instance( WP_FS__ACCOUNTS_OPTION_NAME, true );
$scheduled_crons = array();
$is_fs_debug_page = ( isset( $VARS['is_fs_debug_page'] ) && $VARS['is_fs_debug_page'] );
$module_types = array(
WP_FS__MODULE_TYPE_PLUGIN,
WP_FS__MODULE_TYPE_THEME
);
foreach ( $module_types as $module_type ) {
$modules = fs_get_entities( $fs_options->get_option( $module_type . 's' ), FS_Plugin::get_class_name() );
if ( is_array( $modules ) && count( $modules ) > 0 ) {
foreach ( $modules as $slug => $data ) {
if ( WP_FS__MODULE_TYPE_THEME === $module_type ) {
$current_theme = wp_get_theme();
$is_active = ( $current_theme->stylesheet === $data->file );
} else {
$is_active = is_plugin_active( $data->file );
}
/**
* @author Vova Feldman
*
* @since 1.2.1 Don't load data from inactive modules.
*/
if ( $is_active ) {
$fs = freemius( $data->id );
$next_execution = $fs->next_sync_cron();
$last_execution = $fs->last_sync_cron();
if ( false !== $next_execution ) {
$scheduled_crons[ $slug ][] = array(
'name' => $fs->get_plugin_name(),
'slug' => $slug,
'module_type' => $fs->get_module_type(),
'type' => 'sync_cron',
'last' => $last_execution,
'next' => $next_execution,
);
}
$next_install_execution = $fs->next_install_sync();
$last_install_execution = $fs->last_install_sync();
if (false !== $next_install_execution ||
false !== $last_install_execution
) {
$scheduled_crons[ $slug ][] = array(
'name' => $fs->get_plugin_name(),
'slug' => $slug,
'module_type' => $fs->get_module_type(),
'type' => 'install_sync',
'last' => $last_install_execution,
'next' => $next_install_execution,
);
}
}
}
}
}
$sec_text = fs_text_x_inline( 'sec', 'seconds' );
?>
<?php if ( $is_fs_debug_page ) : ?>
<h2>
<button class="fs-debug-table-toggle-button" aria-expanded="true">
<span class="fs-debug-table-toggle-icon">▼</span>
</button>
<?php fs_esc_html_echo_inline( 'Scheduled Crons' ) ?>
</h2>
<?php else : ?>
<h1><?php fs_esc_html_echo_inline( 'Scheduled Crons' ) ?></h1>
<?php endif ?>
<table class="widefat fs-debug-table">
<thead>
<tr>
<th><?php fs_esc_html_echo_inline( 'Slug' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Module' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Module Type' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Cron Type' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Last' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Next' ) ?></th>
</tr>
</thead>
<tbody>
<?php
/* translators: %s: time period (e.g. In "2 hours") */
$in_x_text = fs_text_inline( 'In %s', 'in-x' );
/* translators: %s: time period (e.g. "2 hours" ago) */
$x_ago_text = fs_text_inline( '%s ago', 'x-ago' );
?>
<?php foreach ( $scheduled_crons as $slug => $crons ) : ?>
<?php foreach ( $crons as $cron ) : ?>
<tr>
<td><?php echo $slug ?></td>
<td><?php echo $cron['name'] ?></td>
<td><?php echo $cron['module_type'] ?></td>
<td><?php echo $cron['type'] ?></td>
<td><?php
if ( is_numeric( $cron['last'] ) ) {
$diff = abs( WP_FS__SCRIPT_START_TIME - $cron['last'] );
$human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
$diff . ' ' . $sec_text :
human_time_diff( WP_FS__SCRIPT_START_TIME, $cron['last'] );
echo esc_html( sprintf(
( ( WP_FS__SCRIPT_START_TIME < $cron['last'] ) ?
$in_x_text :
$x_ago_text ),
$human_diff
) );
}
?></td>
<td><?php
if ( is_numeric( $cron['next'] ) ) {
$diff = abs( WP_FS__SCRIPT_START_TIME - $cron['next'] );
$human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
$diff . ' ' . $sec_text :
human_time_diff( WP_FS__SCRIPT_START_TIME, $cron['next'] );
echo esc_html( sprintf(
( ( WP_FS__SCRIPT_START_TIME < $cron['next'] ) ?
$in_x_text :
$x_ago_text ),
$human_diff
) );
}
?></td>
</tr>
<?php endforeach ?>
<?php endforeach ?>
</tbody>
</table>