Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($_GET['check'] == 'usuario' && 'senha' ) {
- ///curls
- error_reporting (FALSE);
- ignore_user_abort (0);
- if( !ini_get('safe_mode') )set_time_limit(80);
- function curl($url, $cookie, $post, $header=1){
- $browse = 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.11) Gecko/20100701 Firefox/3.5.11';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_COOKIE, $cookie );
- if($post){
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- }
- curl_setopt($ch, CURLOPT_USERAGENT, $browse);
- curl_setopt($ch, CURLOPT_HEADER, $header);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
- $data = curl_exec($ch);
- return $data;
- }
- function cut_str($str, $left, $right) {
- $str = substr(stristr($str, $left) , strlen($left));
- $leftLen = strlen(stristr($str, $right));
- $leftLen = $leftLen ? -($leftLen) : strlen($str);
- $str = substr($str, 0, $leftLen);
- return $str;
- }
- $table2 = curl("http://sv1.nowiptv.net:8880/player_api.php?username=teste667&password=teste667", "");
- $table2 = cut_str($table2, 'timestamp_now":', ',"time_now');
- $agora = $table2;
- $table = curl("http://sv1.nowiptv.net:8880/player_api.php?username={$usuario}&password={$senha}", "");
- $table = cut_str($table, '"exp_date":"', '","is_trial"');
- if(empty($agora <= $table)) {
- $tabela = "";
- ;
- } else {
- //$vencimento = date('d/m/Y H:i:s', $table);
- $tabela = "Usuario: {$ls_pf['usuario']} Senha: {$ls_pf['senha']} - Validade do Plano: <span class='label label-success'>{$table}</span><br>";
- }*/
- }
- echo $tabela;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement