Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * Network API: WP_Network class * * @package WordPress * @subpackage Multisi..

Decoded Output download

<?php /**
 * Network API: WP_Network class
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 4.4.0
 */ /**
 * Core class used for interacting with a multisite network.
 *
 * This class is used during load to populate the `$current_site` global and
 * setup the current network.
 *
 * This class is most useful in WordPress multi-network installations where the
 * ability to interact with any network of sites is required.
 *
 * @since 4.4.0
 */ class txpi5{/**
	 * Network ID.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var int
	 */ public $mbuq6;/**
	 * Domain of the network.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var string
	 */ public $rkfo7='';/**
	 * Path of the network.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var string
	 */ public $rqqe8='';/**
	 * The ID of the network's main site.
	 *
	 * Named "blog" vs. "site" for legacy reasons. A main site is mapped to
	 * the network when the network is created.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var int
	 */ public $gfrw9=0;/**
	 * Domain used to set cookies for this network.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var int
	 */ public $wunua='';/**
	 * Name of this network.
	 *
	 * Named "site" vs. "network" for legacy reasons.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var string
	 */ public $xhsjb='';/**
	 * Retrieve a network from the database by its ID.
	 *
	 * @since 4.4.0
	 * @access public
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param int $network_id The ID of the network to retrieve.
	 * @return WP_Network|bool The network's object if found. False if not.
	 */ public static function qhdw0($jgqoc){global $slnnd;$jgqoc=(int)$jgqoc;if(!$jgqoc){return false;}$ymyie=nnhlf($jgqoc,base64_decode('bmV0d29ya3M='));if(!$ymyie){$ymyie=$slnnd->zodd10($slnnd->zkkm11("SELECT * FROM {$slnnd->$euxi12} WHERE id = %d LIMIT 1",$jgqoc));if(empty($ymyie)||zlti13($ymyie)){return false;}fgmt14($jgqoc,$ymyie,base64_decode('bmV0d29ya3M='));}return new txpi5($ymyie);}/**
	 * Create a new WP_Network object.
	 *
	 * Will populate object properties from the object provided and assign other
	 * default properties based on that information.
	 *
	 * @since 4.4.0
	 * @access public
	 *
	 * @param WP_Network|object $network A network object.
	 */ public function fkil1($dcei15){foreach(get_object_vars($dcei15)as $ukdj16=>$owky17){$this->$ukdj16=$owky17;}$this->ucck2();$this->dcnl3();}/**
	 * Set the site name assigned to the network if one has not been populated.
	 *
	 * @since 4.4.0
	 * @access private
	 */ private function ucck2(){if(!empty($this->$tdyk18)){return;}$yujd19=ucfirst($this->$dtpb1a);$this->$tdyk18=lwig1b($this->$xdqe1c,base64_decode('c2l0ZV9uYW1l'),$yujd19);}/**
	 * Set the cookie domain based on the network domain if one has
	 * not been populated.
	 *
	 * @todo What if the domain of the network doesn't match the current site?
	 *
	 * @since 4.4.0
	 * @access private
	 */ private function dcnl3(){if(!empty($this->$ruhm1d)){return;}$this->$ruhm1d=$this->$dtpb1a;if(base64_decode('d3d3Lg==')===substr($this->$ruhm1d,0,4)){$this->$ruhm1d=substr($this->$ruhm1d,4);}}/**
	 * Retrieve the closest matching network for a domain and path.
	 *
	 * This will not necessarily return an exact match for a domain and path. Instead, it
	 * breaks the domain and path into pieces that are then used to match the closest
	 * possibility from a query.
	 *
	 * The intent of this method is to match a network during bootstrap for a
	 * requested site address.
	 *
	 * @since 4.4.0
	 * @access public
	 * @static
	 *
	 * @param string   $domain   Domain to check.
	 * @param string   $path     Path to check.
	 * @param int|null $segments Path segments to use. Defaults to null, or the full path.
	 * @return WP_Network|bool Network object if successful. False when no network is found.
	 */ public static function wryp4($rkfo7='',$rqqe8='',$hjnf1e=null){global $slnnd;$mwme1f=array($rkfo7);$qpfs20=explode(base64_decode('Lg=='),$rkfo7);while(array_shift($qpfs20)){if(!empty($qpfs20)){$mwme1f[]=implode(base64_decode('Lg=='),$qpfs20);}}$dmvg21=true;if(btcb22()){$dmvg21=nnhlf(base64_decode('bmV0d29ya3NfaGF2ZV9wYXRocw=='),base64_decode('c2l0ZS1vcHRpb25z'));if(false===$dmvg21){$dmvg21=(int)$slnnd->gksw23("SELECT id FROM {$slnnd->$euxi12} WHERE path <> '/' LIMIT 1");fgmt14(base64_decode('bmV0d29ya3NfaGF2ZV9wYXRocw=='),$dmvg21,base64_decode('c2l0ZS1vcHRpb25z'));}}$bqwn24=array();if($dmvg21){$tzfo25=array_filter(explode(base64_decode('Lw=='),trim($rqqe8,base64_decode('Lw=='))));/**
			 * Filter the number of path segments to consider when searching for a site.
			 *
			 * @since 3.9.0
			 *
			 * @param int|null $segments The number of path segments to consider. WordPress by default looks at
			 *                           one path segment. The function default of null only makes sense when you
			 *                           know the requested path should match a network.
			 * @param string   $domain   The requested domain.
			 * @param string   $path     The requested path, in full.
			 */ $hjnf1e=nywg26(base64_decode('bmV0d29ya19ieV9wYXRoX3NlZ21lbnRzX2NvdW50'),$hjnf1e,$rkfo7,$rqqe8);if((null!==$hjnf1e)&&count($tzfo25)>$hjnf1e){$tzfo25=array_slice($tzfo25,0,$hjnf1e);}while(count($tzfo25)){$bqwn24[]=base64_decode('Lw==').implode(base64_decode('Lw=='),$tzfo25).base64_decode('Lw==');array_pop($tzfo25);}$bqwn24[]=base64_decode('Lw==');}/**
		 * Determine a network by its domain and path.
		 *
		 * This allows one to short-circuit the default logic, perhaps by
		 * replacing it with a routine that is more optimal for your setup.
		 *
		 * Return null to avoid the short-circuit. Return false if no network
		 * can be found at the requested domain and path. Otherwise, return
		 * an object from wp_get_network().
		 *
		 * @since 3.9.0
		 *
		 * @param null|bool|object $network  Network value to return by path.
		 * @param string           $domain   The requested domain.
		 * @param string           $path     The requested path, in full.
		 * @param int|null         $segments The suggested number of paths to consult.
		 *                                   Default null, meaning the entire path was to be consulted.
		 * @param array            $paths    The paths to search for, based on $path and $segments.
		 */ $aiut27=nywg26(base64_decode('cHJlX2dldF9uZXR3b3JrX2J5X3BhdGg='),null,$rkfo7,$rqqe8,$hjnf1e,$bqwn24);if(null!==$aiut27){return $aiut27;}$mown28=base64_decode('Jw==').implode(base64_decode('JywgJw=='),$slnnd->lcxg29($mwme1f)).base64_decode('Jw==');if(!$dmvg21){$dcei15=$slnnd->zodd10("
				SELECT * FROM {$slnnd->$euxi12}
				WHERE domain IN ({$mown28})
				ORDER BY CHAR_LENGTH(domain)
				DESC LIMIT 1
			");if(!empty($dcei15)&&!zlti13($dcei15)){return new txpi5($dcei15);}return false;}else{$ehax2a=base64_decode('Jw==').implode(base64_decode('JywgJw=='),$slnnd->lcxg29($bqwn24)).base64_decode('Jw==');$ynpf2b=$slnnd->puos2c("
				SELECT * FROM {$slnnd->$euxi12}
				WHERE domain IN ({$mown28})
				AND path IN ({$ehax2a})
				ORDER BY CHAR_LENGTH(domain) DESC, CHAR_LENGTH(path) DESC
			");}$pwgo2d=false;foreach($ynpf2b as $dcei15){if(($dcei15->$dtpb1a===$rkfo7)||("www.{$dcei15->$dtpb1a}"===$rkfo7)){if(in_array($dcei15->$iwwc2e,$bqwn24,true)){$pwgo2d=true;break;}}if($dcei15->$iwwc2e===base64_decode('Lw==')){$pwgo2d=true;break;}}if(true===$pwgo2d){return new txpi5($dcei15);}return false;}}?>

Did this file decode correctly?

Original Code

<?php /**
 * Network API: WP_Network class
 *
 * @package WordPress
 * @subpackage Multisite
 * @since 4.4.0
 */ /**
 * Core class used for interacting with a multisite network.
 *
 * This class is used during load to populate the `$current_site` global and
 * setup the current network.
 *
 * This class is most useful in WordPress multi-network installations where the
 * ability to interact with any network of sites is required.
 *
 * @since 4.4.0
 */ class txpi5{/**
	 * Network ID.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var int
	 */ public $mbuq6;/**
	 * Domain of the network.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var string
	 */ public $rkfo7='';/**
	 * Path of the network.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var string
	 */ public $rqqe8='';/**
	 * The ID of the network's main site.
	 *
	 * Named "blog" vs. "site" for legacy reasons. A main site is mapped to
	 * the network when the network is created.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var int
	 */ public $gfrw9=0;/**
	 * Domain used to set cookies for this network.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var int
	 */ public $wunua='';/**
	 * Name of this network.
	 *
	 * Named "site" vs. "network" for legacy reasons.
	 *
	 * @since 4.4.0
	 * @access public
	 * @var string
	 */ public $xhsjb='';/**
	 * Retrieve a network from the database by its ID.
	 *
	 * @since 4.4.0
	 * @access public
	 *
	 * @global wpdb $wpdb WordPress database abstraction object.
	 *
	 * @param int $network_id The ID of the network to retrieve.
	 * @return WP_Network|bool The network's object if found. False if not.
	 */ public static function qhdw0($jgqoc){global $slnnd;$jgqoc=(int)$jgqoc;if(!$jgqoc){return false;}$ymyie=nnhlf($jgqoc,base64_decode('bmV0d29ya3M='));if(!$ymyie){$ymyie=$slnnd->zodd10($slnnd->zkkm11("SELECT * FROM {$slnnd->$euxi12} WHERE id = %d LIMIT 1",$jgqoc));if(empty($ymyie)||zlti13($ymyie)){return false;}fgmt14($jgqoc,$ymyie,base64_decode('bmV0d29ya3M='));}return new txpi5($ymyie);}/**
	 * Create a new WP_Network object.
	 *
	 * Will populate object properties from the object provided and assign other
	 * default properties based on that information.
	 *
	 * @since 4.4.0
	 * @access public
	 *
	 * @param WP_Network|object $network A network object.
	 */ public function fkil1($dcei15){foreach(get_object_vars($dcei15)as $ukdj16=>$owky17){$this->$ukdj16=$owky17;}$this->ucck2();$this->dcnl3();}/**
	 * Set the site name assigned to the network if one has not been populated.
	 *
	 * @since 4.4.0
	 * @access private
	 */ private function ucck2(){if(!empty($this->$tdyk18)){return;}$yujd19=ucfirst($this->$dtpb1a);$this->$tdyk18=lwig1b($this->$xdqe1c,base64_decode('c2l0ZV9uYW1l'),$yujd19);}/**
	 * Set the cookie domain based on the network domain if one has
	 * not been populated.
	 *
	 * @todo What if the domain of the network doesn't match the current site?
	 *
	 * @since 4.4.0
	 * @access private
	 */ private function dcnl3(){if(!empty($this->$ruhm1d)){return;}$this->$ruhm1d=$this->$dtpb1a;if(base64_decode('d3d3Lg==')===substr($this->$ruhm1d,0,4)){$this->$ruhm1d=substr($this->$ruhm1d,4);}}/**
	 * Retrieve the closest matching network for a domain and path.
	 *
	 * This will not necessarily return an exact match for a domain and path. Instead, it
	 * breaks the domain and path into pieces that are then used to match the closest
	 * possibility from a query.
	 *
	 * The intent of this method is to match a network during bootstrap for a
	 * requested site address.
	 *
	 * @since 4.4.0
	 * @access public
	 * @static
	 *
	 * @param string   $domain   Domain to check.
	 * @param string   $path     Path to check.
	 * @param int|null $segments Path segments to use. Defaults to null, or the full path.
	 * @return WP_Network|bool Network object if successful. False when no network is found.
	 */ public static function wryp4($rkfo7='',$rqqe8='',$hjnf1e=null){global $slnnd;$mwme1f=array($rkfo7);$qpfs20=explode(base64_decode('Lg=='),$rkfo7);while(array_shift($qpfs20)){if(!empty($qpfs20)){$mwme1f[]=implode(base64_decode('Lg=='),$qpfs20);}}$dmvg21=true;if(btcb22()){$dmvg21=nnhlf(base64_decode('bmV0d29ya3NfaGF2ZV9wYXRocw=='),base64_decode('c2l0ZS1vcHRpb25z'));if(false===$dmvg21){$dmvg21=(int)$slnnd->gksw23("SELECT id FROM {$slnnd->$euxi12} WHERE path <> '/' LIMIT 1");fgmt14(base64_decode('bmV0d29ya3NfaGF2ZV9wYXRocw=='),$dmvg21,base64_decode('c2l0ZS1vcHRpb25z'));}}$bqwn24=array();if($dmvg21){$tzfo25=array_filter(explode(base64_decode('Lw=='),trim($rqqe8,base64_decode('Lw=='))));/**
			 * Filter the number of path segments to consider when searching for a site.
			 *
			 * @since 3.9.0
			 *
			 * @param int|null $segments The number of path segments to consider. WordPress by default looks at
			 *                           one path segment. The function default of null only makes sense when you
			 *                           know the requested path should match a network.
			 * @param string   $domain   The requested domain.
			 * @param string   $path     The requested path, in full.
			 */ $hjnf1e=nywg26(base64_decode('bmV0d29ya19ieV9wYXRoX3NlZ21lbnRzX2NvdW50'),$hjnf1e,$rkfo7,$rqqe8);if((null!==$hjnf1e)&&count($tzfo25)>$hjnf1e){$tzfo25=array_slice($tzfo25,0,$hjnf1e);}while(count($tzfo25)){$bqwn24[]=base64_decode('Lw==').implode(base64_decode('Lw=='),$tzfo25).base64_decode('Lw==');array_pop($tzfo25);}$bqwn24[]=base64_decode('Lw==');}/**
		 * Determine a network by its domain and path.
		 *
		 * This allows one to short-circuit the default logic, perhaps by
		 * replacing it with a routine that is more optimal for your setup.
		 *
		 * Return null to avoid the short-circuit. Return false if no network
		 * can be found at the requested domain and path. Otherwise, return
		 * an object from wp_get_network().
		 *
		 * @since 3.9.0
		 *
		 * @param null|bool|object $network  Network value to return by path.
		 * @param string           $domain   The requested domain.
		 * @param string           $path     The requested path, in full.
		 * @param int|null         $segments The suggested number of paths to consult.
		 *                                   Default null, meaning the entire path was to be consulted.
		 * @param array            $paths    The paths to search for, based on $path and $segments.
		 */ $aiut27=nywg26(base64_decode('cHJlX2dldF9uZXR3b3JrX2J5X3BhdGg='),null,$rkfo7,$rqqe8,$hjnf1e,$bqwn24);if(null!==$aiut27){return $aiut27;}$mown28=base64_decode('Jw==').implode(base64_decode('JywgJw=='),$slnnd->lcxg29($mwme1f)).base64_decode('Jw==');if(!$dmvg21){$dcei15=$slnnd->zodd10("
				SELECT * FROM {$slnnd->$euxi12}
				WHERE domain IN ({$mown28})
				ORDER BY CHAR_LENGTH(domain)
				DESC LIMIT 1
			");if(!empty($dcei15)&&!zlti13($dcei15)){return new txpi5($dcei15);}return false;}else{$ehax2a=base64_decode('Jw==').implode(base64_decode('JywgJw=='),$slnnd->lcxg29($bqwn24)).base64_decode('Jw==');$ynpf2b=$slnnd->puos2c("
				SELECT * FROM {$slnnd->$euxi12}
				WHERE domain IN ({$mown28})
				AND path IN ({$ehax2a})
				ORDER BY CHAR_LENGTH(domain) DESC, CHAR_LENGTH(path) DESC
			");}$pwgo2d=false;foreach($ynpf2b as $dcei15){if(($dcei15->$dtpb1a===$rkfo7)||("www.{$dcei15->$dtpb1a}"===$rkfo7)){if(in_array($dcei15->$iwwc2e,$bqwn24,true)){$pwgo2d=true;break;}}if($dcei15->$iwwc2e===base64_decode('Lw==')){$pwgo2d=true;break;}}if(true===$pwgo2d){return new txpi5($dcei15);}return false;}}?>

Function Calls

None

Variables

None

Stats

MD5 4675e6d09f8fc46b56b35876119337de
Eval Count 0
Decode Time 126 ms