0)
{
// Admin password was changed. Try to save it.
if (FALSE != $save_settings && 'ap' == $cat)
{
if ( $demo_mode )
{
echo 'Password can\'t be changed.
';
}
else
{
$result = save_admin_password($_COOKIE['adminID'], $_POST['pwd_old'], $_POST['pwd_new'], $_POST['pwd_new_confirm']);
switch ($result)
{
case S_OK:
{
// No error. Display message.
echo 'Password changed.
';
}
break;
case E_INVALID_OLD_PASSWORD:
{
echo '