2022-08-07 08:07:18 +00:00
< ? php
/*
Connect to database
In the future I want this section to be configurable , but that ' ll require some work to be done .
For now it 's hard-coded, shouldn' t be an issue as most people wont be changing this often anyway
*/
// Setting up connection variables
2022-08-14 16:43:54 +00:00
$conn_ip = " 192.168.0.79:3306 " ;
2022-08-07 08:07:18 +00:00
$conn_username = " uwu " ;
$conn_password = " fennec621 " ;
2022-08-14 16:43:54 +00:00
$conn_database = " gallery " ;
2022-08-07 08:07:18 +00:00
$conn = mysqli_connect ( $conn_ip , $conn_username , $conn_password , $conn_database );
if ( $conn -> connect_error ) {
2022-08-07 11:57:13 +00:00
echo " <script>sniffleAdd('Error','Could not make a connection to the server, please try again later','var(--red)',' " . $root_dir . " ../../assets/icons/warning.svg')</script> " ;
2022-08-07 08:07:18 +00:00
}