| Server IP : 62.173.141.34 / Your IP : 216.73.217.113 Web Server : Apache/2.4.63 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 System : Linux server7.msonline.ru 5.15.0-179-generic #189-Ubuntu SMP Tue May 5 18:20:56 UTC 2026 x86_64 User : izihss ( 1005) PHP Version : 7.4.33 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,exec,system,passthru,shell_exec,proc_open,popen MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/izihss/web/izihss.ru/public_html/wp-content/plugins/wp-filebase/ |
Upload File : |
<?php
if (!defined('WPFB')) {
exit;
}
/* make sure we loaded the pluggable functions */
require( ABSPATH . WPINC . '/pluggable.php' );
define('WPFB_NO_CORE_INIT', true);
wpfb_loadclass('Core', 'File', 'Category', 'Download');
$item = null;
if (isset($_GET['fid'])) {
$item = WPFB_File::GetFile(0 + $_GET['fid']);
} elseif (isset($_GET['cid'])) {
$item = WPFB_Category::GetCat(0 + $_GET['cid']);
}
if ($item == null || !$item->CurUserCanAccess(true)) {
header('X-Fallback-Thumb: 1');
$img_path = ABSPATH . WPINC . '/images/';
if (file_exists($img = $img_path . 'crystal/default.png')
|| file_exists($img = $img_path . 'media/default.png')
) {
WPFB_Download::SendFile($img, array('cache_max_age' => -1)); //was 3600 * 12
} else {
// single transparent pixel gif
header('Content-Type: image/gif');
header('Cache-Control: public');
echo base64_decode('R0lGODlhAQABAJAAAP8AAAAAACH5BAUQAAAALAAAAAABAAEAAAICBAEAOw==');
}
exit;
}
// if no thumbnail, redirect
if (empty($item->file_thumbnail) && empty($item->cat_icon)) {
header('Cache-Control: public');
wp_redirect($item->GetIconUrl(), 301/*permanently*/);
exit;
}
// send thumbnail
WPFB_Download::SendFile($item->GetThumbPath(), array('cache_max_age' => -1));
exit;