]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
suppression fichier db.php
authornicosomb <nicolas@loeuillet.org>
Fri, 19 Apr 2013 13:47:20 +0000 (15:47 +0200)
committernicosomb <nicolas@loeuillet.org>
Fri, 19 Apr 2013 13:47:20 +0000 (15:47 +0200)
inc/db.php [deleted file]

diff --git a/inc/db.php b/inc/db.php
deleted file mode 100644 (file)
index 60d7c10..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-/**
- * poche, a read it later open source system
- *
- * @category   poche
- * @author     Nicolas LÅ“uillet <nicolas@loeuillet.org>
- * @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