Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 582 Bytes
<?php
date_default_timezone_set('Europe/Paris');
$pdo = new PDO('sqlite:./data/backend.db');
$pdo->query("CREATE TABLE IF NOT EXISTS posts (
id INTEGER PRIMARY KEY AUTOINCREMENT,
time TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,
room TEXT DEFAULT '' NOT NULL,
info TEXT DEFAULT '' NOT NULL,
login TEXT DEFAULT '' NOT NULL,
message TEXT DEFAULT '' NOT NULL
);");
define("TAAB_BACKEND_MAX_POSTS", 200);
define("TAAB_MAX_POST_LENGTH", 512);
define("TAAB_MAX_LOGIN_LENGTH", 32);
define("TAAB_MAX_INFO_LENGTH", 32);
define("TAAB_DEV", false)
?>
You can’t perform that action at this time.