403Webshell
Server IP : 213.186.33.4  /  Your IP : 216.73.216.222
Web Server : Apache
System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : karinebmkh ( 644538)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/karinebmkh/www2/wp-content/themes/glaza/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/karinebmkh/www2/wp-content/themes/glaza/includes/quick_filter.php
<?php
/**
 * @param string $type
 * @param string $custom_data
 * @param string $text
 *
 * @return array
 * get data config to display dropdown
 */
if ( ! function_exists( 'glaza_ajax_quick_filter_config' ) ) {
	function glaza_ajax_quick_filter_config( $type = 'category', $custom_data = '' ) {

		$data = array();

		switch ( $type ) {

			case 'category' :

				$data_cat = get_categories( array(
						'include' => esc_attr( $custom_data ),
						'exclude' => '1',
						'number'  => 10,
					)
				);

				if ( ! empty( $custom_data ) ) {

					$custom_cat_ids = explode( ',', $custom_data );

					foreach ( $custom_cat_ids as $custom_cat_id_el ) {
						$custom_cat_id_el = trim( $custom_cat_id_el );
						foreach ( $data_cat as $data_cat_el ) {
							if ( $custom_cat_id_el == $data_cat_el->cat_ID ) {
								$data[] = array(
									'id'   => $data_cat_el->cat_ID,
									'name' => $data_cat_el->name
								);
							}
						}
					}
				} else {
					foreach ( $data_cat as $data_cat_el ) {
						$data[] = array(
							'id'   => $data_cat_el->cat_ID,
							'name' => $data_cat_el->name
						);
					}
				}
				break;

			case 'tag' :

				$data_tag = get_tags( array(
						'include' => esc_attr( $custom_data ),
						'number'  => 10
					)
				);

				if ( ! empty( $custom_data ) ) {
					$custom_tag_ids = explode( ',', $custom_data );
					foreach ( $custom_tag_ids as $custom_tag_id_el ) {

						$custom_tag_id_el = trim( $custom_tag_id_el );
						foreach ( $data_tag as $data_tag_el ) {
							if ( $custom_tag_id_el == $data_tag_el->name ) {
								$data[] = array(
									'id'   => $data_tag_el->slug,
									'name' => $data_tag_el->name
								);
							}
						}
					}
				} else {
					foreach ( $data_tag as $data_tag_el ) {
						$data[] = array(
							'id'   => $data_tag_el->slug,
							'name' => $data_tag_el->name
						);
					}
				}
				break;

			case 'author' :
				$data_author = get_users( array(
						'who'     => 'authors',
						'include' => esc_attr( $custom_data ),
					)
				);
				if ( ! empty( $data_author ) && is_array( $data_author ) ) {
					foreach ( $data_author as $data_author_el ) {
						$data[] = array(
							'id'   => $data_author_el->ID,
							'name' => $data_author_el->display_name
						);
					};
				}
				break;

			case 'popular':

				$data[] = array(
					'id'   => 'featured',
					'name' => glaza_translate( 'featured' )
				);

				$data[] = array(
					'id'   => 'popular',
					'name' => glaza_translate( 'all_times' )
				);

				break;

		};

		return $data;
	}
}


Youez - 2016 - github.com/yon3zu
LinuXploit