WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcacorpold/public_html/wp-content/plugins/iwp-client/plugins/search/search.php
<?php
/************************************************************
 * This plugin was modified by Revmakx						*
 * Copyright (c) 2012 Revmakx								*
 * www.revmakx.com											*
 *															*
 ************************************************************/
/*************************************************************
 * 
 * stats.class.php
 * 
 * Various searches on client
 * 
 * 
 * Copyright (c) 2011 Prelovac Media
 * www.prelovac.com
 **************************************************************/
if ( ! defined('ABSPATH') )
    die();
	
	iwp_mmb_add_action('iwp_mmb_search_posts_by_term', 'iwp_mmb_search_posts_by_term');
	
    function iwp_mmb_search_posts_by_term($params = false){

    	global $wpdb, $current_user;

    	$search_type = trim($params['search_type']);
        $search_term = strtolower(trim($params['search_term']));
    	switch ($search_type){    		
    	case 'plugin':
    		$plugins = get_option('active_plugins');
    		
			if(!function_exists('get_plugin_data'))
				include_once( ABSPATH.'/wp-admin/includes/plugin.php');
				
    		$have_plugin = array();
    		foreach ($plugins as $plugin) {
    			$pl =  WP_PLUGIN_DIR . '/' . $plugin ;
    			$pl_extended = get_plugin_data($pl);
   				$pl_name = $pl_extended['Name'];
    			if(strpos(strtolower($pl_name), $search_term)>-1){

    				$have_plugin[] = $pl_name; 
    			}
    		}
    		if($have_plugin){
    			iwp_mmb_response($have_plugin, true);
    		}else{
    			iwp_mmb_response('Not found', false);
    		}
    		break;
    	case 'theme':
    		$theme = strtolower(get_option('stylesheet'));
    		$tm = ABSPATH . 'wp-content/themes/'. $theme . '/style.css' ;
    		$tm_extended = wp_get_theme($tm);
            $tm_name = $tm_extended->get('Name');
    		$have_theme = array();
    		if(strpos(strtolower($tm_name), $search_term)>-1){
    				$have_theme[] = $tm_name; 
    				iwp_mmb_response($have_theme, true);
    		}else{
    			iwp_mmb_response('Not found', false);
    		}
    		break;
    	default: iwp_mmb_response('Not found', false);
    	}
    }

?>