2024-01-13 03:24:42 +03:00
|
|
|
<?php
|
|
|
|
// Database setup
|
|
|
|
|
|
|
|
|
2023-08-05 06:26:09 +03:00
|
|
|
|
2023-12-20 06:08:13 +03:00
|
|
|
// Includes
|
2024-01-20 20:05:45 +03:00
|
|
|
if (isset($IS_FRONTEND) && $IS_FRONTEND)
|
2023-12-20 06:08:13 +03:00
|
|
|
require_once("api/_config.php");
|
|
|
|
else
|
|
|
|
require_once("_config.php");
|
2023-08-12 01:39:17 +03:00
|
|
|
|
2023-08-16 06:34:01 +03:00
|
|
|
|
|
|
|
|
2023-08-12 01:39:17 +03:00
|
|
|
$db = new mysqli($Config["db"]["addr"], $Config["db"]["user"], $Config["db"]["pass"], $Config["db"]["name"]);
|
|
|
|
|
2023-08-05 06:26:09 +03:00
|
|
|
?>
|