diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-04-11 20:54:06 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-04-11 20:54:06 +0300 |
commit | 6f2e6899cc404f314648782920e343c8529885d3 (patch) | |
tree | 7d0129a6818f9554e76b60c913ce89a888b9f964 /system/init.php | |
download | atwork-6f2e6899cc404f314648782920e343c8529885d3.tar.gz atwork-6f2e6899cc404f314648782920e343c8529885d3.tar.bz2 atwork-6f2e6899cc404f314648782920e343c8529885d3.zip |
First commit
Diffstat (limited to 'system/init.php')
-rw-r--r-- | system/init.php | 18 |
1 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"); + +?> |