session_start();
- if(!isset($logged_in)) {
- echo _("You must login first.");
- exit;
- }
- if(!isset($username) || !isset($key)) {
- echo _("You need a valid user and password to access this page!");
- exit;
- }
-
if (!isset($config_php))
include("../config/config.php");
if (!isset($page_header_php))
include("../functions/page_header.php");
+ if (!isset($auth_php))
+ include("../functions/auth.php");
if (!isset($addressbook_php))
include("../functions/addressbook.php");
+
+ is_logged_in();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
include("../config/config.php");
if (!isset($array_php))
include("../functions/array.php");
+ if (!isset($auth_php))
+ include("../functions/auth.php");
if (!isset($strings_php))
include("../functions/strings.php");
- if (!isset($imap_php))
- include("../functions/imap.php");
if (!isset($page_header_php))
include("../functions/page_header.php");
if (!isset($addressbook_php))
include("../functions/addressbook.php");
- // Authenticate user and load prefs
- $imapConnection = sqimap_login($username, $key,
- $imapServerAddress, $imapPort, 10);
+ is_logged_in();
include("../src/load_prefs.php");
- sqimap_logout ($imapConnection);
displayHtmlHeader();
include("../config/config.php");
if (!isset($strings_php))
include("../functions/strings.php");
+ if (!isset($auth_php))
+ include("../functions/auth.php");
if (!isset($page_header_php))
include("../functions/page_header.php");
- if (!isset($imap_php))
- include("../functions/imap.php");
if (!isset($date_php))
include("../functions/date.php");
- if (!isset($mime_php))
- include("../functions/mime.php");
if (!isset($smtp_php))
include("../functions/smtp.php");
if (!isset($display_messages_php))
include("../src/load_prefs.php");
-
// Insert hidden data
function addr_insert_hidden() {
global $body, $subject, $send_to, $send_to_cc, $send_to_bcc;
include("../functions/page_header.php");
if (!isset($dipslay_messages_php))
include("../functions/display_messages.php");
- if (!isset($imap_php))
- include("../functions/imap.php");
if (!isset($array_php))
include("../functions/array.php");
+ if (!isset($auth_php))
+ include ("../functions/auth.php");
include("../src/load_prefs.php");
+ is_logged_in();
setPref($data_dir, $username, "full_name", stripslashes($full_name));
setPref($data_dir, $username, "email_address", stripslashes($email_address));