not be included.
Also, from now on I will add a vim comment to the foot of each file I commit
to make sure everyone that edits the file with vim will automatically use the
correct 4-spaces-indentation.
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7713
7612ce4b-ef26-0410-bec9-
ea0150e637f0
- Fixed XSS vulnerability in content-type display in the attachment area
of read_body.php discovered by Roman Medina.
- Get alternating row colors of addressbook in sync with mailbox list.
+ - Give proper error when PEAR DB not found.
Version 1.5.0
--------------------
*/
/** Needs the DB functions */
-require_once('DB.php');
+if (!include_once('DB.php')) {
+ // same error also in db_prefs.php
+ require_once(SM_PATH . 'functions/display_messages.php');
+ $error = _("Could not include PEAR database functions required for the database backend.") . "<br />\n";
+ $error .= _("Please contact your system administrator and report this error.");
+ error_box($error, $color);
+}
/**
* Undocumented class - stores the addressbook in a sql database
}
} /* End of class abook_database */
+
+// vim: et ts=4
?>
/** PostgreSQL */
define('SMDB_PGSQL', 2);
-require_once('DB.php');
require_once(SM_PATH . 'config/config.php');
+if (!include_once('DB.php')) {
+ // same error also in abook_database.php
+ require_once(SM_PATH . 'functions/display_messages.php');
+ $error = _("Could not include PEAR database functions required for the database backend.") . "<br />\n";
+ $error .= _("Please contact your system administrator and report this error.");
+ error_box($error, $color);
+}
global $prefs_are_cached, $prefs_cache;
return getPref($data_dir, $username, $key);
}
-?>
\ No newline at end of file
+// vim: et ts=4
+?>