If admin has set in config_local.php, then use that. (For LDAP Preferences plugin)
authoravel <avel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Jan 2004 16:58:04 +0000 (16:58 +0000)
committeravel <avel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 2 Jan 2004 16:58:04 +0000 (16:58 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6360 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/prefs.php

index fa502cf..b9db9f8 100644 (file)
@@ -31,7 +31,9 @@ if ( !sqsession_is_registered('prefs_are_cached') ||
     $prefs_cache = array();
 }
 
-if (isset($prefs_dsn) && !empty($prefs_dsn)) {
+if (isset($prefs_backend) && file_exists(SM_PATH . $prefs_backend)) {
+    require_once(SM_PATH . $prefs_backend);
+} elseif (isset($prefs_dsn) && !empty($prefs_dsn)) {
     require_once(SM_PATH . 'functions/db_prefs.php');
 } else {
     require_once(SM_PATH . 'functions/file_prefs.php');