mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
README, CREDITS & chmod
This commit is contained in:
parent
1c182b6c9d
commit
d178419c66
20 changed files with 18 additions and 7 deletions
0
inc/Encoding.php
Executable file → Normal file
0
inc/Encoding.php
Executable file → Normal file
0
inc/JSLikeHTMLElement.php
Executable file → Normal file
0
inc/JSLikeHTMLElement.php
Executable file → Normal file
0
inc/Readability.php
Executable file → Normal file
0
inc/Readability.php
Executable file → Normal file
|
@ -8,9 +8,12 @@
|
|||
* @license http://www.wtfpl.net/ see COPYING file
|
||||
*/
|
||||
|
||||
if(!is_dir('db/')){mkdir('db/',0705);}
|
||||
if (!is_dir('db/')) {
|
||||
@mkdir('db/',0705);
|
||||
}
|
||||
|
||||
define ('DB_PATH', 'sqlite:./db/poche.sqlite');
|
||||
define ('ABS_PATH', 'archiveImg/');
|
||||
define ('ABS_PATH', 'assets/');
|
||||
|
||||
include 'db.php';
|
||||
include 'functions.php';
|
||||
|
|
|
@ -10,15 +10,13 @@
|
|||
|
||||
class db {
|
||||
var $handle;
|
||||
function __construct($path)
|
||||
{
|
||||
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()
|
||||
{
|
||||
public function getHandle() {
|
||||
return $this->handle;
|
||||
}
|
||||
}
|
0
inc/functions.php
Executable file → Normal file
0
inc/functions.php
Executable file → Normal file
0
inc/rain.tpl.class.php
Executable file → Normal file
0
inc/rain.tpl.class.php
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue