Exemplo n.º 1
0
         if ($baddata) {
             $ets->page_body .= '<div class="error">' . $l['data-problems'] . '<br />';
             foreach ($errors as $p) {
                 $ets->page_body .= '<li>' . $p . "</li>\n";
             }
             $ets->page_body .= '</div><br>';
         }
         $ets->page_body .= $input_form;
         $ets->page_body .= '<p><a href="' . script_path . 'login.php?action=forgot">';
         $ets->page_body .= $l['log-forgot-text'] . '</a></p>';
     }
     break;
 case 'logout':
     $ets_outter->main_title = $config->get('site_name') . ": " . $l['title-logout'];
     $ets_outter->page_title = $l['title-logout'];
     $user->logout();
     $ets->page_body = $l['log-out'];
     break;
 case 'forgot':
     $ets_outter->main_title = $config->get('site_name') . ": " . $l['title-forgot'];
     $ets_outter->page_title = $l['title-forgot'];
     $ets->page_body = '';
     $mail = new nlb_mail($db);
     if (!$mail->Active) {
         $ets->page_body = $l['log-forgot-off'];
         break;
         // exit the big switch()
     }
     $err = array();
     if (!empty($_POST)) {
         if (!isset($_POST['username']) || empty($_POST['username'])) {