diff --git a/src/backend.php b/src/backend.php index 71e08eb..3431f41 100644 --- a/src/backend.php +++ b/src/backend.php @@ -51,8 +51,6 @@ function delete_email($mailid, $address) { if (_load_one_email($mailid, $address) !== null) { $mailbox->deleteMail($mailid); $mailbox->expungeDeletedMails(); - header('Content-type: application/json'); - print(json_encode(array("success" => true))); } else { error(404, 'delete error: invalid username/mailid combination'); } @@ -140,8 +138,7 @@ function redirect_to_random($domains) { $name = $word . $nr; $domain = $domains[array_rand($domains)]; - - header("location: ?address=$name@$domain"); + header("location: ?$name@$domain"); } /** @@ -157,11 +154,6 @@ function delete_old_messages() { $mailbox->expungeDeletedMails(); } -// -//// Never cache requests: -//header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); -//header("Cache-Control: post-check=0, pre-check=0", false); -//header("Pragma: no-cache"); // run on every request delete_old_messages(); diff --git a/src/if_sync-01_186384.png b/src/if_sync-01_186384.png new file mode 100644 index 0000000..3df77f8 Binary files /dev/null and b/src/if_sync-01_186384.png differ diff --git a/src/index.php b/src/index.php index dc845d3..6583983 100644 --- a/src/index.php +++ b/src/index.php @@ -1,240 +1,247 @@ + ?> - -
- -