config.php
5f10880f
 <?php
 
2fc92076
 date_default_timezone_set('Europe/Paris');
 
15dc85ff
 $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,
95ee3bbc
         room  TEXT DEFAULT '' NOT NULL,
15dc85ff
 	info  TEXT DEFAULT '' NOT NULL,
         login TEXT DEFAULT '' NOT NULL,
         message TEXT DEFAULT '' NOT NULL   
 );");
 
5f10880f
 define("TAAB_BACKEND_MAX_POSTS", 200);
 define("TAAB_MAX_POST_LENGTH", 512);
 define("TAAB_MAX_LOGIN_LENGTH", 32);
 define("TAAB_MAX_INFO_LENGTH", 32);
f812fabe
 define("TAAB_DEV", false)
5f10880f
 ?>