Vergleich inc/class_session.php - 1.8.5 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 10Zeile 10

class session
{


class session
{

 
	/**
* @var int
*/

	public $sid = 0;

	public $sid = 0;

 
	/**
* @var int
*/

	public $uid = 0;

	public $uid = 0;

 
	/**
* @var string
*/

	public $ipaddress = '';

	public $ipaddress = '';

 
	/**
* @var string
*/

	public $packedip = '';

	public $packedip = '';

 
	/**
* @var string
*/

	public $useragent = '';

	public $useragent = '';

 
	/**
* @var bool
*/

	public $is_spider = false;

/**

	public $is_spider = false;

/**

Zeile 87Zeile 105
	/**
* Load a user via the user credentials.
*

	/**
* Load a user via the user credentials.
*

	 * @param int The user id.
* @param string The user's loginkey.


	 * @param int $uid The user id.
* @param string $loginkey The user's loginkey.
* @return bool

	 */
function load_user($uid, $loginkey='')
{

	 */
function load_user($uid, $loginkey='')
{

		global $mybb, $db, $time, $lang, $mybbgroups, $session, $cache;

		global $mybb, $db, $time, $lang, $mybbgroups, $cache;


// Read the banned cache
$bannedcache = $cache->read("banned");


// Read the banned cache
$bannedcache = $cache->read("banned");

Zeile 365Zeile 384
	/**
* Load a search engine spider.
*

	/**
* Load a search engine spider.
*

	 * @param int The ID of the search engine spider

	 * @param int $spider_id The ID of the search engine spider

	 */
function load_spider($spider_id)
{

	 */
function load_spider($spider_id)
{

Zeile 428Zeile 447
	/**
* Update a user session.
*

	/**
* Update a user session.
*

	 * @param int The session id.
* @param int The user id.

	 * @param int $sid The session id.
* @param int $uid The user id.

	 */

	 */

	function update_session($sid, $uid='')

	function update_session($sid, $uid=0)

	{
global $db;


	{
global $db;


Zeile 461Zeile 480
	/**
* Create a new session.
*

	/**
* Create a new session.
*

	 * @param int The user id to bind the session to.

	 * @param int $uid The user id to bind the session to.

	 */
function create_session($uid=0)
{

	 */
function create_session($uid=0)
{