} else { // Create new password... $newPass = $MSACC->ms_password($ACC->email); // Send mail.. $MSMAIL->addTag('{PASSWORD}', $newPass); $MSMAIL->addTag('{NAME}', $ACC->name); $MSMAIL->addTag('{EMAIL}', $ACC->email); // Check template.. if ($ACC->language && file_exists(PATH . 'content/language/' . $ACC->language . '/mail-templates/new-password.txt')) { $mailT = PATH . 'content/language/' . $ACC->language . '/mail-templates/new-password.txt'; $pLang = $ACC->language; } else { $mailT = PATH . 'content/language/' . $SETTINGS->language . '/mail-templates/new-password.txt'; } $MSMAIL->sendMSMail(array('from_email' => $SETTINGS->email, 'from_name' => $SETTINGS->website, 'to_email' => $ACC->email, 'to_name' => $ACC->name, 'subject' => str_replace(array('{website}'), array($SETTINGS->website), $emailSubjects['new-password']), 'replyto' => array('name' => $SETTINGS->website, 'email' => $SETTINGS->replyto ? $SETTINGS->replyto : $SETTINGS->email), 'template' => $mailT, 'language' => isset($pLang) ? $pLang : $SETTINGS->language)); $json = array('status' => 'ok', 'field' => 'msg', 'msg' => mswActionMessage(str_replace('{email}', $ACC->email, $msg_script_action8))); } } } break; //======================== // Account login //======================== //======================== // Account login //======================== case 'login': $redr = 'index.php?p=dashboard'; // If login limit and ban time is enabled, check first.. if ($SETTINGS->loginLimit > 0) { $ban = $MSACC->checkban($SETTINGS, $MSDT);
?> </a> <span class="divider">/</span></li> <li class="active"><?php echo $this->TXT[3]; ?> </li> </ul> <?php // SYSTEM MESSAGE // html/action-message.htm if (count($this->EFIELDS) > 0 && $this->SYSTEM_MESSAGE) { echo mswActionMessageWarning($this->SYSTEM_MESSAGE); } else { if ($this->SYSTEM_MESSAGE) { echo mswActionMessage($this->SYSTEM_MESSAGE); } } ?> <form method="post" action="?d=<?php echo $_GET['d']; ?> " enctype="multipart/form-data" id="formfield"> <div class="container-fluid"> <div class="row-fluid"> <div class="block"> <p class="block-heading"><?php echo strtoupper($this->TXT[20]);