root/modules/branches/2.10/weakpasswords/page.weakpasswords.php

Revision 9786, 1.5 kB (checked in by p_lindheimer, 3 years ago)

fixes #4309 fix various html tag errors

Line 
1 <?php
2 /* $Id: */
3 //Copyright (C) 2009 Ethan Schreoder (ethan.schroeder@schmoozecom.com)
4 //
5 //This program is free software; you can redistribute it and/or
6 //modify it under the terms of version 2 of the GNU General Public
7 //License as published by the Free Software Foundation.
8 //
9 //This program is distributed in the hope that it will be useful,
10 //but WITHOUT ANY WARRANTY; without even the implied warranty of
11 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 //GNU General Public License for more details.
13
14 //Both of these are used for switch on config.php
15 $display = isset($_REQUEST['display'])?$_REQUEST['display']:'weakpasswords';
16
17 $action = isset($_REQUEST['action'])?$_REQUEST['action']:'';
18 $email = isset($_REQUEST['email'])?$_REQUEST['email']:'';
19
20 ?>
21 <p>
22 <?php
23     echo "<table cellpadding=5><tr><td colspan=3><div class='content'><h2>"._("Weak Password Detection")."</h2></td></tr>\n";
24     echo "<tr><td><b>"._("Type")."</b></td><td><b>"._("Name")."</b></td><td><b>"._("Secret")."</b></td><td><b>"._("Message")."</b></td></tr>";
25     $weak = weakpasswords_get_users();
26     if(sizeof($weak) > 0)  {
27         foreach ($weak as $details) {
28             echo '<tr><td>'.$details['deviceortrunk'].'</td><td>'.$details['name'].'</td><td>'.$details['secret'].'</td><td>'.$details['message']."</td></tr>";
29         }
30     } else  {
31         echo "<tr><td colspan=3>"._("No weak secrets detected on this system.")."</td></tr>";
32     }
33     // implementation of module hook
34     // object was initialized in config.php
35     echo $module_hook->hookHtml;
36 ?>
37     </table>
38
Note: See TracBrowser for help on using the browser.