Vergleich inc/class_datacache.php - 1.4.3 - 1.4.7

  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 4093 2008-08-10 03:07:30Z chris $

 * $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 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 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);