Page MenuHomeGitPull.it

No OneTemporary

Authored By
Unknown
Size
18 KB
Referenced Files
None
Subscribers
None
diff --git a/template/404.php b/template/404.php
index 24eb9cc..abcba2a 100644
--- a/template/404.php
+++ b/template/404.php
@@ -1,31 +1,30 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 bad request
*
* Called from:
* include/class-PageNotFound.php
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<p class="alert alert-warning"><?php _e( "Oh no! A page not found error!" ) ?></p>
-
-<p><?php _e( "The page you was looking for is wrong or was deleted or you have not enough permissions to see it, etc. you know." ) ?></p>
+ <p class="alert alert-warning"><?php _e( "Oh no! A page not found error!" ) ?></p>
+ <p><?php _e( "The page you was looking for is wrong or was deleted or you have not enough permissions to see it, etc. you know." ) ?></p>
diff --git a/template/bad-request.php b/template/bad-request.php
index 40ae22f..f96a376 100644
--- a/template/bad-request.php
+++ b/template/bad-request.php
@@ -1,40 +1,39 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 bad request
*
* Called from:
* include/class-BadRequest.php
*
* Available variables:
* $message string
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<p class="alert alert-danger">
- <?php _e( "Your request cannot be processed." ) ?>
- <?php if( $message ): ?>
- <br />
- <?php printf( __( "Error: %s. "), $message ) ?>
- <?php endif ?>
-</p>
-
-<p><?php _e( "If you think that it's not your fault, contact us. Thanks!" ) ?></p>
+ <p class="alert alert-danger">
+ <?php _e( "Your request cannot be processed." ) ?>
+ <?php if( $message ): ?>
+ <br />
+ <?php printf( __( "Error: %s. "), $message ) ?>
+ <?php endif ?>
+ </p>
+ <p><?php _e( "If you think that it's not your fault, contact us. Thanks!" ) ?></p>
diff --git a/template/breadcrumb.php b/template/breadcrumb.php
index 9e36951..1213c18 100644
--- a/template/breadcrumb.php
+++ b/template/breadcrumb.php
@@ -1,37 +1,36 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 the website breadcrumb navigation menu
*
* Called from:
* template/header.php
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
// add home to the breadcrumb
array_unshift( $args[ 'breadcrumb' ], get_menu_entry( 'index' ) );
// add "this page" to the breadcrumb
if( $args[ 'uid' ] !== 'index' ) {
$args[ 'breadcrumb' ][] = new MenuEntry( null, null, $args[ 'title' ] );
}
-?>
-<?php Breadcrumb::spawn( $args[ 'breadcrumb' ] ) ?>
+Breadcrumb::spawn( $args[ 'breadcrumb' ] );
diff --git a/template/logout.php b/template/logout.php
index e7817d0..2b4e4df 100644
--- a/template/logout.php
+++ b/template/logout.php
@@ -1,33 +1,32 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 the logout page
*
* Called from
* logout.php
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<p class="alert alert-warning"><?php _e( "Please manually confirm your action." ) ?></p>
-
-<form method="post">
- <button type="submit" name="action" value="logout" class="btn btn-default"><?php _e( "Logout" ) ?></button>
-</form>
+ <p class="alert alert-warning"><?php _e( "Please manually confirm your action." ) ?></p>
+ <form method="post">
+ <button type="submit" name="action" value="logout" class="btn btn-default"><?php _e( "Logout" ) ?></button>
+ </form>
diff --git a/template/mailbox-description.php b/template/mailbox-description.php
index 9480e91..e3da163 100644
--- a/template/mailbox-description.php
+++ b/template/mailbox-description.php
@@ -1,29 +1,29 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 single e-mail forwarding
*
* Called from:
* template/mailbox.php
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<p><?php _e( "A mailbox is a fully operative e-mail address that you can use to send and receive e-mails. As interface you can use a webmail, an e-mail client like Thunderbird, Evolution, or a mobile app like K-9 Mail, etc." ) ?></p>
+ <p><?php _e( "A mailbox is a fully operative e-mail address that you can use to send and receive e-mails. As interface you can use a webmail, an e-mail client like Thunderbird, Evolution, or a mobile app like K-9 Mail, etc." ) ?></p>
diff --git a/template/mailbox.php b/template/mailbox.php
index 28f8f35..8bbd9a8 100644
--- a/template/mailbox.php
+++ b/template/mailbox.php
@@ -1,48 +1,48 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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:
* mailbox.php
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<?php template( 'mailbox-description' ) ?>
+ <?php template( 'mailbox-description' ) ?>
-<h3><?php _e( "Resources" ) ?></h3>
-<ul>
- <li>
- <a href="https://mail.reyboz.it?email=<?php echo urlencode( $mailbox->getMailboxAddress() ) ?>" target="_blank" />
- <?php _e( "How to setup your IMAP/SMTP client" ) ?>
- </a>
- </li>
-</ul>
+ <h3><?php _e( "Resources" ) ?></h3>
+ <ul>
+ <li>
+ <a href="https://mail.reyboz.it?email=<?php echo urlencode( $mailbox->getMailboxAddress() ) ?>" target="_blank" />
+ <?php _e( "How to setup your IMAP/SMTP client" ) ?>
+ </a>
+ </li>
+ </ul>
-<h3><?php _e( "Actions" ) ?></h3>
-<form method="post">
- <?php if( $password ): ?>
- <label for="password"><?php _e( "Please copy your new password:" ) ?><br />
- <input type="text" id="password" readonly<?php _value( $password ) ?> />
- <?php else: ?>
- <p><button type="submit" class="btn btn-default" name="action" value="mailbox-password-reset"><?php _e( "Generate new password" ) ?></button></p>
- <?php endif ?>
-</form>
+ <h3><?php _e( "Actions" ) ?></h3>
+ <form method="post">
+ <?php if( $password ): ?>
+ <label for="password"><?php _e( "Please copy your new password:" ) ?><br />
+ <input type="text" id="password" readonly<?php _value( $password ) ?> />
+ <?php else: ?>
+ <p><button type="submit" class="btn btn-default" name="action" value="mailbox-password-reset"><?php _e( "Generate new password" ) ?></button></p>
+ <?php endif ?>
+ </form>
diff --git a/template/mailforward-description.php b/template/mailforward-description.php
index 5144ddd..d9eafee 100644
--- a/template/mailforward-description.php
+++ b/template/mailforward-description.php
@@ -1,29 +1,29 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 single e-mail forwarding
*
* Called from:
* template/mailforward.php
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<p><?php _e( "A forwarding address is a simple e-mail address you can use to receive e-mails, forwarding them to another e-mail address of your choice." ) ?></p>
+ <p><?php _e( "A forwarding address is a simple e-mail address you can use to receive e-mails, forwarding them to another e-mail address of your choice." ) ?></p>
diff --git a/template/mailforward.php b/template/mailforward.php
index 46eeefa..2605088 100644
--- a/template/mailforward.php
+++ b/template/mailforward.php
@@ -1,64 +1,62 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 single e-mail forwarding
*
* Called from:
* mailforward.php
*
* Available variables:
* $domain Domain object
* $mailforward Mailforward object
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<?php template( 'mailforward-description' ) ?>
+ <?php template( 'mailforward-description' ) ?>
-<form method="post">
- <p>
- <label for="mailforward-source"><?php _e( "E-mail address:") ?></label><br />
- <?php if( $mailforward ): ?>
- <input type="text" id="mailforward-source" readonly<?php _value( $mailforward->getMailforwardAddress() ) ?> />
- <?php else: ?>
- <input type="string" name="mailforward_source" id="mailforward-source"<?php
+ <form method="post">
+ <p>
+ <label for="mailforward-source"><?php _e( "E-mail address:") ?></label><br />
+ <?php if( $mailforward ): ?>
+ <input type="text" id="mailforward-source" readonly<?php _value( $mailforward->getMailforwardAddress() ) ?> />
+ <?php else: ?>
+ <input type="string" name="mailforward_source" id="mailforward-source"<?php
+ if( $mailforward ) {
+ _value( $mailforward->getMailforwardSource() );
+ }
+ ?> /> <code>@<?php _esc_html( $domain->getDomainName() ) ?></code>
+ <?php endif ?>
+ </p>
+ <p>
+ <label for="mailforward-destination"><?php _e( "forward the incoming e-mails to this destination:" ) ?></label><br />
+ <input type="email" name="mailforward_destination" id="mailforward-destination"<?php
if( $mailforward ) {
- _value( $mailforward->getMailforwardSource() );
+ _value( $mailforward->getMailforwardDestination() );
}
- ?> /> <code>@<?php _esc_html( $domain->getDomainName() ) ?></code>
- <?php endif ?>
- </p>
- <p>
- <label for="mailforward-destination"><?php _e( "forward the incoming e-mails to this destination:" ) ?></label><br />
- <input type="email" name="mailforward_destination" id="mailforward-destination"<?php
- if( $mailforward ) {
- _value( $mailforward->getMailforwardDestination() );
- }
- ?> />
- </p>
- <p>
- <button type="submit" class="btn btn-default" name="action" value="mailforward-save"><?php _e( "Save" ) ?></button>
- <?php if( $mailforward ): ?>
- <button type="submit" class="btn btn-warning" name="action" value="mailforward-delete"><?php _e( "Delete" ) ?></button>
- <?php endif ?>
- </p>
-</form>
-
-<!-- end change destination -->
+ ?> />
+ </p>
+ <p>
+ <button type="submit" class="btn btn-default" name="action" value="mailforward-save"><?php _e( "Save" ) ?></button>
+ <?php if( $mailforward ): ?>
+ <button type="submit" class="btn btn-warning" name="action" value="mailforward-delete"><?php _e( "Delete" ) ?></button>
+ <?php endif ?>
+ </p>
+ </form>
diff --git a/template/profile.php b/template/profile.php
index 594c03b..73b71f8 100644
--- a/template/profile.php
+++ b/template/profile.php
@@ -1,43 +1,43 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 an user profile
*
* Called from:
* profile.php
*
* Available variables:
* $email string
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<h3><?php _e( "Change password" ) ?></h3>
-<form method="post">
- <p><?php printf(
- __( "You can generate a new strong password that will be sent to your e-mail address (%s). Note that this action will also logout you immediately." ),
- esc_html( $email )
- ) ?></p>
- <p><button type="submit" class="btn btn-default" name="action" value="send-user-password"><?php _e( "Generate new password" ) ?></button></p>
-</form>
+ <h3><?php _e( "Change password" ) ?></h3>
+ <form method="post">
+ <p><?php printf(
+ __( "You can generate a new strong password that will be sent to your e-mail address (%s). Note that this action will also logout you immediately." ),
+ esc_html( $email )
+ ) ?></p>
+ <p><button type="submit" class="btn btn-default" name="action" value="send-user-password"><?php _e( "Generate new password" ) ?></button></p>
+ </form>
-<h3><?php _e( "Logout" ) ?></h3>
-<p><?php _e( "Have you done what you had to do? Then you can (and should) logout now." ) ?></p>
-<p><?php the_menu_link( 'logout' ) ?></p>
+ <h3><?php _e( "Logout" ) ?></h3>
+ <p><?php _e( "Have you done what you had to do? Then you can (and should) logout now." ) ?></p>
+ <p><?php the_menu_link( 'logout' ) ?></p>
diff --git a/template/sidebar.php b/template/sidebar.php
index 30aacbc..bbf6b1d 100644
--- a/template/sidebar.php
+++ b/template/sidebar.php
@@ -1,39 +1,38 @@
<?php
# Copyright (C) 2018 Valerio Bozzolan
# Boz 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 the website sidebar
*
* Called from:
* template/footer.php
*/
// unuseful when load directly
defined( 'BOZ_PHP' ) or die;
?>
-<?php if( is_logged() ): ?>
- <p><?php printf(
- __( "Welcome %s!" ),
- esc_html( get_user( 'user_name' ) )
- ) ?></p>
-
<?php if( is_logged() ): ?>
- <p><?php the_menu_link( 'profile' ) ?></p>
- <?php endif ?>
-<?php endif ?>
+ <p><?php printf(
+ __( "Welcome %s!" ),
+ esc_html( get_user( 'user_name' ) )
+ ) ?></p>
+ <?php if( is_logged() ): ?>
+ <p><?php the_menu_link( 'profile' ) ?></p>
+ <?php endif ?>
+ <?php endif ?>

File Metadata

Mime Type
text/x-diff
Expires
Thu, Nov 19, 04:44 (8 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264811
Default Alt Text
(18 KB)

Event Timeline