Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15178140
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/template/mailbox-delete-notes.php b/template/mailbox-delete-notes.php
new file mode 100644
index 0000000..ab54a3c
--- /dev/null
+++ b/template/mailbox-delete-notes.php
@@ -0,0 +1,38 @@
+<?php
+# Copyright (C) 2018, 2019, 2020 Valerio Bozzolan
+# KISS Libre Hosting Panel
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+/*
+ * This is the template for a mailbox
+ *
+ * Called from:
+ * www/mailbox.php
+ *
+ * Available variables:
+ * $mailbox object
+ * $domain object
+ * $plan object
+ * $mailbox_password string|null
+ */
+?>
+
+<h3><?= __( "Deletion" ) ?></h3>
+<p><?= __( "For security reasons you cannot drop your mailbox from a web interface." ) ?></p>
+<p><?= __( "Only system administrators with access to the command line can proceed, issuing this command:" ) ?>
+<pre><?= sprintf(
+ "./cli/destroy-mailbox %s",
+ $mailbox->getMailboxAddress()
+) ?></pre>
diff --git a/template/mailbox.php b/template/mailbox.php
index 25b9195..3bbd0e7 100644
--- a/template/mailbox.php
+++ b/template/mailbox.php
@@ -1,103 +1,107 @@
<?php
# Copyright (C) 2018, 2019, 2020 Valerio Bozzolan
# KISS Libre Hosting Panel
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
/*
* This is the template for a mailbox
*
* Called from:
* www/mailbox.php
*
* Available variables:
* $mailbox object
* $domain object
* $plan object
* $mailbox_password string|null
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
<!-- start description -->
<?php template( 'mailbox-description', [
'mailbox' => $mailbox,
] ) ?>
<!-- end description -->
<!-- start stats -->
<?php if( $mailbox ): ?>
<?php template( 'mailbox-stats', [
'mailbox' => $mailbox,
'plan' => $plan,
] ) ?>
<?php endif ?>
<!-- end stats -->
<!-- start documentation -->
<?php if( $mailbox ): ?>
<?php template( 'mailbox-documentation', [
'mailbox' => $mailbox,
] ) ?>
<?php endif ?>
<!-- end documentation -->
<!-- notes -->
<?php if( $mailbox ): ?>
<?php template( 'mailbox-notes', [
'mailbox' => $mailbox,
] ) ?>
<?php endif ?>
<!-- /notes -->
<?php if( $mailbox ): ?>
<h3><?= __( "Actions" ) ?></h3>
<form method="post">
<?php form_action( 'mailbox-password-reset' ) ?>
<?php if( $mailbox_password ): ?>
<label for="password"><?= __( "Please copy your new password:" ) ?><br />
<input type="text" id="password" readonly<?= value( $mailbox_password ) ?> />
<?php else: ?>
<p><button type="submit" class="btn btn-default"><?= __( "Generate new password" ) ?></button></p>
<?php endif ?>
</form>
<?php else: ?>
<form method="post">
<?php form_action( 'mailbox-create' ) ?>
<p><label for="mailbox-username"><?= __( "Mailbox name:" ) ?></label><br />
<input type="text" name="mailbox_username" id="mailbox-username" length="64" /> @ <?= esc_html( $domain->getDomainName() ) ?>
</p>
<p><button type="submit" class="btn btn-default"><?= __( "Create" ) ?></button></p>
</form>
<?php endif ?>
<!-- /actions -->
+ <?php template( 'mailbox-delete-notes', [
+ 'mailbox' => $mailbox,
+ ] ) ?>
+
<?php if( $mailbox ): ?>
<section>
<h3><?= __( "Last Activity" ) ?></h3>
<?php
// print the last activities
ActivityPanel::spawn( [
'query' => [
'mailbox' => $mailbox,
],
] )
?>
</section>
<?php endif ?>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Nov 19, 04:17 (16 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264709
Default Alt Text
(4 KB)
Attached To
Mode
R3 KISS Libre Hosting Panel
Attached
Detach File
Event Timeline