| Server IP : 23.111.136.34 / Your IP : 216.73.216.136 Web Server : Apache System : Linux servidor.eurohost.com.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : meusitei ( 1072) PHP Version : 5.6.40 Disable Function : show_source, system, shell_exec, passthru, proc_open MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/meusitei/public_html/painel/controllers/ |
Upload File : |
<?php
/*
$cpanelusr = 'includecom';
$cpanelpass = '2gy2sm1k3ngo';
$xmlapi = new xmlapi('104.156.227.123');
*/
require ABSPATH . '/connectpadrao.php';
@$dados_gerais_load = $banco->query('SELECT * FROM servidores WHERE id_servidores = "2"');
@$dados_gerais = $dados_gerais_load->fetch(PDO::FETCH_ASSOC);
if(!isset($cpanel_cliente_user)){
$cpanelusr = $dados_gerais['login_cpanel'];
$cpanelpass = $dados_gerais['senha_cpanel'];
//$xmlapi = new xmlapi('104.238.136.221');
}else{
$cpanelusr = $cpanel_cliente_user;
$cpanelpass = $cpanel_cliente_senha;
}
$xmlapi = new xmlapi($dados_gerais['ip_server']);
//require ABSPATH . '/cpaneluapi.class.php';
//__construct($user, $pass, $server, $secret = FALSE)
//$xmlapi = new cpanelAPI($dados_gerais['ip_server']);
//
// ABAIXO TRECHO FUNCIONAL NO INCLUDE ATUAL - ACIMA UTILIZADO PARA TESTER NO MEUSITEI
/*
$cpanelusr = 'includecom';
$cpanelpass = 'M6-~k1pS;vzm';
@$xmlapi = new xmlapi('104.238.136.221');
*/
// ALTERAR AS PORTAS CASO CONEXAO FIQUE COM ERRO
$xmlapi->set_port(2083);
//$xmlapi->set_port(2087);
$xmlapi->password_auth($cpanelusr, $cpanelpass);
$xmlapi->set_debug(1); //output actions in the error log 1 for true and 0 false
?>