Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <?php
  2. if($_GET['check'] == 'usuario' && 'senha' ) {
  3.  
  4. ///curls
  5. error_reporting (FALSE);
  6. ignore_user_abort (0);
  7. if( !ini_get('safe_mode') )set_time_limit(80);
  8.  
  9. function curl($url, $cookie, $post, $header=1){
  10. $browse = 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100701 Firefox/3.5.11';
  11. $ch = curl_init();
  12. curl_setopt($ch, CURLOPT_URL, $url);
  13. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  14. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  15. curl_setopt($ch, CURLOPT_COOKIE, $cookie );
  16. if($post){
  17. curl_setopt($ch, CURLOPT_POST, 1);
  18. curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
  19. }
  20. curl_setopt($ch, CURLOPT_USERAGENT, $browse);
  21. curl_setopt($ch, CURLOPT_HEADER, $header);
  22. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  23. curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
  24. $data = curl_exec($ch);
  25. return $data;
  26. }
  27.  
  28. function cut_str($str, $left, $right) {
  29. $str = substr(stristr($str, $left) , strlen($left));
  30. $leftLen = strlen(stristr($str, $right));
  31. $leftLen = $leftLen ? -($leftLen) : strlen($str);
  32. $str = substr($str, 0, $leftLen);
  33. return $str;
  34. }
  35.  
  36. $table2 = curl("http://sv1.nowiptv.net:8880/player_api.php?username=teste667&password=teste667", "");
  37. $table2 = cut_str($table2, 'timestamp_now":', ',"time_now');
  38. $agora = $table2;
  39.  
  40.  
  41. $table = curl("http://sv1.nowiptv.net:8880/player_api.php?username={$usuario}&password={$senha}", "");
  42. $table = cut_str($table, '"exp_date":"', '","is_trial"');
  43.  
  44. if(empty($agora <= $table)) {
  45. $tabela = "";
  46. ;
  47. } else {
  48. //$vencimento = date('d/m/Y H:i:s', $table);
  49. $tabela = "Usuario: {$ls_pf['usuario']} Senha: {$ls_pf['senha']} - Validade do Plano: <span class='label label-success'>{$table}</span><br>";
  50. }*/
  51.  
  52. }
  53. echo $tabela;
  54. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement