HEX
Server: Apache
System: Linux c124.dattaweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: c1190199 (57165)
PHP: 7.4.33
Disabled: mail, system, shell, exec, system_exec, shell_exec, mysql_pconnect, passthru, popen, proc_open, proc_close, proc_nice, proc_terminate, proc_get_status, escapeshellarg, escapeshellcmd, eval, dl, imap_mail, libvirt_connect, gnupg_init, unsetenv, apache_setenv, pcntl_exec, 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_getpriority, pcntl_setpriority, pcntl_async_signals, opcache_get_status, opcache_reset, opcache_get_configuration
Upload Files
File: /home/c1190199/public_html/wp-content/themes/TheProfessional/search.php
<?php $post_number = get_option('professional_searchnum_posts'); ?>
<?php get_header(); ?>
	
	<div id="content-top" class="top-alt"></div>
	<div id="content" class="clearfix content-alt">
		<div id="content-area">
			<?php include(TEMPLATEPATH . '/includes/breadcrumbs.php'); ?>
			
			<?php 
				global $query_string; 

				parse_str($query_string, $qstring_array);
							
				$args = array('showposts' => $post_number,'paged'=>$paged);
				
				if ( isset($_GET['et_searchform_submit']) ) {			
					$postTypes = array();
					if ( !isset($_GET['et-inc-posts']) && !isset($_GET['et-inc-pages']) ) $postTypes = array('post');
					if ( isset($_GET['et-inc-pages']) ) $postTypes = array('page');
					if ( isset($_GET['et-inc-posts']) ) $postTypes[] = 'post';
					$args['post_type'] = $postTypes;
					
					if ( $_GET['et-month-choice'] != 'no-choice' ) {
						$et_year = substr($_GET['et-month-choice'],0,4);
						$et_month = substr($_GET['et-month-choice'], 4, strlen($_GET['et-month-choice'])-4);
						$args['year'] = $et_year;
						$args['monthnum'] = $et_month;
					}
					
					if ( $_GET['et-cat'] != 0 )
						$args['cat'] = $_GET['et-cat'];
				}	
				
				$args = array_merge($args,$qstring_array);
							
				query_posts($args);
			?>

			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
				
				<?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
				
			<?php endwhile; ?>
				<div class="hr-separator"></div>
				<div class="entry page-nav clearfix">
					<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
					else { ?>
						 <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
					<?php } ?>
				</div> <!-- end .entry -->
				
			<?php else : ?>
				<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
			<?php endif; wp_reset_query(); ?>
		</div> <!-- end #content-area -->
		
		<?php get_sidebar(); ?>
		
	</div> <!-- end #content -->
	<div id="content-bottom" class="bottom-alt"></div>
				
<?php get_footer(); ?>