Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2. $SQL_HOST = "**************";
  3. $SQL_DB = "k**********";
  4. $SQL_USER = "*************";
  5. $SQL_PASS = "************";
  6. /*
  7. $conn = mysql_connect($SQL_HOST, $SQL_USER, $SQL_PASS);
  8. mysql_select_db("k************", $conn);
  9.  
  10. mysql_close($conn);*/
  11. $name = "logiFP.txt";
  12.  
  13. $f = fopen($name, "r");
  14. $tresc = fread($f, filesize($name));
  15. fclose($f);
  16.  
  17. $tablica = explode("\r\n", $tresc);
  18. $tablica2 = array();
  19. for($i = 0; $i < count($tablica); $i++)
  20. {
  21. $firstpos = stripos($tablica[$i], "`nick`='") + 8;
  22. if($firstpos < 20) continue;
  23. $lastpos = strrpos($tablica[$i], "'");
  24. $cache = explode("'", substr($tablica[$i], $firstpos));
  25. echo $cache[0];
  26. echo '<br />';
  27. //$tablica2[$cache] += 20;
  28.  
  29. }
  30. /*echo '<pre>';
  31. print_r($tablica2);
  32. echo '</pre>';*/
  33.  
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement