Happy New Year
[squirrelmail.git] / plugins / change_password / backend / template.php
index 0417683388e53423d101f311df9f4e099d623546..fd3a66cd8a4e519b9863e4b99cc497893f88c18b 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * Change password backend template
  *
@@ -9,6 +10,8 @@
  *
  * Replace the word template everywhere with a name for your backend.
  *
+ * @copyright 2003-2020 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage change_password
@@ -36,7 +39,13 @@ $squirrelmail_plugin_hooks['change_password_init']['template'] =
  */
 function cpw_template_init()
 {
+    global $oTemplate;
 
+    // plugin is not configured. Handle error gracefully.
+    error_box(_("No valid backend defined."));
+    // close html and stop script execution
+    $oTemplate->display('footer.tpl');
+    exit();
 }