Include backends here.
*/
-require_once('../functions/abook_local_file.php');
-require_once('../functions/abook_ldap_server.php');
+require_once(SM_PATH . 'functions/abook_local_file.php');
+require_once(SM_PATH . 'functions/abook_ldap_server.php');
global $addrbook_dsn;
* $Id$
*/
-require_once('../functions/plugin.php'); // Required for the hook
+require_once(SM_PATH . 'functions/plugin.php'); /* Required for the hook */
/**************************************************************/
/* Set values for constants used by Squirrelmail preferences. */
* $Id$
*/
-require_once( '../functions/constants.php' );
+require_once(SM_PATH . 'functions/constants.php');
/* corrects a time stamp to be the local time */
function getGMTSeconds($stamp, $gmt) {
define('SMDB_PGSQL', 2);
require_once('DB.php');
-require_once('../config/config.php');
+require_once(SM_PATH . 'config/config.php');
global $prefs_are_cached, $prefs_cache;
* $Id$
*/
-require_once('../functions/imap_mailbox.php');
-require_once('../functions/imap_messages.php');
-require_once('../functions/imap_general.php');
-require_once('../functions/imap_search.php');
-require_once('../functions/imap_parse.php');
+require_once(SM_PATH . 'functions/imap_mailbox.php');
+require_once(SM_PATH . 'functions/imap_messages.php');
+require_once(SM_PATH . 'functions/imap_general.php');
+require_once(SM_PATH . 'functions/imap_search.php');
+require_once(SM_PATH . 'functions/imap_parse.php');
+
?>
* $Id$
*/
-require_once('../functions/page_header.php');
+require_once(SM_PATH . 'functions/page_header.php');
global $sqimap_session_id;
$sqimap_session_id = 1;
*
* $Id$
*/
-require_once('../functions/imap_utf7_encode_local.php');
-require_once('../functions/imap_utf7_decode_local.php');
+require_once(SM_PATH . 'functions/imap_utf7_encode_local.php');
+require_once(SM_PATH . 'functions/imap_utf7_decode_local.php');
global $boxesnew;
class mailboxes {
$inbox_in_list = false;
$inbox_subscribed = false;
- require_once('../src/load_prefs.php');
- require_once('../functions/array.php');
+ require_once(SM_PATH . 'src/load_prefs.php');
+ require_once(SM_PATH . 'functions/array.php');
if ($noselect_fix_enable) {
$lsub_args = "LSUB \"$folder_prefix\" \"*%\"";
function sqimap_mailbox_list_all($imap_stream) {
global $list_special_folders_first, $folder_prefix, $delimiter;
- require_once('../functions/array.php');
+ require_once(SM_PATH . 'functions/array.php');
$ssid = sqimap_session_id();
$lsid = strlen( $ssid );
$inbox_in_list = false;
$inbox_subscribed = false;
- require_once('../src/load_prefs.php');
- require_once('../functions/array.php');
+ require_once(SM_PATH . 'src/load_prefs.php');
+ require_once(SM_PATH . 'functions/array.php');
/* LSUB array */
$lsub_ary = sqimap_run_command ($imap_stream, "LSUB \"$folder_prefix\" \"*\"",
* $Id$
*/
-require_once('../functions/imap.php');
-require_once('../functions/date.php');
-require_once('../functions/array.php');
-require_once('../functions/mailbox_display.php');
-require_once('../functions/mime.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'functions/date.php');
+require_once(SM_PATH . 'functions/array.php');
+require_once(SM_PATH . 'functions/mailbox_display.php');
+require_once(SM_PATH . 'functions/mime.php');
function sqimap_search($imapConnection, $search_where, $search_what, $mailbox,
$color, $search_position = '', $search_all, $count_all) {
* $Id$
*/
-require_once('../functions/strings.php');
-require_once('../functions/html.php');
-require_once('../class/html.class.php');
-require_once('../functions/imap_mailbox.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'functions/html.php');
+require_once(SM_PATH . 'class/html.class.php');
+require_once(SM_PATH . 'functions/imap_mailbox.php');
/* Default value for page_selector_max. */
define('PG_SEL_MAX', 10);
* $Id$
*/
-require_once('../functions/imap.php');
-require_once('../functions/attachment_common.php');
+require_once(SM_PATH . 'functions/imap.php');
+require_once(SM_PATH . 'functions/attachment_common.php');
/* --------------------------------------------------------------------------------- */
/* MIME DECODING */
global $where, $what; /* from searching */
global $color; /* color theme */
- require_once('../functions/url_parser.php');
+ require_once(SM_PATH . 'functions/url_parser.php');
$body_ary = explode("\n", $body);
for ($i=0; $i < count($body_ary); $i++) {
* $Id$
*/
-require_once('../functions/strings.php');
-//require_once('../functions/imap_utf7_decode_local.php');
-require_once('../functions/html.php');
-require_once('../functions/imap_mailbox.php');
+require_once(SM_PATH . 'functions/strings.php');
+require_once(SM_PATH . 'functions/html.php');
+require_once(SM_PATH . 'functions/imap_mailbox.php');
+
/* Always set up the language before calling these functions */
function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
global $HTTP_USER_AGENT, $SQSPELL_SOUP_NAZI;
- require_once('../plugins/squirrelspell/sqspell_config.php');
+ require_once(SM_PATH . 'plugins/squirrelspell/sqspell_config.php');
$soup_menu = explode( ',', $SQSPELL_SOUP_NAZI );
return( in_array( trim( $HTTP_USER_AGENT ), $soup_menu ) );
}
-?>
\ No newline at end of file
+?>
}
if (isset($prefs_dsn) && !empty($prefs_dsn)) {
- require_once('../functions/db_prefs.php');
+ require_once(SM_PATH . 'functions/db_prefs.php');
} else {
- require_once('../functions/file_prefs.php');
+ require_once(SM_PATH . 'functions/file_prefs.php');
}
/* Hashing functions */
* $Id$
*/
-require_once('../functions/addressbook.php');
-require_once('../functions/plugin.php');
-require_once('../functions/prefs.php');
+require_once(SM_PATH . 'functions/addressbook.php');
+require_once(SM_PATH . 'functions/plugin.php');
+require_once(SM_PATH . 'functions/prefs.php');
global $username, $popuser, $domain;
* $Id$
*/
-require_once('../functions/imap.php');
+require_once(SM_PATH . 'functions/imap.php');
/**
* findParentForChild