Jump to content

Módulo vultr


coutsoliveira

Recommended Posts

8 horas atrás, LucasOliveira disse:

Não é que faz merchan, é que a api a Vultr puxa assim, tudo da Vultr é feito pra mostrar o nome deles, não foi feito pensado em revenda.

Bem que eles poderiam lançar uma versão do modulo opensource, mandei essa sugestão pra eles.

Por favor, tirem uma dúvida minha.

 

Essas linhas servem para puxar dados e senhas da conta?

 

if( $results["status"] == "Active" ) 
{
sleep(1);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.vultr.com/v1/server/list?api_key=" . $apikey);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if( $disable_ssl == "yes" ) 
{
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
}
$data = curl_exec($ch);
curl_close($ch);
$response = json_decode($data, true);
$i = 0;
$i++;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://my.cnuk.co/versions/vultr.php?key=" . $licensekey . "&version=" . $current_version . "&servers=" . $i);
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
if( $disable_ssl == "yes" ) 
{
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
}
$data = curl_exec($ch);
curl_close($ch);
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?