<?php
    $session_timeout_days = 3;
    $session_timeout_hours = 0;
    $session_timeout_minutes = 0;
    $session_timeout_seconds = 0;
    $session_timeout = ($session_timeout_days*86400)+($session_timeout_hours*3600)+($session_timeout_minutes*60)+$session_timeout_seconds;
    session_set_cookie_params ( $session_timeout, "/" );
    session_start ();
    $environment = file_get_contents ( 'environment.json' );
    $environment = json_decode ( $environment, true );
    if ( isset ( $_SERVER [ 'QUERY_STRING' ] ) && $_SERVER [ 'QUERY_STRING' ] != "" ) {
        include ( 'lib/php/switch_action.php' );
    }
    else {
        include ( 'lib/php/serve_index.php' );
    }
    include ( 'lib/php/templates/index.php' );
?>