HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/imagify/views/notice-backup-folder-not-writable.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );

$this->print_template( 'notice-header', array(
	'classes' => array( 'error' ),
) );

$backup_path = $this->filesystem->make_path_relative( get_imagify_backup_dir_path( true ) );

if ( $this->filesystem->exists( get_imagify_backup_dir_path() ) ) {
	/* translators: %s is a file path. */
	$message = __( 'The backup folder %s is not writable by the server, original images cannot be saved!', 'imagify' );
} else {
	/* translators: %s is a file path. */
	$message = __( 'The backup folder %s cannot be created. Is its parent directory writable by the server? Original images cannot be saved!', 'imagify' );
}

echo '<p>' . sprintf( $message, "<code>$backup_path</code>" ) . '</p>';

$this->print_template( 'notice-footer' );