aggiunte prime cose

This commit is contained in:
Mr SL1D3R 2025-10-21 12:37:08 +02:00
parent a134652015
commit 0e0b34dcb8
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea

12
index.php Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Biblioteca | I5AI6</title>
</head>
<body>
</body>
</html>

8
php/auth/login.php Normal file
View File

@ -0,0 +1,8 @@
<?php
require_once "../db/connect.php";
session_start();
$username = $_POST['username'];
$password = $_POST['password'];

12
php/db/connect.php Normal file
View File

@ -0,0 +1,12 @@
<?php
$hostname = "localhost";
$username = "root";
$password = "";
$dbname = "biblioteca";
$conn = mysqli_connect($hostname, $username, $password, $dbname);
if (!$conn) {
echo "Error: " . mysqli_connect_error();
}