HEX
Server: Apache/2.4.57 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux vmi267337.contaboserver.net 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
User: ohirex (1008)
PHP: 8.2.8
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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec
Upload Files
File: /home/ohirex/web/ohirex.com/public_html/wp-content/plugins/mailster/views/newsletter/attachment.php
<?php

$editable = ! in_array( $post->post_status, array( 'active', 'finished' ) );
if ( isset( $_GET['showstats'] ) && $_GET['showstats'] ) {
	$editable = false;
}

$is_autoresponder = 'autoresponder' == $post->post_status || $this->post_data['autoresponder'];

?>
<?php if ( $editable ) : ?>
	

	<ul class="mailster-attachments is-editable">

		<li class="mailster-attachment">
			<a href="" class="delete-attachment" title="<?php echo esc_attr__( 'Remove Attachment', 'mailster' ); ?>">&#10005;</a>
			<img width="48" height="64" src="" class="attachment-thumbnail size-thumbnail">
			<div class="mailster-attachment-label"></div>
			<input value="" type="hidden" >
		</li>

	<?php if ( ! empty( $this->post_data['attachments'] ) ) : ?>
		<?php foreach ( $this->post_data['attachments'] as $attachment_id ) : ?>
			<?php $file = get_attached_file( $attachment_id ); ?>
			<li class="mailster-attachment">
				<a href="" class="delete-attachment" title="<?php echo esc_attr__( 'Remove Attachment', 'mailster' ); ?>">&#10005;</a>
				<?php echo wp_get_attachment_image( $attachment_id, 'thumbnail', true ); ?>
				<div class="mailster-attachment-label"><?php echo esc_html( basename( $file ) ); ?></div>
				<input name="mailster_data[attachments][]" value="<?php echo (int) $attachment_id; ?>" type="hidden" >
			</li>
		<?php endforeach; ?>
	<?php endif; ?>

	</ul>

	<p class="description">
		<?php esc_html_e( 'Add an attachment to your campaign.', 'mailster' ); ?>
		<?php echo mailster()->beacon( '611bbbb96ffe270af2a99978' ); ?>
	</p>
	<p class="description">
		<?php esc_html_e( 'Note: Each attachment will increase your overall mail size, consider to share a link instead of attaching a file to prevent your email getting too big.', 'mailster' ); ?>
	</p>

	<a href="" class="add-attachment"><?php esc_html_e( 'Add Attachment', 'mailster' ); ?></a>

<?php else : ?>

	<?php if ( ! empty( $this->post_data['attachments'] ) ) : ?>

	<ul class="mailster-attachments">
		<?php foreach ( $this->post_data['attachments'] as $attachment_id ) : ?>
			<?php $file = get_attached_file( $attachment_id ); ?>

			<li class="mailster-attachment">
				<a href="" class="delete-attachment" title="<?php echo esc_attr__( 'Remove Attachment', 'mailster' ); ?>">&#10005;</a>
				<?php echo wp_get_attachment_image( $attachment_id, 'thumbnail', true ); ?>
				<div class="mailster-attachment-label"><?php echo esc_html( basename( $file ) ); ?></div>
				<input name="mailster_data[attachments][]" value="<?php echo (int) $attachment_id; ?>" type="hidden" >
			</li>
		<?php endforeach; ?>
	</ul>
	<?php else : ?>

	<p class="description">
		<?php esc_html_e( 'This campaign doesn\'t have any attachment.', 'mailster' ); ?>
	</p>
	<?php endif; ?>

<?php endif; ?>