403Webshell
Server IP : 5.129.245.98  /  Your IP : 216.73.217.19
Web Server : Apache/2.4.66 (Debian)
System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/wp-all-import-pro/views/admin/import/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/wp-all-import-pro/views/admin/import/preview_taxonomies.php
<div id="post-preview" class="wpallimport-preview_taxonomies">

	<div class="title">
		<div class="navigation">
			<?php if ($tagno > 1): ?><a href="#prev" class="previous_element">&nbsp;</a><?php else: ?><span class="previous_element">&nbsp;</span><?php endif ?>
			<?php printf(__('<strong><input type="text" value="%s" name="tagno" class="tagno"/></strong><span class="out_of"> of <strong class="pmxi_count">%s</strong></span>', 'wp-all-import-pro'), $tagno, PMXI_Plugin::$session->count); ?>
			<?php if ($tagno < PMXI_Plugin::$session->count): ?><a href="#next" class="next_element">&nbsp;</a><?php else: ?><span class="next_element">&nbsp;</span><?php endif ?>
		</div>
	</div>

	<div class="wpallimport-preview-content">
		<?php if ($this->errors->get_error_codes()): ?>
			<?php $this->error() ?>
		<?php endif ?>

		<h3><?php _e('Test Taxonomies Hierarchy', 'wp-all-import-pro'); ?></h3>

		<?php
		if ( ! empty($tax_hierarchical) ):
			foreach ($tax_hierarchical as $ctx => $terms_arr):
				$tax_info = get_taxonomy($ctx);
				?>
				<p><?php echo $tax_info->labels->name; ?></p>
				<?php
				if (!empty($terms_arr) and is_array($terms_arr)){
					foreach ($terms_arr as $terms) {
						// Apply mapping before splitting via separator symbol
						if (! empty($post['tax_enable_mapping'][$ctx]) and !empty($post['tax_logic_mapping'][$ctx])){
							$mapping_rules = json_decode($post['tax_mapping'][$ctx], true);
							if ( ! empty( $mapping_rules) ){
								foreach ($mapping_rules as $rule) {
									if ( ! empty($rule[trim($terms)])){
										$terms = trim($rule[trim($terms)]);
										break;
									}
								}
							}
						}

						$terms_a = ( ! empty($post['tax_hierarchical_delim'][$ctx])) ? explode($post['tax_hierarchical_delim'][$ctx], $terms) : explode(',', $terms);

						if ( ! empty($terms_a) and is_array($terms_a)){
							foreach ($terms_a as $lvl => $term) {
								if ( ! empty($post['tax_mapping'][$ctx]) and empty($post['tax_logic_mapping'][$ctx])){
									$mapping_rules = json_decode($post['tax_mapping'][$ctx], true);
									if ( ! empty($mapping_rules) ){
										foreach ($mapping_rules as $rule_number => $rule) {
											if ( ! empty($rule[trim($term)])){
												$term = trim($rule[trim($term)]);
												break;
											}
										}
									}
								}
								if (!empty($term)) {
									?>
									<p><?php echo str_pad(trim($term), strlen(trim($term)) + $lvl, "-", STR_PAD_LEFT); ?></p>
									<?php
								}
							}
						}
						else{
							?>
							<p><?php echo $terms_a; ?></p>
							<?php
						}
					}
				}

			endforeach;
		endif; ?>
	</div>

</div>

Youez - 2016 - github.com/yon3zu
LinuXploit