--- /dev/null
+<?php
+if(!isset($_SESSION['last_request']) || $_SESSION['last_request'] >= (time() - 60*60)) { //TODO predelat timeout do konstanty v nastaveni
+ $_SESSION['last_request'] = time();
+} else {
+ require_once(INCLUDE_DIR."eventz/logout.inc");
+ logout();
+}
//initializing node
if (!is_numeric($_GET['node_id'])) {
- $_GET['node_id']=WELCOME_NODE;
+ $_GET['node_id']=WELCOME_NODE; //Tohle uz je v PHP rewritech!!!!
}
+require_once(INCLUDE_DIR.'logout_idle.inc'); //Logout when idle
+
$node = nodes::getNodeById($_GET['node_id'],(isset($_SESSION['user_id']))?$_SESSION['user_id']:'');
//XXX Paths are wrong (!)