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)  

file_prefs.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

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

Function Documentation

◆ cachePrefValues()

cachePrefValues (   $data_dir,
  $username 
)

◆ checkForPrefs()

checkForPrefs (   $data_dir,
  $username,
  $filename = '' 
)

Check for a preferences file. If one can not be found, create it.

Definition at line 180 of file file_prefs.php.

References $data_dir, $filename, $username, _(), exit, getHashedFile(), logout_error(), SM_PATH, and sprintf.

Referenced by cachePrefValues().

◆ getPref()

getPref (   $data_dir,
  $username,
  $string,
  $default = '' 
)

Return the value for the preference given by $string.

Definition at line 89 of file file_prefs.php.

References $data_dir, $prefs_cache, $username, cachePrefValues(), and do_hook_function().

◆ getSig()

getSig (   $data_dir,
  $username,
  $number 
)

Get the signature.

Definition at line 255 of file file_prefs.php.

References $data_dir, $filename, $username, _(), exit, getHashedFile(), logout_error(), and sprintf.

◆ removePref()

removePref (   $data_dir,
  $username,
  $string 
)

Remove a preference for the current user.

Definition at line 145 of file file_prefs.php.

References $data_dir, $prefs_cache, $username, cachePrefValues(), and savePrefValues().

Referenced by setPref().

◆ savePrefValues()

savePrefValues (   $data_dir,
  $username 
)

Save the preferences for this user.

Definition at line 113 of file file_prefs.php.

References $data_dir, $filename, $prefs_cache, $username, _(), exit, getHashedFile(), logout_error(), sprintf, sq_fwrite(), and sqsession_register().

Referenced by removePref(), and setPref().

◆ setPref()

setPref (   $data_dir,
  $username,
  $string,
  $value 
)

Set a there preference $string to $value.

Definition at line 160 of file file_prefs.php.

References $data_dir, $prefs_cache, $username, cachePrefValues(), removePref(), and savePrefValues().

◆ setSig()

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

Write the User Signature.

Definition at line 226 of file file_prefs.php.

References $data_dir, $filename, $username, _(), error_option_save(), exit, getHashedFile(), logout_error(), sprintf, and sq_fwrite().