diff options
author | Arno Richter <oelna@oelna.de> | 2022-12-09 17:45:56 +0100 |
---|---|---|
committer | Arno Richter <oelna@oelna.de> | 2022-12-09 17:48:09 +0100 |
commit | d22c8b2503e08603dbdfb10d2a2004ddaf104207 (patch) | |
tree | 691dad820b80d644a01c80a739fd9a60511ae50b /config-dist.php | |
parent | 7d3ce1014a33d621f20f008b1cf6bc1357c651dc (diff) | |
download | microblog-d22c8b2503e08603dbdfb10d2a2004ddaf104207.tar.gz microblog-d22c8b2503e08603dbdfb10d2a2004ddaf104207.tar.bz2 microblog-d22c8b2503e08603dbdfb10d2a2004ddaf104207.zip |
added post editing and deletion. updated database handling and versioning. added separate javascript file. some design adjustments.
Diffstat (limited to 'config-dist.php')
-rw-r--r-- | config-dist.php | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/config-dist.php b/config-dist.php index 9ad2faa..8f33ac7 100644 --- a/config-dist.php +++ b/config-dist.php @@ -36,19 +36,7 @@ $config = array( ) ); -//connect or create the database and tables -try { - $db = new PDO('sqlite:'.ROOT.DS.'posts.db'); - $db->exec("CREATE TABLE IF NOT EXISTS posts ( - id integer PRIMARY KEY NOT NULL, - post_content TEXT, - post_timestamp integer(128) - );"); -} catch(PDOException $e) { - print 'Exception : '.$e->getMessage(); - die('cannot connect to or open the database'); -} - // load functions +require_once(ROOT.DS.'database.php'); require_once(ROOT.DS.'functions.php'); require_once(ROOT.DS.'lib_autolink.php'); |