e949/api/_db.php

16 lines
242 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"]);
?>