Vergleich inc/class_datacache.php - 1.4.0 - 1.4.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: class_datacache.php 4053 2008-07-31 04:56:19Z Tikitiki $

 * $Id: class_datacache.php 4305 2009-01-02 08:05:39Z Tikitiki $

 */

class datacache

 */

class datacache

Zeile 24Zeile 24
	 * @var object
*/
var $handler = null;

	 * @var object
*/
var $handler = null;

 
	
/**
* Whether or not to exit the script if we cannot load the specified extension
*
* @var boolean
*/
var $silent = false;


/**
* Build cache data.


/**
* Build cache data.

Zeile 38Zeile 45
			// Disk cache
case "files":
require_once MYBB_ROOT."/inc/cachehandlers/disk.php";

			// Disk cache
case "files":
require_once MYBB_ROOT."/inc/cachehandlers/disk.php";

				$this->handler = new diskCacheHandler;

				$this->handler = new diskCacheHandler($this->silent);

				break;
// Memcache cache
case "memcache":
require_once MYBB_ROOT."/inc/cachehandlers/memcache.php";

				break;
// Memcache cache
case "memcache":
require_once MYBB_ROOT."/inc/cachehandlers/memcache.php";

				$this->handler = new memcacheCacheHandler;

				$this->handler = new memcacheCacheHandler($this->silent);

				break;
// eAccelerator cache
case "eaccelerator":
require_once MYBB_ROOT."/inc/cachehandlers/eaccelerator.php";

				break;
// eAccelerator cache
case "eaccelerator":
require_once MYBB_ROOT."/inc/cachehandlers/eaccelerator.php";

				$this->handler = new eacceleratorCacheHandler;

				$this->handler = new eacceleratorCacheHandler($this->silent);

				break;
// Xcache cache
case "xcache":
require_once MYBB_ROOT."/inc/cachehandlers/xcache.php";

				break;
// Xcache cache
case "xcache":
require_once MYBB_ROOT."/inc/cachehandlers/xcache.php";

				$this->handler = new xcacheCacheHandler;

				$this->handler = new xcacheCacheHandler($this->silent);

				break;
}
if(is_object($this->handler))

				break;
}
if(is_object($this->handler))

Zeile 163Zeile 170
			"title" => $db->escape_string($name),
"cache" => $dbcontents
);

			"title" => $db->escape_string($name),
"cache" => $dbcontents
);

		$db->replace_query("datacache", $replace_array, "title");

		$db->replace_query("datacache", $replace_array, "title", false);


// Do we have a cache handler we're using?
if(is_object($this->handler))


// Do we have a cache handler we're using?
if(is_object($this->handler))

Zeile 475Zeile 482
		{
foreach(array_keys($this->moderators) as $fid)
{

		{
foreach(array_keys($this->moderators) as $fid)
{

				usort($this->moderators[$fid], 'sort_moderators_by_usernames');

				uasort($this->moderators[$fid], 'sort_moderators_by_usernames');

			}
}


			}
}


Zeile 509Zeile 516
					{
if(is_array($forum_mods))
{

					{
if(is_array($forum_mods))
{

							$forum_mods = array_merge($forum_mods, $this->moderators[$forum['fid']]);

							$forum_mods = $forum_mods + $this->moderators[$forum['fid']];

						}
else
{

						}
else
{

Zeile 696Zeile 703
	{
global $db;
$spiders = array();

	{
global $db;
$spiders = array();

		$query = $db->simple_select("spiders", "sid,name,useragent", "", array("order_by" => "LENGTH(useragent)", "order_dir" => "DESC"));

		$query = $db->simple_select("spiders", "sid, name, useragent, usergroup", "", array("order_by" => "LENGTH(useragent)", "order_dir" => "DESC")); 

		while($spider = $db->fetch_array($query))
{
$spiders[$spider['sid']] = $spider;

		while($spider = $db->fetch_array($query))
{
$spiders[$spider['sid']] = $spider;

Zeile 743Zeile 750
		$query = $db->simple_select("banned");
while($ban = $db->fetch_array($query))
{

		$query = $db->simple_select("banned");
while($ban = $db->fetch_array($query))
{

			$bans[] = $ban;

			$bans[$ban['uid']] = $ban;

		}

$this->update("banned", $bans);

		}

$this->update("banned", $bans);