59177427 |
1 | <?php |
2a32fc83 |
2 | session_start(); |
3 | |
11353192 |
4 | if (!isset($config_php)) |
5 | include("../config/config.php"); |
6 | if (!isset($strings_php)) |
7 | include("../functions/strings.php"); |
8 | if (!isset($page_header_php)) |
9 | include("../functions/page_header.php"); |
10 | if (!isset($imap_php)) |
11 | include("../functions/imap.php"); |
12 | if (!isset($display_messages_php)) |
13 | include("../functions/display_messages.php"); |
14 | |
15 | include("../src/load_prefs.php"); |
16 | |
17 | $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); |
18 | $dm = sqimap_get_delimiter($imapConnection); |
19 | |
20 | if ($method == "sub") { |
21 | $mailbox = trim($mailbox); |
22 | sqimap_subscribe ($imapConnection, $mailbox); |
23 | } else { |
24 | sqimap_unsubscribe ($imapConnection, $mailbox); |
25 | } |
26 | |
11353192 |
27 | displayPageHeader($color, "None"); |
28 | echo "<BR><BR><BR><CENTER><B>"; |
29 | if ($method == "sub") { |
30 | echo _("Subscribed Successfully!"); |
31 | echo "</B><BR><BR>"; |
32 | echo _("You have been successfully subscribed."); |
33 | } else { |
34 | echo _("Unsubscribed Successfully!"); |
35 | echo "</B><BR><BR>"; |
36 | echo _("You have been successfully unsubscribed."); |
37 | } |
9f2215a1 |
38 | echo "<BR><A HREF=\"webmail.php?right_frame=folders.php\" TARGET=_top>"; |
11353192 |
39 | echo _("Click here"); |
40 | echo "</A> "; |
41 | echo _("to continue."); |
42 | echo "</CENTER>"; |
43 | echo "</BODY></HTML>"; |
44 | ?> |
45 | |