blob: 2cba3034de82afb8de477e85274214db804dce0b (
plain) (
tree)
|
|
<?php
header("Content-Security-Policy: script-src 'none'"); // disable js
$db = new PDO("sqlite:db", null, null, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
if (!$db)
die("db: " . htmlspecialchars($e->getMessage()));
$ro = new PDO("sqlite:db", null, null, [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::SQLITE_ATTR_OPEN_FLAGS => PDO::SQLITE_OPEN_READONLY]);
if (!$ro)
die("ro: " . htmlspecialchars($e->getMessage()));
|