HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/hcv/wp-content/plugins/w3-total-cache/Generic_Page_PurgeLog_View.php
<?php
namespace W3TC;

if ( !defined( 'W3TC' ) )
	die();

include W3TC_INC_DIR . '/options/common/header.php';
?>
<style>
.w3tc_purge_log_header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.w3tc_purge_log_clear {
	text-align: right;
}

.w3tc_purge_log_table {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-gap: 10px;
	background: #fff;
	padding: 11px;
	border: 1px solid #ccd0d4;
	margin-bottom: 11px;
}
.w3tc_purge_log_label {
	white-space: nowrap;
	font-weight: bold;
}

.w3tc_purge_log_urls {
	font-family: courier;
}

.w3tc_purge_log_backtrace {
	font-family: courier;
	border: 1px solid #ccd0d4;
	border-spacing: 0;
}

.w3tc_purge_log_backtrace td {
	padding: 5px 5px;
}

.w3tc_purge_log_backtrace tr:nth-child(odd){
  background-color: #f2f2f2;
}

</style>
<div class="w3tc_purge_log_header">
	<h1>Purges Log</h1>
	<div class="w3tc_purge_log_clear">
		<?php
		echo Util_Ui::button_link( __( 'Clear Log', 'w3-total-cache' ),
			Util_Ui::url( array(
				'w3tc_default_purgelog_clear' => 'y',
				'module' => $module
			) ) )
		?>
	</div>
</div>


<p>
	Available logs:
	<?php foreach ( $purgelog_modules as $module ): ?>
		<a href="admin.php?page=w3tc_general&view=purge_log&module=<?php echo esc_attr( $module['label'] ) ?>"><?php echo esc_html( $module['name'] ) ?></a>
		<?php echo esc_html( $module['postfix'] ) ?>
	<?php endforeach ?>
</p>
<p>
	Filename: <?php echo esc_html( $log_filename ) ?> (<?php echo esc_html( $log_filefize ) ?>)
</p>

<?php foreach ( $lines as $line ): ?>
	<div class="w3tc_purge_log_table">
		<div class="w3tc_purge_log_label">Date</div>
		<div><?php echo esc_html( $line['date'] ) ?></div>

		<div class="w3tc_purge_log_label">Action</div>
		<div class="w3tc_purge_log_message"><?php echo esc_html( $line['message'] ) ?></div>

		<div class="w3tc_purge_log_label">User</div>
		<div class="w3tc_purge_log_message"><?php echo esc_html( $line['username'] ) ?></div>

		<?php if ( !empty( $line['urls'] ) ): ?>
			<div class="w3tc_purge_log_label">Pages Flushed</div>
			<div class="w3tc_purge_log_urls">
				<?php foreach ( $line['urls'] as $url ): ?>
					<div><?php echo esc_html( $url ) ?></div>
				<?php endforeach ?>
			</div>
		<?php endif ?>

		<div class="w3tc_purge_log_label">Stack Trace</div>
		<table class="w3tc_purge_log_backtrace">
			<?php foreach ( $line['backtrace'] as $backtrace_line ): ?>
				<tr>
					<td><?php echo esc_html( $backtrace_line['number'] ) ?></td>
					<td><?php echo $this->esc_filename( $backtrace_line['filename'] ) ?></td>
					<td><?php echo esc_html( $backtrace_line['function'] ) ?></td>
				</tr>
			<?php endforeach ?>
		</table>
	</div>
<?php endforeach ?>