403Webshell
Server IP : 198.54.115.198  /  Your IP : 216.73.216.142
Web Server : LiteSpeed
System : Linux server192.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : seatpheu ( 1569)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/seatpheu/public_html/wp-content/plugins/media-cleaner/classes/parsers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/seatpheu/public_html/wp-content/plugins/media-cleaner/classes/parsers/maxmegamenu.php
<?php

// Max Mega Menu (https://wordpress.org/plugins/megamenu/)
// Added by Mike Meinz
//

add_action('wpmc_scan_widgets', 'wpmc_scan_widgets_maxmegamenu');

function wpmc_scan_widgets_maxmegamenu() {
	global $wpmc;
	global $wpdb;
	$urls = array();
	$q = "SELECT meta_value FROM {$wpdb->postmeta} WHERE meta_key = '_menu_item_url' and LENGTH(TRIM(meta_value)) > 0;";
	$rows = $wpdb->get_col($q);
	if ( $wpdb->last_error ) {
		error_log($q . " " . $wpdb->last_error);
		$wpmc->log($q . " " . $wpdb->last_error);
		die($wpdb->last_error);
	}

	if ( count( $rows ) > 0 ) {
		foreach( $rows as $metavalue ) {
			if ( ( !empty( $metavalue ) ) && $wpmc->is_url( $metavalue ) ) {
				$url = $wpmc->clean_url( $metavalue );
				if ( !empty( $url ) ) {
					array_push( $urls, $url );
				}
			}
		}
	}

	if ( !empty( $urls ) ) {
		  $wpmc->add_reference_url( $urls, 'MENU (URL)' );
		}
	}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit