From 682536a9e759bf8c17e171bbd75d64c4cb3a308d Mon Sep 17 00:00:00 2001 From: nicosomb Date: Fri, 19 Apr 2013 15:47:20 +0200 Subject: suppression fichier db.php --- inc/db.php | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 inc/db.php (limited to 'inc/db.php') diff --git a/inc/db.php b/inc/db.php deleted file mode 100644 index 60d7c108..00000000 --- a/inc/db.php +++ /dev/null @@ -1,22 +0,0 @@ - - * @copyright 2013 - * @license http://www.wtfpl.net/ see COPYING file - */ - -class db { - var $handle; - function __construct($path) { - $this->handle = new PDO($path); - $this->handle->exec('CREATE TABLE IF NOT EXISTS "entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE , "title" VARCHAR, "url" VARCHAR UNIQUE , "is_read" INTEGER DEFAULT 0, "is_fav" INTEGER DEFAULT 0, "content" BLOB)'); - $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - } - - public function getHandle() { - return $this->handle; - } -} \ No newline at end of file -- cgit v1.2.3