home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / admin / chkpwd.php < prev    next >
Encoding:
Text File  |  2004-07-20  |  959 b   |  31 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <title>TSW [Control Center] Body</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <link href="./css/style.css" rel="stylesheet" type="text/css">
  7. </head>
  8. <?
  9. $file=fopen("../conf/.htpasswd", "r");
  10.  
  11. if ($file)
  12. {
  13.  
  14.     while ($line=fgets($file, 1024))
  15.     {
  16.         echo "<span class=\"testpwd\">User/Password check:...</span><br />";
  17.     $srchstrng = 'admin:$apr1$oY/.....$rX.BF78gnfuXEMRGsN/3j1';
  18.     if (strstr($line, $srchstrng) == TRUE)
  19.     {
  20.         echo "<span class=\"warning\">You still have the default user/pwd combination set for the [Control Center]<br />Please change this immediately, as this is a potential security problem!!</span><br /> Encrypted:".$srchstrng;
  21.     }
  22.     else {
  23.         echo "<span class=\"testpwd\">Default user/password combination not found! That's good!</span>";
  24.          }
  25.     }
  26. }
  27.  
  28.  
  29. ?>
  30.  
  31. </html>