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

Revision 7686, 1.5 kB (checked in by p_lindheimer, 4 years ago)

Merged revisions 7684-7685 via svnmerge from
http://svn.freepbx.org/modules/branches/2.5

........

r7684 | p_lindheimer | 2009-05-07 13:03:40 -0700 (Thu, 07 May 2009) | 1 line


fixes #3663 remove use of short tags

........

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 </div>
22 <p>
23 <?php
24     echo "<table cellpadding=5><tr><td colspan=3><div class='content'><h2>"._("Weak Password Detection")."</h2></span></td></tr>\n";
25     echo "<tr><td><b>"._("Type")."</b></td><td><b>"._("Name")."</b></td><td><b>"._("Secret")."</b></td><td><b>"._("Message")."</b></td></tr>";
26     $weak = weakpasswords_get_users();
27     if(sizeof($weak) > 0)  {
28         foreach ($weak as $details) {
29             echo '<tr><td>'.$details['deviceortrunk'].'</td><td>'.$details['name'].'</td><td>'.$details['secret'].'</td><td>'.$details['message']."</td></tr>";
30         }
31     } else  {
32         echo "<tr><td colspan=3>"._("No weak secrets detected on this system.")."</td></tr>";
33     }
34     // implementation of module hook
35     // object was initialized in config.php
36     echo $module_hook->hookHtml;
37 ?>
38     </table>
39
Note: See TracBrowser for help on using the browser.