load(); if (DEBUGMOD == 1) { echo '
'; echo '
';
	echo 'Language SLUG: ' . $langTag;
	echo '
'; echo '
';
	print_r(get_defined_constants());
	echo '
'; echo '
';
	print_r(get_defined_vars());
	echo '
'; echo ''; } //DB Conector Db::connect (DBHOST, DBUSER, DBPASS, DBNAME); //TODO: Přesunout do Login Pohledu $userManager = new UserManager(); if (isset($_POST['username']) && isset($_POST['password']) ) { $userManager->login($_POST['username'], $_POST['password'], (isset ($_POST['remember']) ? $_POST['remember'] : 'false')); } //Logs $logManager = new LogManager(); $route = new Route(); $route->add('/', 'Home'); $route->add('/login', 'Login'); $route->add('/logout', 'Logout'); $route->add('/automation', 'Automation'); $route->add('/dashboard', 'Dashboard'); $route->add('/setting', 'Setting'); $route->add('/scene', 'Scene'); $route->add('/ajax', 'Ajax'); $route->add('/log', 'Log'); $route->add('/rooms', 'Rooms'); $route->submit();