prefix . 'astr_plugins_history'; $table_safe = esc_sql($table); // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->query("DROP TABLE IF EXISTS {$table_safe}");// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.DirectDatabaseQuery.SchemaChange // phpcs:enable WordPress.DB.DirectDatabaseQuery.DirectQuery } delete_option( 'astr_delete_on_uninstall' ); } add_filter( 'upgrader_pre_install', 'astr_save_all_plugin_versions_before_install', 10, 2 ); function astr_save_all_plugin_versions_before_install( $true, $hook_extra ) { global $astr_all_plugins_versions_before_update; if ( ( isset( $hook_extra['type'] ) && $hook_extra['type'] == 'plugin' ) || isset( $hook_extra['plugin'] ) ) { $installed_plugins = get_plugins(); $astr_all_plugins_versions_before_update = $installed_plugins; } return $true; } add_action( 'activated_plugin', 'astr_plugins_activated', 10, 2 ); add_filter('upgrader_post_install', 'astr_handle_plugin_post_install', 10, 3); function astr_handle_plugin_post_install($response, $hook_extra, $result) { global $wpdb; global $astr_all_plugins_versions_before_update; $table = $wpdb->prefix . 'astr_plugins_history'; if ((isset($hook_extra['type']) && $hook_extra['type'] == 'plugin') || isset($hook_extra['plugin'])) { $current_user = wp_get_current_user(); if (defined('WP_CLI') && WP_CLI) { $user_id = 0; $os_user = astr_get_os_username(); $user_name = 'WP-CLI (' . $os_user . ')'; } else { $user_id = $current_user->ID; $user_name = $user_id ? $current_user->display_name : 'Automatic Update'; } if (isset($result['destination'])) { $plugin_dir = $result['destination']; } else { $plugin_dir = WP_PLUGIN_DIR . '/' . dirname($hook_extra['plugin']); } $plugin_dir = wp_normalize_path($plugin_dir); $plugin_slug = basename($plugin_dir); $plugin_files = glob($plugin_dir . '/*.php'); if ($plugin_files) { foreach ($plugin_files as $plugin_file) { $plugin_file = wp_normalize_path($plugin_file); $plugin_data = get_plugin_data($plugin_file); if (!empty($plugin_data['Name'])) { $relative_plugin_file = str_replace(wp_normalize_path(WP_PLUGIN_DIR) . '/', '', $plugin_file); $old_version = 'Not installed'; if (isset($astr_all_plugins_versions_before_update[$relative_plugin_file])) { $old_version = $astr_all_plugins_versions_before_update[$relative_plugin_file]['Version']; } $new_version = $plugin_data['Version']; $action = ($old_version == 'Not installed') ? 'installed' : 'updated'; if ($action === 'installed') { astr_add_event_to_buffer($plugin_data['Name'], 'installed', $user_name); } if ($action === 'updated') { astr_add_event_to_buffer( $plugin_data['Name'], 'updated', $user_name, $old_version, $new_version ); } if ($action === 'installed') { // phpcs:disable WordPress.DB.DirectDatabaseQuery.DirectQuery, PluginCheck.Security.DirectDB.UnescapedDBParameter, WordPress.DB.DirectDatabaseQuery.NoCaching, WordPress.DB.PreparedSQL.InterpolatedNotPrepared $exists = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM {$table} WHERE plugin_path = %s", $relative_plugin_file ) ); if (!$exists) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $relative_plugin_file, 'plugin_name' => $plugin_data['Name'], 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'tracking_started', 'time' => current_time('mysql'), 'extra_info' => astr_get_extended_cli_info(), ) ); } } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $relative_plugin_file, 'plugin_name' => $plugin_data['Name'], 'user_id' => $user_id, 'user_name' => $user_name, 'action' => $action, 'time' => current_time('mysql'), 'old_version' => ($action == 'updated') ? $old_version : null, 'new_version' => $new_version, 'extra_info' => astr_get_extended_cli_info(), ), array('%s','%s','%d','%s','%s','%s','%s','%s','%s') ); break; } } } } return $response; } function astr_plugins_activated( $plugin, $network_wide ) { global $wpdb; $table = $wpdb->prefix . 'astr_plugins_history'; $current_user = wp_get_current_user(); if ( defined( 'WP_CLI' ) && WP_CLI ) { $user_id = 0; $os_user = astr_get_os_username(); $user_name = 'WP-CLI (' . $os_user . ')'; } else { $user_id = $current_user->ID; $user_name = $current_user->display_name; } $plugin_base_name = plugin_basename( $plugin ); $all_plugins = get_plugins(); $plugin_name = isset( $all_plugins[ $plugin_base_name ]['Name'] ) ? $all_plugins[ $plugin_base_name ]['Name'] : $plugin_base_name; // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin_base_name, 'plugin_name' => $plugin_name, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'activated', 'time' => current_time( 'mysql' ), 'extra_info' => astr_get_extended_cli_info(), ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s' ) ); if ( $plugin_base_name === 'adwise-sitetrace/adwise-sitetrace.php' ) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin_base_name, 'plugin_name' => $plugin_name, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'tracking_started', 'time' => current_time( 'mysql' ), 'extra_info' => astr_get_extended_cli_info(), ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s' ) ); } astr_add_event_to_buffer( $plugin_name, 'activated', $user_name ); } add_action( 'deactivated_plugin', 'astr_plugins_deactivated', 10, 2 ); function astr_plugins_deactivated( $plugin, $network_wide ) { global $wpdb; $table = $wpdb->prefix . 'astr_plugins_history'; $current_user = wp_get_current_user(); if ( defined( 'WP_CLI' ) && WP_CLI ) { $user_id = 0; $os_user = astr_get_os_username(); $user_name = 'WP-CLI (' . $os_user . ')'; } else { $user_id = $current_user->ID; $user_name = $current_user->display_name; } $plugin_base_name = plugin_basename( $plugin ); $all_plugins = get_plugins(); $plugin_name = isset( $all_plugins[ $plugin_base_name ]['Name'] ) ? $all_plugins[ $plugin_base_name ]['Name'] : $plugin_base_name; // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin_base_name, 'plugin_name' => $plugin_name, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'deactivated', 'time' => current_time( 'mysql' ), 'extra_info' => astr_get_extended_cli_info(), ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s' ) ); if ( $plugin_base_name === 'adwise-sitetrace/adwise-sitetrace.php' ) { // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin_base_name, 'plugin_name' => $plugin_name, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'tracking_stopped', 'time' => current_time( 'mysql' ), 'extra_info' => astr_get_extended_cli_info(), ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s' ) ); } astr_add_event_to_buffer( $plugin_name, 'deactivated', $user_name ); } add_action( 'deleted_plugin', 'astr_plugin_deleted', 10, 1 ); function astr_plugin_deleted( $plugin ) { global $wpdb; $table = $wpdb->prefix . 'astr_plugins_history'; $current_user = wp_get_current_user(); if ( defined( 'WP_CLI' ) && WP_CLI ) { $user_id = 0; $os_user = astr_get_os_username(); $user_name = 'WP-CLI (' . $os_user . ')'; } else { $user_id = $current_user->ID; $user_name = $current_user->display_name; } $plugin_base_name = plugin_basename( $plugin ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $plugin_name = $wpdb->get_var( $wpdb->prepare( "SELECT plugin_name FROM {$wpdb->prefix}astr_plugins_history WHERE plugin_path = %s ORDER BY time DESC LIMIT 1", $plugin ) ); if ( empty( $plugin_name ) ) { $plugin_name = ucwords( str_replace( array( '-', '_' ), ' ', dirname( $plugin_base_name ) !== '.' ? dirname( $plugin_base_name ) : basename( $plugin_base_name, '.php' ) ) ); } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin_base_name, 'plugin_name' => $plugin_name, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'removed', 'time' => current_time( 'mysql' ), 'extra_info' => astr_get_extended_cli_info(), ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s' ) ); astr_add_event_to_buffer( $plugin_name, 'removed', $user_name ); } add_filter( 'upgrader_pre_install', 'astr_store_plugins_versions_before_update', 5, 2 ); function astr_store_plugins_versions_before_update( $response, $hook_extra ) { if ( empty( $hook_extra['type'] ) || $hook_extra['type'] !== 'plugin' ) { return; } global $astr_all_plugins_versions_before_update; $plugins = []; if ( ! empty( $hook_extra['plugins'] ) ) { $plugins = $hook_extra['plugins']; } elseif ( ! empty( $hook_extra['plugin'] ) ) { $plugins = [ $hook_extra['plugin'] ]; } foreach ( $plugins as $plugin_file ) { $all_plugins = get_plugins(); if ( isset( $all_plugins[ $plugin_file ]['Version'] ) ) { $astr_all_plugins_versions_before_update[ $plugin_file ] = [ 'Version' => $all_plugins[ $plugin_file ]['Version'] ]; } } return $response; } function astr_plugins_history_tracking_started() { global $wpdb; $table = $wpdb->prefix . 'astr_plugins_history'; $all_plugins = get_plugins(); $current_user = wp_get_current_user(); $user_id = $current_user->ID ?? 0; $user_name = $current_user->display_name ?? 'System'; foreach ( $all_plugins as $plugin_path => $data ) { if ( $plugin_path === 'adwise-sitetrace/adwise-sitetrace.php' ) { continue; } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin_path, 'plugin_name' => $data['Name'] ?? $plugin_path, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'tracking_started', 'time' => current_time( 'mysql' ), 'old_version' => null, 'new_version' => $data['Version'] ?? null, 'extra_info' => null, ), array( '%s','%s','%d','%s','%s','%s','%s','%s','%s' ) ); } //Plugins from history that are no longer installed. $installed_plugins = array_keys( $all_plugins ); $history_plugins = $wpdb->get_results( $wpdb->prepare( "SELECT plugin_path, plugin_name FROM {$table} WHERE plugin_path <> %s GROUP BY plugin_path", 'adwise-sitetrace/adwise-sitetrace.php' ) ); foreach ( $history_plugins as $plugin ) { if ( in_array( $plugin->plugin_path, $installed_plugins, true ) ) { continue; } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin->plugin_path, 'plugin_name' => $plugin->plugin_name, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'tracking_started', 'time' => current_time( 'mysql' ), 'old_version' => null, 'new_version' => $data['Version'] ?? null, 'extra_info' => null, ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s', '%s', '%s' ) ); } } function astr_plugins_history_tracking_stopped() { global $wpdb; $table = $wpdb->prefix . 'astr_plugins_history'; $all_plugins = get_plugins(); $current_user = wp_get_current_user(); $user_id = $current_user->ID ?? 0; $user_name = $current_user->display_name ?? 'System'; foreach ( $all_plugins as $plugin_path => $data ) { if ( $plugin_path === 'adwise-sitetrace/adwise-sitetrace.php' ) { continue; } // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, PluginCheck.Security.DirectDB.UnescapedDBParameter, WordPress.DB.DirectDatabaseQuery.NoCaching $exists = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$table} WHERE plugin_path = %s LIMIT 1", $plugin_path ) ); if ( ! $exists ) { continue; } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin_path, 'plugin_name' => $data['Name'] ?? $plugin_path, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'tracking_stopped', 'time' => current_time( 'mysql' ), 'old_version' => null, 'new_version' => $data['Version'] ?? null, 'extra_info' => null, ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s', '%s', '%s' ) ); } //Plugins from history that are no longer installed. $installed_plugins = array_keys( $all_plugins ); $history_plugins = $wpdb->get_results( $wpdb->prepare( "SELECT plugin_path, plugin_name FROM {$table} WHERE plugin_path <> %s GROUP BY plugin_path", 'adwise-sitetrace/adwise-sitetrace.php' ) ); foreach ( $history_plugins as $plugin ) { if ( in_array( $plugin->plugin_path, $installed_plugins, true ) ) { continue; } // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery $wpdb->insert( $table, array( 'plugin_path' => $plugin->plugin_path, 'plugin_name' => $plugin->plugin_name, 'user_id' => $user_id, 'user_name' => $user_name, 'action' => 'tracking_stopped', 'time' => current_time( 'mysql' ), 'old_version' => null, 'new_version' => $data['Version'] ?? null, 'extra_info' => null, ), array( '%s', '%s', '%d', '%s', '%s', '%s', '%s', '%s', '%s' ) ); } } function astr_plugins_history_page() { $active = astr_get_current_admin_page(); astr_render_admin_tabs( $active ); global $wpdb; $table = $wpdb->prefix . 'astr_plugins_history'; $search_query = astr_safe_get('s', 'text', '', 'manage_options', false); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching, PluginCheck.Security.DirectDB.UnescapedDBParameter $results = $wpdb->get_results( "SELECT * FROM {$table} WHERE 1=1 ORDER BY id DESC" ); // Filter by Status $status_filter = astr_safe_get('filter_status', 'text', '', 'manage_options', false); if ($status_filter !== '') { $status_filter = astr_safe_get( 'filter_status' ); $results = array_filter($results, function($r) use ($status_filter) { return strtolower($r->action) === strtolower($status_filter); }); } // Filter by Date $date_filter = astr_safe_get('filter_date', 'text', '', 'manage_options', false); if ($date_filter !== '') { $start = strtotime($date_filter . '-01 00:00:00'); $end = strtotime(gmdate('Y-m-t 23:59:59', $start)); $results = array_filter($results, function($r) use ($start, $end) { $time = strtotime($r->time); return $time >= $start && $time <= $end; }); } // Filter by User $current_user = astr_safe_get('filter_user', 'text', '', 'manage_options', false); if ($current_user !== '') { $user_filter = astr_safe_get( 'filter_user' ); $results = array_filter($results, function($r) use ($user_filter) { return $r->user_name === $user_filter; }); } if (!empty($search_query)) { $results = array_filter($results, function($row) use ($search_query) { return stripos($row->plugin_name, $search_query) !== false; }); } $order_by = astr_safe_get('orderby', 'key', 'date', 'manage_options', false); $order = astr_safe_get('order', 'key', 'desc', 'manage_options', false); $order = in_array($order, ['asc','desc'], true) ? $order : 'asc'; $first_of_group = function($group) { return $group[0]; }; $grouped_history = []; if ($results) { foreach ($results as $row) { $plugin_path = $row->plugin_path; $grouped_history[$plugin_path][] = $row; } } foreach ($grouped_history as $plugin_path => $events) { $has_real_event = false; foreach ($events as $event) { if (!in_array($event->action, ['tracking_started','tracking_stopped'], true)) { $has_real_event = true; break; } } if (!$has_real_event) { unset($grouped_history[$plugin_path]); } } if ($order_by === 'name') { uasort($grouped_history, function($a, $b) use ($order, $first_of_group) { $a_name = $first_of_group($a)->plugin_name; $b_name = $first_of_group($b)->plugin_name; return $order === 'asc' ? strcasecmp($a_name, $b_name) : strcasecmp($b_name, $a_name); }); } elseif ($order_by === 'status') { uasort($grouped_history, function($a, $b) use ($order, $first_of_group) { $a_action = strtolower($first_of_group($a)->action); $b_action = strtolower($first_of_group($b)->action); return $order === 'asc' ? strcmp($a_action, $b_action) : strcmp($b_action, $a_action); }); } elseif ($order_by === 'date') { uasort($grouped_history, function($a, $b) use ($order) { $a_time = strtotime($a[0]->time); $b_time = strtotime($b[0]->time); return $order === 'asc' ? ($a_time <=> $b_time) : ($b_time <=> $a_time); }); } elseif ($order_by === 'user') { uasort($grouped_history, function($a, $b) use ($order, $first_of_group) { $a_user = strtolower($first_of_group($a)->user_name); $b_user = strtolower($first_of_group($b)->user_name); return $order === 'asc' ? strcmp($a_user, $b_user) : strcmp($b_user, $a_user); }); } $per_page = 10; $paged = max( 1, astr_safe_get( 'paged', 'absint', 1, 'manage_options', false ) ); $total = count($grouped_history); $total_pages = max( 1, (int) ceil( $total / $per_page ) ); $grouped_history = array_slice($grouped_history, ($paged - 1) * $per_page, $per_page, true); ?>

Plugins History

get_var( "SELECT COUNT(*) FROM (SELECT plugin_path FROM {$table} GROUP BY plugin_path HAVING SUM(action NOT IN ('tracking_started','tracking_stopped')) > 0) AS active_plugins" ); $base_url = admin_url( 'admin.php?page=astr-plugins-history' ); $all_plugins_link = add_query_arg( [], $base_url ); $link_class = 'astr-all-link' . ( $search_query ? ' active' : '' ); echo ''; echo 'All (' . intval( $all_plugins_total ) . ')'; echo ''; ?>
get_col( "SELECT DISTINCT DATE(time) as date_only FROM {$table_safe} ORDER BY date_only DESC" ); $months = []; foreach ($dates as $date) { $timestamp = strtotime($date); $month_key = gmdate('Y-m', $timestamp); $month_label = gmdate('F Y', $timestamp); $months[$month_key] = $month_label; } $current_month = astr_safe_get('filter_date', 'text', '', 'manage_options', false); if ( $current_month !== '' ) { $current_month = astr_safe_get('filter_date', 'text', '', 'manage_options', false); } ?>
= $per_page ) { astr_pagination( $total, $total_pages, $paged ); } ?>
' $events_array) : ?> time) - strtotime($a->time); }); $last_event = $events_array[0]; $plugin_name = $last_event->plugin_name ?: $plugin_path; $group_id = md5($plugin_path); $plugin_id = md5($plugin_path . $last_event->time); $has_multiple = count($events_array) > 1; $arrow_class = $has_multiple ? '' : ' astr-disabled'; ?> time ) ); $action = $event->action; $uname = $event->user_name; $ov = $event->old_version; $nv = $event->new_version; $plugin_id = md5( $plugin_path . $time ); ?>

action; $time = gmdate('d-m-Y H:i:s', strtotime($last_event->time)); $uname = $last_event->user_name; $ov = $last_event->old_version; $nv = $last_event->new_version; ?>
0 && strlen($nv) > 0) { $label = "Updated ({$ov} → {$nv})"; } if ($action === 'installed') { $label = 'Installed'; } echo esc_html($label); ?> extra_info)) { echo ' '; $info = json_decode($last_event->extra_info, true); if (!is_array($info)) { $info = []; } if (is_array($info)) { echo '
'; echo '
' . esc_html($plugin_name) . '
'; echo '
' . esc_html(ucfirst($action)) . ' — ' . esc_html($time) . '
'; echo '
'; echo '
    '; if (!empty($info['user'])) echo '
  • OS User: ' . esc_html($info['user']) . '
  • '; if (!empty($info['uid'])) echo '
  • UID: ' . esc_html($info['uid']) . '
  • '; if (!empty($info['gid'])) echo '
  • GID: ' . esc_html($info['gid']) . '
  • '; if (!empty($info['ip'])) echo '
  • IP Address: ' . esc_html($info['ip']) . '
  • '; if (!empty($info['cwd'])) echo '
  • Working Directory: ' . esc_html($info['cwd']) . '
  • '; if (!empty($info['command'])) echo '
  • Command: ' . esc_html($info['command']) . '
  • '; if (!empty($info['cli_path'])) echo '
  • WP-CLI Path: ' . esc_html($info['cli_path']) . '
  • '; if (!empty($info['hostname'])) echo '
  • Hostname: ' . esc_html($info['hostname']) . '
  • '; if (!empty($info['sapi'])) echo '
  • SAPI: ' . esc_html($info['sapi']) . '
  • '; if (!empty($info['ssh_info'])) echo '
  • SSH Info: ' . esc_html($info['ssh_info']) . '
  • '; echo '
'; } } ?>
0 && strlen( $nv ) > 0 ) { $label = "Updated ({$ov} → {$nv})"; } echo esc_html( $label ); ?> extra_info ) ) { echo ''; $info = json_decode( $event->extra_info, true ); if ( ! is_array( $info ) ) { $info = []; } if ( is_array( $info ) ) { echo '
'; echo '
' . esc_html( $plugin_name ) . '
'; echo '
' . esc_html( ucfirst( $action ) ) . ' — ' . esc_html( $time ) . '
'; echo '
'; echo '
    '; if ( ! empty( $info['user'] ) ) { echo '
  • OS User: ' . esc_html( $info['user'] ) . '
  • '; } if ( ! empty( $info['uid'] ) ) { echo '
  • UID: ' . esc_html( $info['uid'] ) . '
  • '; } if ( ! empty( $info['gid'] ) ) { echo '
  • GID: ' . esc_html( $info['gid'] ) . '
  • '; } if ( ! empty( $info['ip'] ) ) { echo '
  • IP Address: ' . esc_html( $info['ip'] ) . '
  • '; } if ( ! empty( $info['cwd'] ) ) { echo '
  • Working Directory: ' . esc_html( $info['cwd'] ) . '
  • '; } if ( ! empty( $info['command'] ) ) { echo '
  • Command: ' . esc_html( $info['command'] ) . '
  • '; } if ( ! empty( $info['cli_path'] ) ) { echo '
  • WP-CLI Path: ' . esc_html( $info['cli_path'] ) . '
  • '; } if ( ! empty( $info['hostname'] ) ) { echo '
  • Hostname: ' . esc_html( $info['hostname'] ) . '
  • '; } if ( ! empty( $info['sapi'] ) ) { echo '
  • SAPI: ' . esc_html( $info['sapi'] ) . '
  • '; } if ( ! empty( $info['ssh_info'] ) ) { echo '
  • SSH Info: ' . esc_html( $info['ssh_info'] ) . '
  • '; } echo '
'; } } ?>
= $per_page ) { astr_pagination( $total, $total_pages, $paged ); } ?>
×