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 fa502cf40143d3c8933cbabe3d2084c108862a66..b9db9f85252cb6cfb25618a4b9d89e2b11865227 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');