projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add ability to control the display of the "Check Spelling" button. Allows administrat...
[squirrelmail.git]
/
plugins
/
change_password
/
backend
/
vmailmgrd.php
diff --git
a/plugins/change_password/backend/vmailmgrd.php
b/plugins/change_password/backend/vmailmgrd.php
index e8f70a62131cab093f519bd2e54d7f148497afa2..98d30426a7c3d06e73e0efc7bdec9d8cc26a9650 100644
(file)
--- a/
plugins/change_password/backend/vmailmgrd.php
+++ b/
plugins/change_password/backend/vmailmgrd.php
@@
-22,7
+22,7
@@
* v.1.5.1 and v.1.4.4.
*
* @author Tomas Kuliavas <tokul at users.sourceforge.net>
* v.1.5.1 and v.1.4.4.
*
* @author Tomas Kuliavas <tokul at users.sourceforge.net>
- * @copyright
© 2005-2006
The SquirrelMail Project Team
+ * @copyright
2005-2017
The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @link http://www.vmailmgr.org vmailmgr site
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @link http://www.vmailmgr.org vmailmgr site
@@
-104,13
+104,13
@@
$squirrelmail_plugin_hooks['change_password_init']['vmailmgrd'] =
* is displayed to the user.
*/
function cpw_vmailmgrd_init(){
* is displayed to the user.
*/
function cpw_vmailmgrd_init(){
- global $vmail_inc_path, $
color, $usernam
e;
+ global $vmail_inc_path, $
username, $oTemplat
e;
if ($vmail_inc_path=='' || ! file_exists($vmail_inc_path)) {
// $vmail_inc_path is not set or file does not exist
if ($vmail_inc_path=='' || ! file_exists($vmail_inc_path)) {
// $vmail_inc_path is not set or file does not exist
- error_box(_("Incorrent path to vmail.inc file.")
,$color
);
+ error_box(_("Incorrent path to vmail.inc file."));
// close html and stop script execution
// close html and stop script execution
-
echo "</body></html>\n"
;
+
$oTemplate->display('footer.tpl')
;
exit();
}
exit();
}
@@
-118,17
+118,17
@@
function cpw_vmailmgrd_init(){
if (! function_exists('vchpass')) {
// included vmail.inc does not have required functions.
if (! function_exists('vchpass')) {
// included vmail.inc does not have required functions.
- error_box(_("Invalid or corrupted vmail.inc file.")
,$color
);
+ error_box(_("Invalid or corrupted vmail.inc file."));
// close html and stop script execution
// close html and stop script execution
-
echo "</body></html>\n"
;
+
$oTemplate->display('footer.tpl')
;
exit();
}
if (! preg_match("/(.*)\@(.*)/", $username)) {
// username does not match vmailmgr syntax
exit();
}
if (! preg_match("/(.*)\@(.*)/", $username)) {
// username does not match vmailmgr syntax
- error_box(_("Invalid user.")
,$color
);
+ error_box(_("Invalid user."));
// close html and stop script execution
// close html and stop script execution
-
echo "</body></html>\n"
;
+
$oTemplate->display('footer.tpl')
;
exit();
}
}
exit();
}
}
@@
-286,4
+286,3
@@
function cpw_i18n_vmail_response($string) {
}
return $ret;
}
}
return $ret;
}
-?>
\ No newline at end of file