Merge branches 'input-check-clear', 'listedit', 'rico-bug' and 'rico-db'
[infodrom/hallinta] / init.php
1 <?php
2
3 require_once('config.php');
4
5 if (!defined('SESSION_PATH')) define('SESSION_PATH', '/');
6 if (!defined('SESSION_LIFETIME')) define('SESSION_LIFETIME', 60*60*56);
7
8 session_name(SESSION_NAME);
9 session_set_cookie_params(SESSION_LIFETIME, SESSION_PATH);
10 session_start();
11
12 require_once('lib/general.php');
13
14 db_connect();
15 check_session();
16
17 ?>