X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fchange_password%2Fbackend%2Ftemplate.php;h=340c1e3765ce775590921c2c94f17ffec752be2f;hb=d4e46166df04792c6b939356ea5dfda8e47bba7b;hp=776d4f2061204aed72a5835305e5d461152fedd7;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git diff --git a/plugins/change_password/backend/template.php b/plugins/change_password/backend/template.php index 776d4f20..340c1e37 100644 --- a/plugins/change_password/backend/template.php +++ b/plugins/change_password/backend/template.php @@ -10,7 +10,7 @@ * * Replace the word template everywhere with a name for your backend. * - * @copyright © 2003-2005 The SquirrelMail Project Team + * @copyright © 2003-2009 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins @@ -39,23 +39,12 @@ $squirrelmail_plugin_hooks['change_password_init']['template'] = */ function cpw_template_init() { - global $color; - - /** - * If SM_PATH isn't defined, define it. Required to include files. - * @ignore - */ - if (!defined('SM_PATH')) { - define('SM_PATH','../../../'); - } - - // load error_box() function - include_once(SM_PATH . 'functions/display_messages.php'); + global $oTemplate; // plugin is not configured. Handle error gracefully. - error_box(_("No valid backend defined."),$color); + error_box(_("No valid backend defined.")); // close html and stop script execution - echo "\n"; + $oTemplate->display('footer.tpl'); exit(); }