summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2010-04-11 20:54:06 +0300
committerFilipp Lepalaan <filipp@mac.com>2010-04-11 20:54:06 +0300
commit6f2e6899cc404f314648782920e343c8529885d3 (patch)
tree7d0129a6818f9554e76b60c913ce89a888b9f964 /system
downloadatwork-6f2e6899cc404f314648782920e343c8529885d3.tar.gz
atwork-6f2e6899cc404f314648782920e343c8529885d3.tar.bz2
atwork-6f2e6899cc404f314648782920e343c8529885d3.zip
First commit
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