0
0
Fork 0
This repository has been archived on 2020-08-03. You can view files and clone it, but cannot push or open issues or pull requests.
bryanpedini.it_old/index.php

18 lines
727 B
PHP

<?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' );
?>