mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 08:52:45 +00:00
24 lines
516 B
PHP
24 lines
516 B
PHP
<?php
|
|
// Server host
|
|
$dbhost = 'localhost';
|
|
|
|
// Username/password
|
|
$username = 'root';
|
|
$password = 'password';
|
|
|
|
// Database name
|
|
$database = 'litebans';
|
|
|
|
$conn = new mysqli($dbhost, $username, $password, $database);
|
|
|
|
$table_prefix = "";
|
|
$table_bans = $table_prefix . "bans";
|
|
$table_mutes = $table_prefix . "mutes";
|
|
$table_warnings = $table_prefix . "warnings";
|
|
$table_history = $table_prefix . "history";
|
|
|
|
if($conn->connect_errno > 0) {
|
|
die('Unable to connect to database [' . $conn->connect_error . ']');
|
|
}
|
|
|
|
?>
|