0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.15.211.55


Current Path : /var/www/misc/public_html/oums_old/phpscript/
Upload File :
Current File : /var/www/misc/public_html/oums_old/phpscript/sys_session.php

<?php
	ob_start();	
	@session_start(); //Start the session
	
	if(!isset($_SESSION["userid"]))
	{
		header("location:index.html");
	}

	date_default_timezone_set('Asia/Calcutta');

	//Continue to current page
	$user_id=strtoupper($_SESSION["userid"]);
	$name_id=strtoupper($_SESSION["nameid"]);		
	$empl_id=strtoupper($_SESSION['emplid']);
	$dept_id=strtoupper($_SESSION["deptid"]);		
	$type_id=strtoupper($_SESSION["typeid"]);
	$head_id=strtoupper($_SESSION["headid"]);

	header( 'Content-Type: text/html; charset=utf-8');

	system('ipconfig /all'); //Execute external program to display output
	$mycom=ob_get_contents(); // Capture the output into a variable
	ob_clean(); // Clean (erase) the output buffer	
	$findme = "Physical";
	$pmac = strpos($mycom, $findme); // Find the position of Physical text
	$usermcad = substr($mycom,($pmac+36),17); // Get Physical Address
	$useripad = $_SERVER['REMOTE_ADDR']; // Get IP Address
?>