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

Revision 7525, 1.6 kB (checked in by p_lindheimer, 4 years ago)

Merged revisions 7417-7418,7420-7431,7433-7457,7460-7476,7478-7518,7520-7523 via svnmerge from
http://svn.freepbx.org/modules/branches/2.5

........

r7473 | ethans | 2009-03-10 12:55:44 -0700 (Tue, 10 Mar 2009) | 3 lines


New module: detects weak SIP secrets and sets security notifications

........

r7474 | ethans | 2009-03-10 14:29:05 -0700 (Tue, 10 Mar 2009) | 3 lines


Support for IAX trunks. Shows differentiation between trunks/extensions and trunk tech. Tabular display. Shortened notification messages with extended
details.

........

r7475 | ethans | 2009-03-10 14:46:56 -0700 (Tue, 10 Mar 2009) | 2 lines


verbiage

........

r7476 | mickecarlsson | 2009-03-10 23:53:00 -0700 (Tue, 10 Mar 2009) | 1 line


Localized module, added .pot file

........

r7480 | p_lindheimer | 2009-03-11 18:10:41 -0700 (Wed, 11 Mar 2009) | 1 line


fixes #3526 puts from-internal-custom before prarkedcalls context

........

r7481 | mickecarlsson | 2009-03-12 05:27:18 -0700 (Thu, 12 Mar 2009) | 1 line


More localization for weakpasswords

........

r7516 | p_lindheimer | 2009-03-12 17:04:29 -0700 (Thu, 12 Mar 2009) | 1 line


fixes #3350 don't include app-daynight in from-internal

........

r7517 | ethans | 2009-03-13 09:45:32 -0700 (Fri, 13 Mar 2009) | 3 lines


Merged individiual security notifications into one all encompassing security notification. This will hopefully alleviate interface slowdown when a large deployment has multiple weak
passwords.

........

r7518 | mickecarlsson | 2009-03-13 10:24:27 -0700 (Fri, 13 Mar 2009) | 1 line


Updated localization files for weakpasswords

........

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