File/nasmail/functions/prefs.php

Description

prefs.php

This contains functions for filebased user prefs locations

  • version: $Id: prefs.php 441 2007-06-25 11:09:05Z tokul $
  • copyright: (c) 1999-2006 The SquirrelMail Project Team
  • copyright: (c) 2006-2007 The NaSMail Project
  • license: GNU Public License
Includes
 include_once (SM_PATH.'functions/plugin.php') (line 19)

Hook functions

 include_once (SM_PATH.'functions/display_messages.php') (line 21)

include this for error messages

 include_once (SM_PATH.'functions/global.php') (line 17)

Include global.php

 require_once (SM_PATH.'functions/file_prefs.php') (line 40)
 require_once (SM_PATH.'functions/db_prefs.php') (line 38)
 require_once (SM_PATH.$prefs_backend) (line 36)
Functions
computeHashDirs (line 140)

Helper function for getHashDir which does the actual hash calculation.

  • return: a list of hash dirs for this username
array computeHashDirs (string $username)
  • string $username: username the username to calculate the hash dir for
getHashedDir (line 103)

Helper function for getHashedFile, given a username returns the hashed dir for that username.

  • return: path to the hash dir for username
the getHashedDir (string $username, string $dir, [string $hash_dirs = ''])
  • string $username: username the username of the current user
  • string $dir: dir the squirrelmail datadir
  • string $hash_dirs: hash_dirs default ''
getHashedFile (line 55)

Given a username and datafilename, this will return the path to the hashed location of that datafile.

  • return: the hashed location of datafile
string getHashedFile (string $username, string $dir, string $datafile, [bool $hash_search = true])
  • string $username: username the username of the current user
  • string $dir: dir the squirrelmail datadir
  • string $datafile: datafile the name of the file to open
  • bool $hash_search: hash_seach default true

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