File/nasmail/functions/db_prefs.php

Description

db_prefs.php

This contains functions for manipulating user preferences stored in a database, accessed though the Pear DB layer.

Database:

The preferences table should have three columns: user char \ primary prefkey char / key prefval blob

CREATE TABLE userprefs (user CHAR(128) NOT NULL DEFAULT '', prefkey CHAR(64) NOT NULL DEFAULT '', prefval BLOB NOT NULL DEFAULT '', primary key (user,prefkey));

Configuration of databasename, username and password is done by using conf.pl or the administrator plugin

  • version: $Id: db_prefs.php 666 2007-08-24 10:21:57Z tokul $
  • copyright: (c) 1999-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Classes
Class Description
 class dbPrefs Handles database preferences
Includes
 include_once ('DB.php') (line 40)
Constants
SMDB_MYSQL = 1 (line 35)

MySQL

SMDB_PGSQL = 2 (line 37)

PostgreSQL

SMDB_UNKNOWN = 0 (line 33)

Unknown database

Documentation generated on Sun, 22 Nov 2009 17:36:25 +0200 by phpDocumentor 1.4.3