403Webshell
Server IP : 178.212.43.201  /  Your IP : 10.100.0.33
Web Server : Apache/2.4.37 (Oracle Linux Server) OpenSSL/1.1.1k
System : Linux spa0007.srv.paxillus.pl 5.4.17-2136.355.3.1.el8uek.x86_64 #3 SMP Sat May 9 17:11:55 PDT 2026 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/kontur2/vendor/evsmash/core/libs/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/kontur2/vendor/evsmash/core/libs/alias.php
<?php

// aliases
$aliases = [
	
	'Database\Baum'				=> 'Baum\Node',
	'Database\Eloquent' 		=> 'Illuminate\Database\Eloquent\Model',
	'Database\Query' 			=> 'Illuminate\Database\Capsule\Manager',
	'Database\SoftDeleting' 	=> 'Illuminate\Database\Eloquent\SoftDeletes',
	'Dec\Html' 					=> 'HtmlObject\Element',
	'Dec\Image'					=> 'Intervention\Image\ImageManagerStatic',
	'Entity\Collection'			=> 'Illuminate\Support\Collection',
	'Helpers\Agent'				=> 'Jenssegers\Agent\Agent',
	'Services\Curl' 			=> 'Curl\Curl',
	'Users\Sentinel'			=> 'Cartalyst\Sentinel\Native\Facades\Sentinel',
	'Users\SentinelActivation'	=> 'Cartalyst\Sentinel\Activations\IlluminateActivationRepository'

];

// create
foreach($aliases as $alias => $full) {
	class_alias($full, 'Evsmash\\Core\\'.$alias);
}

// cfg
function cfg($key) { 
	return Evsmash\Core\System\Config::once()->load($key); 
}

// settings
function settings($type, $details) { 
	return Evsmash\Core\System\Settings::once()->load($type, $details); 
}

// t
function t($key) { 
	return Evsmash\Core\System\I18n::once()->load($key); 
}

// tm
function tm($key, $lang) { 
	return Evsmash\Core\System\I18n::manual($key, $lang); 
}

// d
function d($data) { 
	Evsmash\Core\System\Debug::d($data); 
}

// da
function da($data) { 
	Evsmash\Core\System\Debug::da($data); 
}

// dv
function dv($data) { 
	Evsmash\Core\System\Debug::dv($data); 
}

// dl
function dlog($data) {
	Evsmash\Core\Services\Log::debug((array)$data);
}

// et
function et($label = 'test') {
	d($label.': '.Evsmash\Core\System\Debug::time().'/'.Evsmash\Core\System\Debug::memory());
}

// ld
function ld($data) {
	Evsmash\Core\Services\Log::debug($data);
}

// adm
function adm($type) {

	// check if auth methods
	if($_SERVER['REQUEST_URI'] !== '/auth' AND $_SERVER['REQUEST_URI'] !== '/auth/login') {

		// check token
		if(isset($_SESSION['admin_id']) AND isset($_SESSION['admin_token'])) {

			// session
			if($_SESSION['admin_token'] == Evsmash\Core\Users\AdminAuth\Token::session($_SESSION['admin_id'])) {
				return false;
			}

		}

		// log
		$log = '['.date('Y-m-d H:i:s').'] '.$type.' '.$_SERVER['REMOTE_ADDR'].' '.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\n";
		file_put_contents(storage.'/errors/admins-auth-critical.log', $log, FILE_APPEND);

		// die
		die();

	}

}

// admsession
function admsession() {
	
	if($_SERVER['HTTP_HOST'] == admin.'.'.cfg('domain') AND !isset($_SESSION['admin_token'])) {
		if($_SERVER['REQUEST_URI'] !== '/auth' AND $_SERVER['REQUEST_URI'] !== '/auth/login') {
			header('Location: /auth');
			die();
		}
	}

}

// admfront
function admfront($front) {

	if(!isset($front->route->core->class) OR strpos($front->route->core->class, 'Admin') !== false) {
		adm('front');
	}	

}

// admbase
function admbase() {
	
	adm('base');

}

// admview
function admview($file) {

	if(strpos($file, 'admin') !== false) {
		adm('view');
	}
	
}

Youez - 2016 - github.com/yon3zu
LinuXploit