HEX
Server: Apache/2
System: Linux localhost 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
User: rasad (1007)
PHP: 7.4.33
Disabled: shell_exec,system,passthru,exec,popen,ini_restore,socket_create,socket_create_listen,socket_create_pair,socket_listen,socket_bind,symlink,link,pfsockopen,ini_alter,dl,pcntl_exec,pcntl_fork,proc_close,proc_open,proc_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_uname,show_source,getfile,mkfifo
Upload Files
File: /home/rasad/domains/rasadeardakan.ir/private_html/wp-content/themes/ofogh/inc/cat.php
<?php global $qaleb;?>
<div class="tiitle">
<h3><?php echo $qaleb['last-title']; ?></h3>
<?php if($qaleb['last-lt']=='1'){?><a href="<?php echo $qaleb['last-ml']; ?>"><?php echo $qaleb['last-mt']; ?></a><?php } ?>
</div>
  <?php
			  
			  if($qaleb['last-content']=='1'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['last-count'],
				);
			  }else if($qaleb['last-content']=='2'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['last-count'],
					'orderby'	=> 	'rand'
				);
			  }else if($qaleb['last-content']=='3'){
				$arggs = array(
					'post_type' => 'post',
					'posts_per_page' => $qaleb['last-count'],
					'tax_query' => array(
                        array(
                            'taxonomy' => 'category',
                            'field'    => 'term_id',
                            'terms'    => $qaleb['last-type-select'],
                        ),
				    ),
				);
			  }
			  
            query_posts($arggs);
            if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php get_template_part('inc/loop'); ?>
<?php endwhile; endif;  wp_reset_query(); ?>