HEX
Server: Apache/2.4.49 (FreeBSD) OpenSSL/1.0.2s-freebsd PHP/5.6.36
System: FreeBSD hosting.icon.bg 11.3-RELEASE-p13 FreeBSD 11.3-RELEASE-p13 #0: Tue Sep 1 06:56:51 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
User: ftpuser (1002)
PHP: 5.6.36
Disabled: NONE
Upload Files
File: /hosting/kak.bg/web/wp-content/plugins/revslider/rs-plugin/css/captions.php
<?php
header("Content-Type: text/css; charset=utf-8");

$absolute_path = str_replace('\\', '/', __FILE__);
$path_to_file = explode( '/revslider/rs-plugin/', $absolute_path );

$path_to_wp = $path_to_file[0].'/../..';
require_once( $path_to_wp.'/wp-load.php' );

$currentFolder = dirname($absolute_path);

//include framework files
require_once $currentFolder . '/../../inc_php/framework/include_framework.php';

$db = new UniteDBRev();

$styles = $db->fetch(GlobalsRevSlider::$table_css);

echo UniteCssParserRev::parseDbArrayToCss($styles, "\n");

?>