GTChat Suchscript 0.7b.

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

      GTChat Suchscript 0.7b.

      Man sucht eine bestimmte Datei eines Users, weiß aber nur Nicknamen, IP-Adresse, E-Mail Adresse oder Hostnamen.
      Da ist guter Rat teuer, dieses kleine Addon schafft abhilfe.

      PHP-Quellcode

      1. <?php
      2. // GTChat Suchscript
      3. // Version 0.7b
      4. // Release 11.04.2008
      5. // Entwickelt durch Sven Schmidt | GTChat-Developer.de
      6. // Support auf www.gtchat-developer.de | info@gtchat-developer.de
      7. // Alle Rechte unterliegen www.gtchat-developer.de
      8. // *** Durchsucht das "Member-Verzeichnis" nach bestimmten Suchwerten.
      9. ob_start();
      10. // Konfiguration
      11. $root = ''. $_SERVER['DOCUMENT_ROOT'] .'/cgi-bin/Members'; // Verzeichnis der Userdateien.
      12. ?>
      13. <html>
      14. <head>
      15. <title>Chat - Analysescript</title>
      16. <link rel="stylesheet" href="style.css">
      17. </head>
      18. <body style="margin:0px;">
      19. <?php
      20. // Start: GTChat Suchscript
      21. ?>
      22. <p><h4>GTChat Suchscript 0.7b - Support auf www.gtchat-developer.de</h4></p>
      23. <form action="<?=$_SERVER['PHP_SELF'];?>" method="POST">
      24. <table cellspacing="0" cellpadding="2" style="border:0px; width:100%;">
      25. <tr>
      26. <td valign="top"><span style="font-weight:bold;">Bitte Suchkriterium ausw&auml;hlen:</span></td>
      27. <td valgin="top">
      28. <select name="value">
      29. <option value="0" <? if($_POST['value'] == 0){ echo 'selected'; ?>>Bitte w&auml;hlen</option>
      30. <option value="1" <? if($_POST['value'] == 1){ echo 'selected'; ?>>Nickname</option>
      31. <option value="2" <? if($_POST['value'] == 2){ echo 'selected'; ?>>E-Mail Adresse</option>
      32. <option value="3" <? if($_POST['value'] == 3){ echo 'selected'; ?>>IP-Adresse</option>
      33. <option value="4" <? if($_POST['value'] == 4){ echo 'selected'; ?>>Hostname</option>
      34. </select>
      35. </td>
      36. </tr>
      37. <tr>
      38. <td valign="top"><span style="font-weight:bold;">Bitte Suchbegriff eingeben:</span></td>
      39. <td valgin="top"><input type="text" name="value2" value="<?=$_POST['value2'];?>"></td>
      40. </tr>
      41. <tr>
      42. <td valign="top"><input type="reset" name="reset" value="Eingaben zur&uuml;cksetzen"></td>
      43. <td valign="top"><input type="submit" name="submit" value="Suchen"></td>
      44. </tr>
      45. </table>
      46. </form>
      47. <?
      48. if(isset($_POST['submit'])){
      49. if($value > 0){
      50. $value = $_POST['value'];
      51. $value2 = $_POST['value2'];
      52. }
      53. if(isset($value) && isset ($value2)){
      54. $basedir=opendir($root);
      55. while ($file =readdir($basedir)) {
      56. $data=file(''. $root .'/ '. $file .'');
      57. if(eregi($value2, $data[$value])){
      58. ?>
      59. <p><h4>Suche erfolgreich abgeschlossen.</h4></p>
      60. <p>Das Ergebnis lautet:</p>
      61. <p>Der Benutzer <?=$data[1];?> wurde gefunden.</p>
      62. <p>Das Suchkriterium lautete:</p>
      63. <p>Finde
      64. <?php
      65. if($value == 1){ echo' den Nickname'; }
      66. if($value == 2){ echo' die E-Mail Adresse'; }
      67. if($value == 3){ echo' die IP-Adresse'; }
      68. if($value == 4){ echo' den Hostnamen'; }
      69. ?>
      70. von <?=$value2;?>.
      71. </p>
      72. <p>Folgende Daten wurden &uuml;bermittelt:</p>
      73. <ul>
      74. <li>Nickname: <?=$data[1];?></li>
      75. <li>E-Mail Adresse: <?=$data[3];?></li>
      76. <li>IP Adresse: <?=$data[6];?></li>
      77. <li>Hostname: <?=$data[8];?></li>
      78. </ul>
      79. <p>Die Datei lautet: <span style="font-weight:bold;"><?=$file;?></span></p>
      80. <?
      81. }
      82. }
      83. }
      84. }
      85. ?>
      86. </body>
      87. </html>
      88. <? ob_end_flush();?>


      Zum Eintrag in der Datenbank