e949/api/_db.php

13 lines
240 B
PHP

<?php // Database setup
// Includes
if ($IS_FRONTEND)
require_once("api/_config.php");
else
require_once("_config.php");
$db = new mysqli($Config["db"]["addr"], $Config["db"]["user"], $Config["db"]["pass"], $Config["db"]["name"]);
?>