squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

db_prefs.php File Reference

Go to the source code of this file.

Classes

class  dbPrefs
 

Namespaces

 squirrelmail
 

Functions

 cachePrefValues ($username)
 
 getPref ($data_dir, $username, $string, $default='')
 
 removePref ($data_dir, $username, $string)
 
 setPref ($data_dir, $username, $string, $set_to)
 
 checkForPrefs ($data_dir, $username)
 
 setSig ($data_dir, $username, $number, $string)
 
 getSig ($data_dir, $username, $number)
 

Variables

const SMDB_UNKNOWN 0
 
const SMDB_MYSQL 1
 
const SMDB_PGSQL 2
 
if(!include_once('DB.php')) global $prefs_are_cached
 
if(!include_once('DB.php')) global $prefs_cache
 

Function Documentation

◆ cachePrefValues()

cachePrefValues (   $username)

◆ checkForPrefs()

checkForPrefs (   $data_dir,
  $username 
)

This checks if the prefs are available @ignore

Definition at line 382 of file db_prefs.php.

References dbPrefs\failQuery().

◆ getPref()

◆ getSig()

getSig (   $data_dir,
  $username,
  $number 
)

Gets the signature @ignore

Definition at line 407 of file db_prefs.php.

References $data_dir, $username, getPref(), and sprintf.

Referenced by get_identities(), and load_optpage_data_personal().

◆ removePref()

removePref (   $data_dir,
  $username,
  $string 
)

◆ setPref()

◆ setSig()

setSig (   $data_dir,
  $username,
  $number,
  $string 
)

Writes the Signature @ignore

Definition at line 393 of file db_prefs.php.

References $data_dir, $username, setPref(), and sprintf.

Referenced by save_identities(), and save_option_signature().

Variable Documentation

◆ $prefs_are_cached

if (!include_once( 'DB.php')) global $prefs_are_cached

Definition at line 39 of file db_prefs.php.

Referenced by cachePrefValues().

◆ $prefs_cache

if (!include_once( 'DB.php')) global $prefs_cache

◆ SMDB_MYSQL

const SMDB_MYSQL 1

MySQL

Definition at line 35 of file db_prefs.php.

Referenced by dbPrefs\open(), and dbPrefs\setKey().

◆ SMDB_PGSQL

const SMDB_PGSQL 2

PostgreSQL

Definition at line 37 of file db_prefs.php.

Referenced by dbPrefs\open(), and dbPrefs\setKey().

◆ SMDB_UNKNOWN

const SMDB_UNKNOWN 0

Unknown database

Definition at line 33 of file db_prefs.php.