summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/init.php18
-rw-r--r--system/ma.dbbin0 -> 4096 bytes
2 files changed, 18 insertions, 0 deletions
diff --git a/system/init.php b/system/init.php
new file mode 100644
index 0000000..aa9672a
--- /dev/null
+++ b/system/init.php
@@ -0,0 +1,18 @@
+<?php
+
+ ////
+ // atwork/init.php
+
+ error_reporting(E_ALL|E_STRICT);
+ ini_set('display_errors', 'on');
+
+ date_default_timezone_set('Europe/Helsinki');
+ setlocale(LC_ALL, 'fi_FI');
+
+ session_start();
+ $_SESSION['user'] = 'filipp';
+
+ $basedir = realpath(__FILE__ . '/../../');
+ $db = new PDO("sqlite:{$basedir}/system/ma.db");
+
+?>
diff --git a/system/ma.db b/system/ma.db
new file mode 100644
index 0000000..4ae2dd2
--- /dev/null
+++ b/system/ma.db
Binary files differ