mirror of
https://github.com/michalcz10/USB-RAID-Array.git
synced 2026-11-11 07:59:04 +00:00
Modernize FTP UI: use modern.css, add dark-box container, remove redundant DB function, delete unused FTP config
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
session_start();
|
||||
|
||||
if (isset($_POST['uname'], $_POST['pswd'])) {
|
||||
$servername = "localhost:3306";
|
||||
$username = "UNAME";
|
||||
$password = "PSWD";
|
||||
$db = "usbraidlogin";
|
||||
require_once __DIR__ . '/../config/config.php';
|
||||
// $username = "UNAME";
|
||||
// $password = "PSWD";
|
||||
// $db = "usbraidlogin";
|
||||
|
||||
$uname = htmlspecialchars($_POST['uname']);
|
||||
$pswd = htmlspecialchars($_POST['pswd']);
|
||||
|
||||
$conn = new mysqli($servername, $username, $password, $db);
|
||||
$conn->set_charset("utf8");
|
||||
$conn = getDatabaseConnection();
|
||||
// charset already set in getDatabaseConnection()
|
||||
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
|
||||
Reference in New Issue
Block a user