403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/rescommittee/plugins/system/emailprotector/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/rescommittee/plugins/system/emailprotector/src/Params.php
<?php
/**
 * @package         Email Protector
 * @version         4.3.1
 * 
 * @author          Peter van Westen <info@regularlabs.com>
 * @link            http://www.regularlabs.com
 * @copyright       Copyright © 2019 Regular Labs All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */

namespace RegularLabs\Plugin\System\EmailProtector;

defined('_JEXEC') or die;

use RegularLabs\Library\Parameters as RL_Parameters;

class Params
{
	protected static $params  = null;
	protected static $regexes = null;

	public static function get()
	{
		if ( ! is_null(self::$params))
		{
			return self::$params;
		}

		$params = RL_Parameters::getInstance()->getPluginParams('emailprotector');

		$params->id_pre  = substr(md5('a' . rand(1000, 9999)), 0, 4);
		$params->id_post = substr(md5('b' . rand(1000, 9999)), 0, 4);

		self::$params = $params;

		return self::$params;
	}

	public static function getRegex($type = 'email')
	{
		$regexes = self::getRegexes();

		return isset($regexes->{$type}) ? $regexes->{$type} : $regexes->tag;
	}

	private static function getRegexes()
	{
		if ( ! is_null(self::$regexes))
		{
			return self::$regexes;
		}

		self::$regexes = (object) [];

		// email@domain.com
		$email = '([\w\.\-\+]+\@\w[\w\.\-]*\.\w{2,20})';

		self::$regexes->email  = $email;
		self::$regexes->simple = '[\w\.\-\+]\@\w';
		self::$regexes->js     = '<script[^>]*[^/]>.*?</script>';
		self::$regexes->injs   = '([\'"])' . $email . '\1';
		self::$regexes->link   = '<a\s+((?:[^>]*\s+)?)href\s*=\s*"mailto:(' . $email . '(?:\?[^"]+)?)"((?:\s+[^>]*)?)>(.*?)</a>';

		return self::$regexes;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit