HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux Droplet-NYC1-3 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www-data (33)
PHP: 7.4.3-4ubuntu2.29
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/html/belairhomeloan.com/wp-content/plugins/wp-ses/view/access-keys.php
<?php
$aws                  = $this->get_aws();
$key_constant         = $aws->access_key_id_constant();
$secret_constant      = $aws->secret_access_key_constant();
$any_constant_defined = (bool) $key_constant || $secret_constant;
$hide_form_initially  = false;
$database_warning_url = $this->dbrains_url( '/wp-offload-ses/doc/quick-start-guide/#save-access-keys', array(
	'utm_campaign' => 'support+docs',
) );
?>

<section class="wposes-access-keys">
	<img class="wposes-aws-logo alignleft" src="<?php echo $this->plugins_url( 'assets/img/aws-logo.svg' ) ?>" alt="" width="75" height="75">
	<h3 class="wposes-section-heading"><?php _e( 'AWS Access Keys', 'wp-offload-ses' ) ?></h3>

	<?php if ( $aws->use_ec2_iam_roles() ) : ?>
		<p>
			<?php _e( 'You have enabled the use of IAM roles for Amazon EC2 instances.', 'wp-offload-ses' ) ?>
		</p>
	<?php elseif ( $any_constant_defined ) : ?>

		<?php if ( ! $aws->are_access_keys_set() ) : ?>
			<div class="notice-error notice">
				<p>
					<?php _e( 'Please check your wp-config.php file as it looks like one of your defines is missing or incorrect.', 'wp-offload-ses' ) ?>
				</p>
			</div>
		<?php endif ?>

		<p>
			<?php printf( __( 'You&#8217;ve already defined your AWS access keys in your wp-config.php. If you&#8217;d prefer to manage them here and store them in the database (<a href="%s">not recommended</a>), simply remove the lines from your wp-config.', 'wp-offload-ses' ), $database_warning_url ) ?>
		</p>

	<?php else : // no access keys defined & not using IAM roles ?>

		<p>
			<?php _e( 'We recommend defining your Access Keys in wp-config.php so long as you don&#8217;t commit it to source control (you shouldn&#8217;t be). Simply copy the following snippet and replace the stars with the keys.', 'wp-offload-ses' ) ?>
		</p>

		<textarea rows="2" class="wposes-access-key-constants-snippet code clear" readonly>
define( 'WPOSES_AWS_ACCESS_KEY_ID',     '********************' );
define( 'WPOSES_AWS_SECRET_ACCESS_KEY', '**************************************' );
		</textarea>

		<?php if ( $aws->get_access_key_id() || $aws->get_secret_access_key() ) : ?>
			<p>
				<?php printf( __( 'You&#8217;re storing your Access Keys in the database (<a href="%s">not recommended</a>).</a>', 'wp-offload-ses' ), $database_warning_url ) ?>
			</p>
		<?php else : $hide_form_initially = true ?>
			<p class="reveal-form">
				<?php _e( 'If you&#8217;d rather store your Access Keys in the database, <a href="#" data-wposes-toggle-access-keys-form>click here to reveal a form.</a>', 'wp-offload-ses' ) ?>
			</p>
		<?php endif ?>

	<?php endif ?>

	<div id="wposes_access_keys" style="<?php echo $hide_form_initially ? 'display: none;' : '' ?>">
		<form method="post">
			<table class="form-table">
				<tr valign="top">
					<th scope="row"><?php _e( 'Access Key ID', 'wp-offload-ses' ) ?></th>
					<td>
						<div class="wposes-field-wrap <?php echo $key_constant ? 'wposes-defined' : '' ?>">
							<input type="text"
									name="aws-access-key-id"
									value="<?php echo esc_attr( $aws->get_access_key_id() ) ?>"
									autocomplete="off"
								<?php echo $key_constant ? 'disabled' : '' ?>
							>
							<?php if ( $key_constant ) : ?>
								<span class="wposes-defined-in-config"><?php _e( 'defined in wp-config.php', 'wp-offload-ses' ) ?></span>
							<?php endif ?>
						</div>
					</td>
				</tr>

				<tr valign="top">
					<th scope="row"><?php _e( 'Secret Access Key', 'wp-offload-ses' ) ?></th>
					<td>
						<div class="wposes-field-wrap <?php echo $secret_constant ? 'wposes-defined' : '' ?>">
							<input type="text"
									name="aws-secret-access-key"
									value="<?php echo $aws->get_secret_access_key() ? _x( '-- not shown --', 'placeholder for hidden access key, 39 char max', 'wp-offload-ses' ) : '' ?>"
									autocomplete="off"
								<?php echo $secret_constant ? 'disabled' : '' ?>
							>
							<?php if ( $secret_constant ) : ?>
								<span class="wposes-defined-in-config"><?php _e( 'defined in wp-config.php', 'wp-offload-ses' ) ?></span>
							<?php endif ?>
						</div>
					</td>
				</tr>
			</table>

			<?php if ( ! $any_constant_defined ) : ?>
				<div class="notice inline wposes-notice-warning">
					<p>
						<?php _e( 'This will store your AWS access keys in the database (not recommended).', 'wp-offload-ses' ) ?>
						<?php echo $this->more_info_link( '/wp-offload-ses/doc/quick-start-guide/#save-access-keys' ) ?>
					</p>
				</div>

				<div data-wposes-aws-keys-feedback class="notice inline" style="display: none;">
					<!-- response message filled here by JS -->
				</div>

				<button id="save-aws-access-keys" type="submit" class="button button-primary" data-wposes-aws-keys-action="set"><?php _e( 'Save Access Keys', 'wp-offload-ses' ) ?></button>
				<?php if ( $aws->get_access_key_id() || $aws->get_secret_access_key() ) : ?>
					<button class="button remove-keys" data-wposes-aws-keys-action="remove"><?php _e( 'Remove Keys', 'wp-offload-ses' ) ?></button>
				<?php endif ?>

				<span data-wposes-aws-keys-spinner class="spinner"></span>
			<?php endif ?>
		</form>
	</div>
</section>