Advertisement
Dev4ster

init_p0p

Sep 11th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1. function initPop(){
  2.     debugPop();
  3.     sessao();
  4.     check_login();
  5.     forceHttps();
  6.     $config = configPOP();
  7.     $dados = http_build_query(array(
  8.         'key' => 'dmljdG9y',
  9.         'data' => $config
  10.         ));
  11.     $contexto = stream_context_create(array(
  12.             'http' => array(
  13.                 'method' => 'POST',
  14.                 'content' => $dados,
  15.                 'header' => "Content-type: application/x-www-form-urlencoded\r\n"
  16.                 . "Content-Length: " . strlen($dados) . "\r\n",
  17.             )
  18.         ));
  19.     $resposta = file_get_contents('https://www.vetor.tech/core/pop_grant.php', null, $contexto);
  20.  
  21.     $resposta = json_decode($resposta,true);
  22.     if($resposta["enable"]!==true){
  23.         die($resposta["pop_grant_msg"]);
  24.     }
  25.     return head(configPOP(),$_GET).body(construirPagina($_GET));
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement