summaryrefslogblamecommitdiffstats
path: root/prog/inventar/h.php
blob: 2cba3034de82afb8de477e85274214db804dce0b (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                                                
<?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()));