sqlite instead of file system to store macs
This commit is contained in:
11
lib/db.php
Normal file
11
lib/db.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
require_once("config.php");
|
||||
|
||||
function get_db() {
|
||||
static $db = NULL;
|
||||
if ($db == NULL) {
|
||||
$db = sqlite_open(SQLITE_DB);
|
||||
}
|
||||
return $db;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user