diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-09 15:05:49 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-09 15:05:49 +0200 |
commit | e46efced1b2c19ca0f628207b70b28a30fcbc288 (patch) | |
tree | c475b5e47e13ba9196b2f5765875868b64f95172 /inc/db.php | |
parent | 1ff23336004fb0870e8329a163f6edd851417b01 (diff) | |
download | wallabag-e46efced1b2c19ca0f628207b70b28a30fcbc288.tar.gz wallabag-e46efced1b2c19ca0f628207b70b28a30fcbc288.tar.zst wallabag-e46efced1b2c19ca0f628207b70b28a30fcbc288.zip |
utilisation de jquery pour traitement ajax
mise en page de la grille, type Masonry (méthode full css). cf ici : http://designshack.net/articles/css/masonry/
réorganisation des fichiers avec un fichier dédié pour le traitement des actions (process.php)
utilisation de pictos à la place des codes héxas
Diffstat (limited to 'inc/db.php')
-rw-r--r-- | inc/db.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/inc/db.php b/inc/db.php new file mode 100644 index 00000000..705fc0c4 --- /dev/null +++ b/inc/db.php | |||
@@ -0,0 +1,21 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * poche, a read it later open source system | ||
4 | * | ||
5 | * @category poche | ||
6 | * @author Nicolas Lœuillet <nicolas@loeuillet.org> | ||
7 | * @copyright 2013 | ||
8 | * @license http://www.wtfpl.net/ see COPYING file | ||
9 | */ | ||
10 | |||
11 | class db { | ||
12 | var $handle; | ||
13 | function __construct($path) { | ||
14 | $this->handle = new PDO($path); | ||
15 | $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | ||
16 | } | ||
17 | |||
18 | public function getHandle() { | ||
19 | return $this->handle; | ||
20 | } | ||
21 | } \ No newline at end of file | ||