diff options
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"); + +?> |