projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the failure to set the \Answered flag on a message when replying
[squirrelmail.git]
/
functions
/
db_prefs.php
diff --git
a/functions/db_prefs.php
b/functions/db_prefs.php
index 40c0b7c5c3a27f63c3ff9f30b0e9268ae67a04ab..e753e18609e6a8d3672f390e252f1f91948a7b2c 100644
(file)
--- a/
functions/db_prefs.php
+++ b/
functions/db_prefs.php
@@
-9,10
+9,6
@@
* This contains functions for manipulating user preferences
* stored in a database, accessed though the Pear DB layer.
*
* This contains functions for manipulating user preferences
* stored in a database, accessed though the Pear DB layer.
*
- * To use this instead of the regular prefs.php, create a
- * database as described below, and replace prefs.php
- * with this file.
- *
* Database:
* ---------
*
* Database:
* ---------
*
@@
-397,33
+393,23
@@
function checkForPrefs($data_dir, $username) {
/* Writes the Signature */
function setSig($data_dir, $username, $number, $string) {
/* Writes the Signature */
function setSig($data_dir, $username, $number, $string) {
- $db = new dbPrefs;
- if(isset($db->error)) {
- $db->failQuery();
- }
-
if ($number == "g") {
$key = '___signature___';
} else {
$key = sprintf('___sig%s___', $number);
}
if ($number == "g") {
$key = '___signature___';
} else {
$key = sprintf('___sig%s___', $number);
}
-
$db->setKey(
$username, $key, $string);
+
setPref($data_dir,
$username, $key, $string);
return;
}
/* Gets the signature */
function getSig($data_dir, $username, $number) {
return;
}
/* Gets the signature */
function getSig($data_dir, $username, $number) {
- $db = new dbPrefs;
- if(isset($db->error)) {
- $db->failQuery();
- }
-
if ($number == "g") {
$key = '___signature___';
} else {
$key = sprintf('___sig%d___', $number);
}
if ($number == "g") {
$key = '___signature___';
} else {
$key = sprintf('___sig%d___', $number);
}
- return
$db->getKey(
$username, $key);
+ return
getPref($data_dir,
$username, $key);
}
?>
}
?>