403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/b2b2c/webadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/b2b2c/webadmin/configure.php
<?php
	if (session_id() === "") {
		session_start();
	}

	//$debug_tool = true;
	if ((isset($_SESSION["cmsrole"]) && $_SESSION["cmsrole"] == "super_admin") || (isset($enable_debug_tool) && $enable_debug_tool = 1)) {
		$debug_tool = true;
	} else {
		$debug_tool = false;
	}

	define("PRODUCTION", 1);
	define("TEST_EMAIL", 1);

	$_database = array(
		'driver'    => 'mysql',
		'charset'   => 'utf8',
		'collation' => 'utf8_general_ci',
		'database'  => 'b2b2c_api',
		'prefix'    => '',
		'host'      => 'localhost',
		'username'  => 'admin',
		'password'  => 'PHac7dru',
	);

	//error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
	error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING);
	ini_set('display_errors', 1);
	define("SEND_EMAIL", 1);


	// Require composer autoloader
	require_once __DIR__ . '/libraies/autoload.php';

	// temp database include for webadmin2
	require_once "database.php";

	ini_set('session.cookie_httponly', 1);
	header("Content-Type:text/html; charset=utf-8");
	header("x-frame-options:SAMEORIGIN");

	$dbh->exec("set names utf8");

	date_default_timezone_set("Asia/Hong_Kong");

	$nowdate = date("Y-m-d H:i:s");

	if (!isset($_SESSION["langcode"])) {
		$_SESSION["langcode"] = "en";
	}

	$langcode = $_SESSION["langcode"];

	if (isset($_GET["wlangcode"])) {
		$_SESSION["wlangcode"] = $_GET["wlangcode"];
		$wlangcode             = $_SESSION["wlangcode"];

		header("Location: " . $_SERVER['HTTP_REFERER']);
	} else if (!isset($_SESSION["wlangcode"])) {
		$_SESSION["wlangcode"] = "tc";
		$wlangcode             = $_SESSION["wlangcode"];
	} else {
		$wlangcode = $_SESSION["wlangcode"];
	}


	if ($debug_tool) {
		$whoops  = new Whoops\Run();
		$handler = new Whoops\Handler\PrettyPageHandler();
		$handler->setEditor('sublime');
		$whoops->pushHandler($handler)->register();
		if (Whoops\Util\Misc::isAjaxRequest()) {
			$whoops->pushHandler(new Whoops\Handler\JsonResponseHandler);
		}
		include_once "_helpers.php";
	}


	$session_factory = new \Aura\Session\SessionFactory;
	$session         = $session_factory->newInstance($_COOKIE);
	$segment         = $session->getSegment('Onesolution\Frontend');

	//include('../phpmailer/class.phpmailer.php');

	require_once("_functions.php");

	if (TEST_EMAIL == 1) {
		//need to get from site info
		define("FROM", $site_info["enquiryemail"]);
		define("FROM_NAME", $site_info["companyname_en"]);
	} else {
		define("FROM", "kelvinchan@onesolution.com.hk");
		define("FROM_NAME", "Testing");
	}

Youez - 2016 - github.com/yon3zu
LinuXploit