Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets-rebuild.corals.io/wp-content/plugins/favorites/app/Activation/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets-rebuild.corals.io/wp-content/plugins/favorites/app/Activation/Activate.php
<?php 
namespace Favorites\Activation;

/**
* Plugin Activation
*/
class Activate 
{
	public function __construct()
	{
		$this->setOptions();
	}

	/**
	* Default Plugin Options
	*/
	private function setOptions()
	{
		if ( !get_option('simplefavorites_dependencies') 
			&& get_option('simplefavorites_dependencies') !== "" ){
			update_option('simplefavorites_dependencies', [
				'css' => 'true',
				'js' => 'true'
			]);
		}
		if ( !get_option('simplefavorites_users')
			&& get_option('simplefavorites_users') !== "" ){
			update_option('simplefavorites_users', [
				'anonymous' => [
					'display' => 'true',
					'save' => 'true'
				],
				'saveas' => 'cookie'
			]);
		}
		if ( !get_option('simplefavorites_display')
			&& get_option('simplefavorites_display') !== "" ){
			update_option('simplefavorites_display', [
				'buttontext' => __('Favorite <i class="sf-icon-star-empty"></i>', 'favorites'),
				'buttontextfavorited' => __('Favorited <i class="sf-icon-star-full"></i>', 'favorites'),
				'posttypes' => [
					'post' => [
						'display' => true,
						'after_content' => true,
						'postmeta' => true
					]
				]
			]);
		}
		if ( !get_option('simplefavorites_cache_enabled')
			&& get_option('simplefavorites_cache_enabled') !== "" ){
			update_option('simplefavorites_cache_enabled', 'true');
		}
	}
}

Spamworldpro Mini