Changeset 7609

Show
Ignore:
Timestamp:
05/02/09 11:59:29 (4 years ago)
Author:
p_lindheimer
Message:

changes to warning msg, moved to Tools tab, System Administration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.6/weakpasswords/functions.inc.php

    r7525 r7609  
    1313 
    1414function weakpasswords_get_config($engine) { 
    15         switch($engine) { 
    16                 case "asterisk": 
     15 switch($engine) { 
     16   case "asterisk": 
    1717      // Clear all weak password notifications 
    1818      $nt = notifications::create($db); 
     
    2626      $weak = weakpasswords_get_users(); 
    2727      if(sizeof($weak) > 0)  { 
    28         $extended_text = _("Warning: The use of SIP/IAX passwords that are weak can allow hackers to make brute force registrations and possibly make calls through your PBX.  It is strongly recommended, you choose strong secrets.")."<br>";  
     28        $extended_text = _("Warning: The use of weak SIP/IAX passwords can compromise this system resulting in toll theft of your telephony service.  You should change the reported devices and trunks to use strong secrets.")."<br /><br />";  
    2929        $count = 0; 
    3030        foreach($weak as $details)  { 
    31           $extended_text .= sprintf(_("%s %s has a weak secret of %s: %s<br>"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']); 
     31          $extended_text .= sprintf(_("%s: %s / secret: %s => %s<br>"), $details['deviceortrunk'], $details['name'], $details['secret'], $details['message']); 
    3232          $count++; 
    3333        } 
    34         $nt->add_security("weakpasswords", "all", $count." "._("extensions/trunks has weak secrets"),$extended_text); 
    35  
    36  
     34        if ($count == 1) { 
     35          $nt->add_security("weakpasswords", "all", $count." "._("extension/trunk has weak secret"),$extended_text); 
     36        } else { 
     37          $nt->add_security("weakpasswords", "all", $count." "._("extensions/trunks have weak secrets"),$extended_text); 
     38        } 
    3739      } 
    3840    break; 
  • modules/branches/2.6/weakpasswords/module.xml

    r7525 r7609  
    22  <rawname>weakpasswords</rawname> 
    33  <name>Weak Password Detection</name> 
    4   <version>2.5.0.1</version> 
    5   <type>setup</type> 
    6   <category>Internal Options &amp; Configuration</category> 
     4  <version>2.5.0.2</version> 
     5  <type>tool</type> 
     6  <category>System Administration</category> 
    77  <changelog> 
     8    *2.5.0.2* changes to warning msg, moved to Tools tab, System Administration 
    89    *2.5.0.1* Consolidated individual security notices to a single notice with all details in extended text 
    910    *2.5.0.0* Initial release