Class session

Description

MyBB 1.2 Copyright © 2006 MyBB Group, All Rights Reserved

Website: http://www.mybboard.net License: http://www.mybboard.net/eula.html

$Id: class_session.php 3030 2007-04-26 00:19:47Z Tikitiki $

Located in /inc/class_session.php (line 12)


	
			
Variable Summary
mixed $botgroup
mixed $bots
mixed $failedlogin
mixed $ipaddress
mixed $is_spider
mixed $logins
mixed $sid
mixed $uid
mixed $useragent
Method Summary
void create_session ([int $uid = 0])
void init ()
void load_guest ()
void load_spider (string $spider)
void load_user (int $uid, [string $password = ''])
void update_session (int $sid, [int $uid = ''])
Variables
mixed $botgroup = 1 (line 18)
mixed $bots = array(
'google' => 'GoogleBot',
'lycos' => 'Lycos.com',
'ask jeeves' => 'Ask Jeeves',
'slurp@inktomi' => 'Hot Bot',
'whatuseek' => 'What You Seek',
'is_archiver' => 'Archive.org',
'scooter' => 'Altavista',
'fast-webcrawler' => 'AlltheWeb',
'grub.org' => 'Grub Client',
'turnitinbot' => 'Turnitin.com',
'msnbot' => 'MSN Search',
'yahoo' => 'Yahoo! Slurp'
)
(line 23)
mixed $failedlogin = 0 (line 21)
mixed $ipaddress = '' (line 16)
mixed $is_spider = false (line 19)
mixed $logins = 1 (line 20)
mixed $sid = 0 (line 14)
mixed $uid = 0 (line 15)
mixed $useragent = '' (line 17)
Methods
create_session (line 476)

Create a new session.

void create_session ([int $uid = 0])
  • int $uid: The user id to bind the session to.
get_special_locations (line 521)

Find out the special locations.

  • return: Special locations array.
array get_special_locations ()
init (line 41)

Initialize a session

void init ()
load_guest (line 341)

Load a guest user.

void load_guest ()
load_spider (line 410)

Load a search engine spider.

void load_spider (string $spider)
  • string $spider: The spider name.
load_user (line 120)

Load a user via the user credentials.

void load_user (int $uid, [string $password = ''])
  • int $uid: The user id.
  • string $password: The user's password.
update_session (line 446)

Update a user session.

void update_session (int $sid, [int $uid = ''])
  • int $sid: The session id.
  • int $uid: The user id.

Documentation generated on Thu, 31 May 2007 23:34:00 -0400 by phpDocumentor 1.3.2