/php/lib/auth.php

Description

Home-cooked auth libraries - because PEAR is fat.

  • todo: re-enforce one-per-user session limit
Functions
auth_create_session (line 56)

Start a valid session.

void auth_create_session (array $user, [mixed $secure = 0])
  • array $user: array containing user information.
auth_is_valid_session (line 13)

Check admin session against sessions table in database.

bool auth_is_valid_session ()
auth_logout (line 68)

Logout.

void auth_logout ()
auth_mysql (line 37)

Authentication a user.

  • return: array containing user data or false on failure
array|bool auth_mysql (string $username, string $password)
  • string $username
  • string $password

Documentation generated on Mon, 8 Nov 2004 13:43:03 -0800 by phpDocumentor 1.3.0RC3