servnest/db.inc.php

11 lines
270 B
PHP

<?php
if (strpos($_SERVER['PHP_SELF'], "inc.php") !== false)
exit("This file is meant to be included.");
function setupDB() {
try {
$db = new PDO('sqlite:/var/www/nic/db/auth.db');
} catch(Exception $e) {
die('Erreur SQLite : ' . $e->getMessage());
}
}