WeakWiki


include\passwd.include.php



/********************************************************************************
WeakWiki (WeakWiki change password page include file: passwd.include.php)
Copyright (C) 2010 Alexander Lang

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU 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 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 .

Project Home: http://weakwiki.robnet.wmweb.at/
Contact:      robbiblubber@robnet.wmweb.at
********************************************************************************/



require_once(_lang('passwd'));


$pm = new PageMenu();
if(allowEdit())
{
	$pm->add("" . _L_PA_0000 . "");
}
$pm->add("" . _L_PA_0001 . "");
$pm->write();


if($_GET['action'] == 'passwd')
{
	echo("
\n"); echo("" . _L_PA_0010 . "
\n"); echo("

\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("\n"); echo("
    " . _L_PA_0011 . "  
    ". _L_PA_0012 . "
    " . _L_PA_0013 . "

" . _L_PA_0020 . "
\n"); echo("
\n"); } else if($_GET['action'] == 'pchanged') { $m = new MessageBox(_L_PA_0030, _L_PA_0031, MSG_SUCCESS); $m->write(); } else { $e = currentUser()->changePassword($_POST['npassword'], $_POST['rpassword'], $_POST['opassword']); if($e == E_SUCCESS) { $m = new MessageBox(_L_PA_0030, _L_PA_0032, MSG_SUCCESS); $m->write(); echo("\n"); } else { $m = new MessageBox(_L_PA_0033, _L_PA_0034, MSG_ERROR); $m->write(); } } ?>

WeakWiki