I don't believe there's anything wrong with these USU5 files but need your opinion anyway. They are cited as possibly hacked when I run the Sitemonitor:
In case I must have missed something, this is one of the files:
<?php
/**
*
* ULTIMATE Seo Urls 5
*
*
* @package Ultimate Seo Urls 5
* @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License
* @link http://www.fwrmedia.co.uk
* @copyright Copyright 2008-2009 FWR Media
* @copyright Portions Copyright 2005 Bobby Easland
* @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk
* @lastdev $Author:: Rob $: Author of last commit
* @lastmod $Date:: 2009-11-29 13:12:25 +0000 (Sun, 29 Nov 2009) $: Date of last commit
* @version $Rev:: 107 $: Revision of last commit
* @Id $Id:: Usu_Cache_Database.php 107 2009-11-29 13:12:25Z Rob $: Full Details
*/
final class Usu_Cache_Database implements Interface_Cache {
private $cachename, $md5check;
private $extract_query = "SELECT * FROM `usu_cache` WHERE cache_name = ':cache_name'";
private $gc_query = "DELETE FROM `usu_cache` WHERE cache_name = ':cache_name'";
private $insert_query = "INSERT INTO `usu_cache` (cache_name, cache_data, cache_date) VALUES (':cache_name', ':cache_data', ':cache_date')";
private $update_query = "UPDATE `usu_cache` SET cache_data = ':cache_data', cache_date = ':cache_date' WHERE cache_name = ':cache_name'";
private $retrieved = false;
public function __construct( $cachename, $cachepath = false ) {
$this->cachename = $cachename;
}
public function __destruct() {
}
public function store() {
if ( SEO_URLS_ENABLED != 'false' ) {
$data = serialize( usu::$registry );
$rawdata = base64_encode( gzdeflate( $data ) );
$md5check = md5( $rawdata );
// If the cache is unchanged we do not insert nor update
if ( $this->md5check !== $md5check ) {
$targets = array( ':cache_name', ':cache_data', ':cache_date' );
$values = array( tep_db_input( $this->cachename ), tep_db_input( $rawdata ), date( "Y-m-d H:i:s" ) );
$query = str_replace( $targets, $values, $this->update_query );
usu::query( $query );
if ( ( mysql_affected_rows() == 0 ) && ( false === $this->retrieved ) ) {
$query = str_replace( $targets, $values, $this->insert_query );
usu::query( $query );
}
}
}
}