403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.153
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/models/innerlinks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/yeslicense.org/wp-content/plugins/squirrly-seo/models/innerlinks/Ruleset.php
<?php
defined( 'ABSPATH' ) || die( 'Cheatin\' uh?' );

class SQ_Models_Innerlinks_Ruleset {
	/**
	 * @var   int $ruleset
	 */
	public $ruleset = array();

	/**
	 * @var   int $rule_pointer
	 */
	private $ruleset_pointer = 0;

	/**
	 *
	 * @param string $pattern The condition for applying the rule
	 * @param string $target The target that gets applied
	 * @param string $nofollow The option DoFollow/Nofollow link
	 * @param string $blank The option to open the link in a new tab
	 *
	 * @return bool
	 */
	public function addRule( $pattern, $target, $nofollow = false, $blank = false ) {
		if ( $pattern != '' && $target != '' ) {
			$rule            = new \stdClass();
			$rule->pattern   = $pattern;
			$rule->target    = $target;
			$rule->nofollow  = $nofollow;
			$rule->blank     = $blank;
			$this->ruleset[] = $rule;

			return true;
		}

		return false;
	}

	/**
	 *
	 * @return bool
	 */
	public function hasRule() {
		return isset( $this->ruleset[ $this->ruleset_pointer ] );
	}

	/**
	 *
	 * @param int $index (optional)
	 *
	 * @return null|object
	 */
	public function getRule( $index = - 1 ) {
		if ( ! is_numeric( $index ) ) {
			return null;
		}
		$index = ( $index >= 0 ) ? $index : $this->ruleset_pointer;
		if ( isset( $this->ruleset[ $index ] ) ) {
			return $this->ruleset[ $index ];
		}

		return null;
	}

	/**
	 *
	 * @return void
	 */
	public function nextRule() {
		$this->ruleset_pointer ++;
	}

	/**
	 *
	 * @return int
	 */
	public function getRuleCount() {
		return count( $this->ruleset );
	}

	/**
	 *
	 * @return void
	 */
	public function reset() {
		$this->ruleset_pointer = 0;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit