[Wed May 20 12:33:09 2020] [error] [client 168.227.60.21] PHP Notice: Undefined variable: fbanco in /home/storage/3/09/8b/espacogoldengard1/public_html/sistema/v1d/install_run.php on line 22, referer: http://espacogoldengard1.hospedagemdesites.ws/sistema/v1d/install.php
[Wed May 20 12:33:09 2020] [error] [client 168.227.60.21] PHP Notice: Undefined variable: fhost in /home/storage/3/09/8b/espacogoldengard1/public_html/sistema/v1d/install_run.php on line 23, referer: http://espacogoldengard1.hospedagemdesites.ws/sistema/v1d/install.php
[Wed May 20 12:33:09 2020] [error] [client 168.227.60.21] PHP Notice: Undefined variable: fuser in /home/storage/3/09/8b/espacogoldengard1/public_html/sistema/v1d/install_run.php on line 23, referer: http://espacogoldengard1.hospedagemdesites.ws/sistema/v1d/install.php
[Wed May 20 12:33:09 2020] [error] [client 168.227.60.21] PHP Notice: Undefined variable: fpassword in /home/storage/3/09/8b/espacogoldengard1/public_html/sistema/v1d/install_run.php on line 23, referer: http://espacogoldengard1.hospedagemdesites.ws/sistema/v1d/install.php
[Wed May 20 12:33:09 2020] [error] [client 168.227.60.21] PHP Warning: mysqli_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/storage/3/09/8b/espacogoldengard1/public_html/sistema/v1d/install_run.php on line 23, referer: http://espacogoldengard1.hospedagemdesites.ws/sistema/v1d/install.php
[Wed May 20 12:33:09 2020] [error] [client 168.227.60.21] PHP Warning: mysqli_error() expects exactly 1 parameter, 0 given in /home/storage/3/09/8b/espacogoldengard1/public_html/sistema/v1d/install_run.php on line 23, referer: http://espacogoldengard1.hospedagemdesites.ws/sistema/v1d/install.php
[Wed May 20 12:33:10 2020] [error] [client 168.227.60.21] File does not exist: /home/storage/3/09/8b/espacogoldengard1/public_html/favicon.ico, referer: http://espacogoldengard1.hospedagemdesites.ws/sistema/v1d/install_run.php
Codigo:
if (!isset($config)) $config = 0;
if (!isset($tipo)) $tipo = 'I';
if ($config == 1){ // conecta.php
if (!isset($level_cfg)) $level_cfg = '';
require_once $level_cfg.'config/config.php';
$fhost = $db_host;
$fuser = $db_user;
$fpassword = $db_password;
$fbanco = $db_database;
}
$dbname = $fbanco;
mysqli_connect($fhost,$fuser,$fpassword) or die(mysqli_error());
if ($criadb == 'S'){
mysqli_query("CREATE DATABASE ".$dbname." DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci");
}
mysqli_select_db($dbname) or die(mysqli_error());
mysqli_query("SET NAMES 'utf8'");
mysqli_query('SET character_set_connection=utf8');
mysqli_query('SET character_set_client=utf8');
mysqli_query('SET character_set_results=utf8');
$path = "./install/db/";