403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/lukasreistetter.sk/web/wp-content/plugins/rainbow-elements/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/lukasreistetter.sk/web/wp-content/plugins/rainbow-elements/include/allow-svg.php
<?php
// Allow SVG
add_filter( 'wp_check_filetype_and_ext', function($data, $file, $filename, $mimes) {
 
    global $wp_version;
    if ( $wp_version !== '4.7.1' ) {
       return $data;
    }
   
    $filetype = wp_check_filetype( $filename, $mimes );
   
    return [
        'ext'             => $filetype['ext'],
        'type'            => $filetype['type'],
        'proper_filename' => $data['proper_filename']
    ];
   
  }, 10, 4 );


if(! function_exists('rainbow_mime_types')){
    function rainbow_mime_types( $mimes ){
        $mimes['svg'] = 'image/svg+xml';
        return $mimes;
    }
    add_filter( 'upload_mimes', 'rainbow_mime_types' );
}

   

Youez - 2016 - github.com/yon3zu
LinuXploit