12 lines
146 B
PHP
12 lines
146 B
PHP
<?php
|
|
require_once("config.php");
|
|
|
|
function get_db() {
|
|
static $db = NULL;
|
|
if ($db == NULL) {
|
|
$db = new SQLite3(SQLITE_DB);
|
|
}
|
|
return $db;
|
|
}
|
|
|