2022-08-07 08:07:18 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2022-09-14 16:43:06 +00:00
|
|
|
Connect to database
|
2022-08-07 08:07:18 +00:00
|
|
|
|
2022-09-14 16:43:06 +00:00
|
|
|
Dunno what else to put here lol
|
2022-08-07 08:07:18 +00:00
|
|
|
*/
|
2022-09-14 16:43:06 +00:00
|
|
|
try {
|
|
|
|
$conn_ip = "192.168.0.79:3306";
|
|
|
|
$conn_username = "uwu";
|
|
|
|
$conn_password = "fennec621";
|
|
|
|
$conn_database = "gallery";
|
2022-08-07 08:07:18 +00:00
|
|
|
|
2022-09-14 16:43:06 +00:00
|
|
|
$conn = @mysqli_connect($conn_ip, $conn_username, $conn_password , $conn_database);
|
|
|
|
} catch (Exception $e) {
|
|
|
|
header("location: error.php?e=conn");
|
2022-08-07 08:07:18 +00:00
|
|
|
}
|
2022-09-08 13:29:45 +00:00
|
|
|
|
|
|
|
session_start();
|